{"openapi":"3.1.0","info":{"title":"AssetMarketCap REST API","description":"\n## Authentication\n\nAll endpoints require an API key passed via the `X-API-Key` header\nor the `api_key` query parameter.\n\n### Access tiers\n\n| Endpoint | Subscription required |\n|---|---|\n| `GET /API/daily` | API key (free tier included) |\n| `GET /API/tickers` | Active API subscription |\n| `GET /API/pro/daily` | Active API subscription **+** Active Pro subscription |\n| `GET /API/assets/{ticker}` | Active API subscription **+** Active Pro subscription |\n\n### Rate limits\n\nEach plan has a monthly call limit:\n\n| Plan | Monthly calls |\n|---|---|\n| Free | 1,000 |\n| Starter | 10,000 |\n| Growth | 100,000 |\n| Scale | 1,000,000 |\n\nWhen your limit is reached, requests return **HTTP 429**. Limits reset on the first of each calendar month.\n\nManage your subscriptions at [assetmarketcap.com](https://assetmarketcap.com).\n","version":"2.0.0"},"paths":{"/API/daily":{"get":{"tags":["basic"],"summary":"Basic daily table","description":"Returns the basic daily market-cap table as JSON. Requires an **active API subscription**.","operationId":"get_daily_API_daily_get","parameters":[{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key (alternative to X-API-Key header)","title":"Api Key"},"description":"API key (alternative to X-API-Key header)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/API/tickers":{"get":{"tags":["pro"],"summary":"List available tickers","description":"Returns the list of all available asset ticker symbols. Requires an **active API subscription** and an **active Pro subscription**.","operationId":"list_tickers_API_tickers_get","parameters":[{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key (alternative to X-API-Key header)","title":"Api Key"},"description":"API key (alternative to X-API-Key header)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TickerListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/API/pro/daily":{"get":{"tags":["pro"],"summary":"Pro daily table","description":"Returns the full pro daily market-cap table as JSON. Requires an **active API subscription** and an **active Pro subscription**.","operationId":"get_pro_daily_API_pro_daily_get","parameters":[{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key (alternative to X-API-Key header)","title":"Api Key"},"description":"API key (alternative to X-API-Key header)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/API/assets/{ticker}":{"get":{"tags":["pro"],"summary":"Individual asset data","description":"Returns historical price and metadata for a single asset. Requires an **active API subscription** and an **active Pro subscription**.","operationId":"get_ticker_API_assets__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":30,"description":"Ticker symbol, e.g. AAPL or BTC-USD","title":"Ticker"},"description":"Ticker symbol, e.g. AAPL or BTC-USD"},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key (alternative to X-API-Key header)","title":"Api Key"},"description":"API key (alternative to X-API-Key header)"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"TickerListResponse":{"properties":{"count":{"type":"integer","title":"Count"},"tickers":{"items":{"type":"string"},"type":"array","title":"Tickers"}},"type":"object","required":["count","tickers"],"title":"TickerListResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}