{"openapi":"3.0.3","info":{"title":"AgentLayer Gateway","description":"Multi-protocol API gateway for AI agents. Provides real-time stocks, weather, news, and code review. Compatible with MCP, A2A, and GPT Actions.","version":"1.0.0","contact":{"email":"contact@agent.sluban.store"}},"servers":[{"url":"https://agent.sluban.store","description":"Production"},{"url":"http://localhost:3000","description":"Local development"}],"paths":{"/api/gateway?service=stock":{"get":{"operationId":"stock_price","summary":"stock_price","description":"Get real-time stock price for any ticker symbol. Returns current price, daily change, and volume. Free tier: 100 calls/month. $0.003/call after.","parameters":[{"name":"symbol","in":"query","description":"Stock ticker symbol (e.g. AAPL, GOOGL)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request — missing required parameter"},"429":{"description":"Rate limit exceeded"},"502":{"description":"Upstream data source unavailable"}},"security":[{"bearerAuth":[]}]}},"/api/gateway?service=weather":{"get":{"operationId":"weather_forecast","summary":"weather_forecast","description":"Get 7-day weather forecast for any city. Returns temperature, humidity, wind speed, and conditions. Free tier: 200 calls/month. $0.001/call after.","parameters":[{"name":"city","in":"query","description":"City name (e.g. \"Beijing\", \"New York\")","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request — missing required parameter"},"429":{"description":"Rate limit exceeded"},"502":{"description":"Upstream data source unavailable"}},"security":[{"bearerAuth":[]}]}},"/api/gateway":{"post":{"operationId":"code_review","summary":"code_review","description":"Automated code review. Submit a code snippet and get security, performance, and style feedback. Free tier: 50 calls/month. $0.01/call after.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Source code to review"},"language":{"type":"string","description":"Programming language (e.g. python, typescript)"}},"required":["code","language"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request — missing required parameter"},"429":{"description":"Rate limit exceeded"},"502":{"description":"Upstream data source unavailable"}},"security":[{"bearerAuth":[]}]}},"/api/gateway?service=news":{"get":{"operationId":"news_search","summary":"news_search","description":"Search recent news articles by keyword. Returns title, source, date, and summary. Free tier: 500 calls/month. $0.0005/call after.","parameters":[{"name":"q","in":"query","description":"Search keyword","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results (1-50, default 10)","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request — missing required parameter"},"429":{"description":"Rate limit exceeded"},"502":{"description":"Upstream data source unavailable"}},"security":[{"bearerAuth":[]}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Agent Key in format al_agent_<id>"}}},"security":[{"bearerAuth":[]}]}