{"openapi": "3.1.0", "info": {"title": "NetworkLytics API", "version": "1.0.0", "description": "YouTube comment network analysis API. Analyze community structure, influencers, sentiment, and topics from YouTube video comment networks.", "contact": {"url": "https://networklytics.com"}}, "servers": [{"url": "https://networklytics.net/api/v1"}], "paths": {"/": {"get": {"operationId": "api_root", "summary": "API discovery", "responses": {"200": {"description": "API info and endpoint list"}}, "security": []}}, "/analyses/{id}/": {"get": {"operationId": "get_analysis", "summary": "Get YouTube comment network analysis result", "description": "Returns structured network analysis data including network statistics, top influencers, sentiment, topics, and AI insights.", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer"}, "description": "Analysis ID"}], "responses": {"200": {"description": "Analysis result"}, "401": {"description": "Missing or invalid API key"}, "403": {"description": "Access denied"}, "404": {"description": "Analysis not found"}}, "security": [{"ApiKeyAuth": []}]}}, "/shared/{token}/": {"get": {"operationId": "get_shared_analysis", "summary": "Get public shared analysis result (no auth required)", "description": "Access a publicly shared analysis result using its share token. This is the primary endpoint for AI agents and external integrations. Returns network structure, influencers, sentiment, topics, and AI-generated insights.", "parameters": [{"name": "token", "in": "path", "required": true, "schema": {"type": "string", "format": "uuid"}, "description": "Share link token (UUID)"}, {"name": "password", "in": "query", "required": false, "schema": {"type": "string"}, "description": "Password if share link is password-protected"}], "responses": {"200": {"description": "Shared analysis data"}, "403": {"description": "Link inactive, expired, or wrong password"}, "404": {"description": "Share link not found"}}, "security": []}}, "/schema/": {"get": {"operationId": "get_schema", "summary": "OpenAPI 3.1 schema", "responses": {"200": {"description": "This schema"}}, "security": []}}}, "components": {"securitySchemes": {"ApiKeyAuth": {"type": "http", "scheme": "bearer", "description": "API key generated from your NetworkLytics account settings."}}}}