{"openapi":"3.1.0","info":{"title":"TubeAnalytics Public Discovery API","version":"1.0.0","description":"Machine-readable discovery manifest for the public TubeAnalytics product contract, pricing tiers, and API surface."},"servers":[{"url":"https://www.tubeanalytics.net"}],"tags":[{"name":"Discovery","description":"Public discovery and product contract endpoints."},{"name":"API","description":"Authenticated API routes for application integrations."}],"paths":{"/ai.txt":{"get":{"tags":["Discovery"],"summary":"Return AI crawler guidance","responses":{"200":{"description":"Plain-text AI discovery policy","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/mcp.json":{"get":{"tags":["Discovery"],"summary":"Return the MCP discovery manifest","responses":{"200":{"description":"Model Context Protocol discovery manifest","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/openapi.json":{"get":{"tags":["Discovery"],"summary":"Return the OpenAPI discovery manifest","responses":{"200":{"description":"OpenAPI discovery manifest","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/channels":{"get":{"tags":["API"],"summary":"List connected channels","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Connected channels","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/analytics":{"get":{"tags":["API"],"summary":"Read channel analytics","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Analytics payload","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/videos":{"get":{"tags":["API"],"summary":"List channel videos","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Video list","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/audience":{"get":{"tags":["API"],"summary":"Read audience insights","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Audience insights payload","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/competitors":{"get":{"tags":["API"],"summary":"Read competitor insights","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Competitor insights payload","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key"}},"schemas":{"ProductPlan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"channelLimit":{"type":"integer"},"monthlyPrice":{"type":"number"},"yearlyPrice":{"type":"number"},"yearlyTotal":{"type":"number"}}},"ProductContract":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"trialDays":{"type":"integer","minimum":1},"plans":{"type":"array","items":{"type":"object"}}}}}},"x-product-contract":{"name":"TubeAnalytics","description":"YouTube analytics platform for creators, teams, and agencies that need authenticated channel data, competitor tracking, and AI-assisted growth decisions.","trialDays":3,"plans":[{"id":"starter","name":"Starter","channelLimit":1,"monthlyPrice":19,"yearlyPrice":15,"yearlyTotal":180},{"id":"professional","name":"Professional","channelLimit":3,"monthlyPrice":49,"yearlyPrice":39,"yearlyTotal":468},{"id":"enterprise","name":"Enterprise","channelLimit":5,"monthlyPrice":149,"yearlyPrice":119,"yearlyTotal":1428}],"discovery":{"aiTxt":"/ai.txt","openapiJson":"/openapi.json","mcpJson":"/mcp.json"},"planSchemas":[{"type":"object","required":["id","name","channelLimit","monthlyPrice","yearlyPrice"],"properties":{"id":{"type":"string","enum":["starter"]},"name":{"type":"string","enum":["Starter"]},"channelLimit":{"type":"integer","minimum":1,"maximum":1},"monthlyPrice":{"type":"number","minimum":0,"enum":[19]},"yearlyPrice":{"type":"number","minimum":0,"enum":[15]},"yearlyTotal":{"type":"number","minimum":0,"enum":[180]}},"additionalProperties":false},{"type":"object","required":["id","name","channelLimit","monthlyPrice","yearlyPrice"],"properties":{"id":{"type":"string","enum":["professional"]},"name":{"type":"string","enum":["Professional"]},"channelLimit":{"type":"integer","minimum":1,"maximum":3},"monthlyPrice":{"type":"number","minimum":0,"enum":[49]},"yearlyPrice":{"type":"number","minimum":0,"enum":[39]},"yearlyTotal":{"type":"number","minimum":0,"enum":[468]}},"additionalProperties":false},{"type":"object","required":["id","name","channelLimit","monthlyPrice","yearlyPrice"],"properties":{"id":{"type":"string","enum":["enterprise"]},"name":{"type":"string","enum":["Enterprise"]},"channelLimit":{"type":"integer","minimum":1,"maximum":5},"monthlyPrice":{"type":"number","minimum":0,"enum":[149]},"yearlyPrice":{"type":"number","minimum":0,"enum":[119]},"yearlyTotal":{"type":"number","minimum":0,"enum":[1428]}},"additionalProperties":false}]}}