{"openapi":"3.1.0","info":{"title":"Wayline Data API","version":"1.0.0","description":"Primary game-industry data over a simple REST API. The flagship endpoint is the cross-platform join (/entities): a game’s live Steam concurrent players, Twitch viewership, and price across every store, resolved into one row — the view no single-platform source offers. Plus the full Steam and Unity Asset Store catalogs and a change-trail velocity feed. Every reading is stored as a running time-series. Agents can also connect to a remote MCP server at POST /api/data/v1/mcp (Streamable HTTP transport) to get these endpoints as typed tools. Docs: https://www.wayline.io/developers","contact":{"name":"Wayline","url":"https://www.wayline.io/developers"}},"servers":[{"url":"https://www.wayline.io"}],"security":[{"apiKey":[]}],"tags":[{"name":"cross-platform","description":"The join no single-platform source offers."},{"name":"steam"},{"name":"unity"},{"name":"catalog","description":"Wayline's own asset marketplace catalog."},{"name":"account"}],"paths":{"/api/data/v1/entities":{"get":{"tags":["cross-platform"],"operationId":"listCrossPlatformEntities","summary":"Cross-platform games — live players + viewers + price across stores, one row","description":"Games resolved across 2+ platforms. Each row carries live Steam concurrent players, live Twitch viewers, the platforms the game is on, and current price per store. This is the differentiating endpoint.","parameters":[{"name":"q","in":"query","description":"Case-insensitive name search.","schema":{"type":"string"}},{"name":"has_steam","in":"query","description":"Only games present on Steam.","schema":{"type":"boolean"}},{"name":"has_twitch","in":"query","description":"Only games currently tracked on Twitch.","schema":{"type":"boolean"}},{"name":"limit","in":"query","description":"Page size (default 50, max 200).","schema":{"type":"integer","default":50,"maximum":200}},{"name":"offset","in":"query","description":"Row offset for pagination.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A page of cross-platform games.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Entity"}},"total":{"type":"integer"},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"example":{"data":[{"id":16297,"name":"Fallout 4","type":"game","platforms":["gog","steam","twitch"],"steam_ccu":11506,"twitch_viewers":13902,"prices":{"steam":799,"gog":1599}}],"total":599,"pagination":{"limit":1,"offset":0}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/data/v1/trending":{"get":{"tags":["cross-platform"],"operationId":"listTrending","summary":"Top movers by review/rating velocity (gained per day)","parameters":[{"name":"source","in":"query","description":"steam | unity","schema":{"type":"string","enum":["steam","unity"]}},{"name":"window","in":"query","description":"Trailing window in days.","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Page size (default 50, max 200).","schema":{"type":"integer","default":50,"maximum":200}},{"name":"offset","in":"query","description":"Row offset for pagination.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A page of trending entities with velocity."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/steam/games":{"get":{"tags":["steam"],"operationId":"listSteamGames","summary":"Steam catalog (developers, genres, reviews, owners)","parameters":[{"name":"q","in":"query","description":"Case-insensitive name search.","schema":{"type":"string"}},{"name":"genre","in":"query","schema":{"type":"string"}},{"name":"is_indie","in":"query","schema":{"type":"boolean"}},{"name":"min_reviews","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Page size (default 50, max 200).","schema":{"type":"integer","default":50,"maximum":200}},{"name":"offset","in":"query","description":"Row offset for pagination.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A page of Steam apps."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/steam/games/{appid}/history":{"get":{"tags":["steam"],"operationId":"getSteamHistory","summary":"A Steam app’s review/price/CCU time-series + recent velocity","parameters":[{"name":"appid","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Time-series for the app."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/unity/assets":{"get":{"tags":["unity"],"operationId":"listUnityAssets","summary":"Unity Asset Store assets (ratings, pricing, category)","parameters":[{"name":"q","in":"query","description":"Case-insensitive name search.","schema":{"type":"string"}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"is_free","in":"query","schema":{"type":"boolean"}},{"name":"min_rating_count","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","description":"Page size (default 50, max 200).","schema":{"type":"integer","default":50,"maximum":200}},{"name":"offset","in":"query","description":"Row offset for pagination.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A page of Unity assets."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/unity/assets/{id}/history":{"get":{"tags":["unity"],"operationId":"getUnityAssetHistory","summary":"A Unity asset’s rating/price time-series + recent velocity","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Time-series for the asset."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/unity/publishers":{"get":{"tags":["unity"],"operationId":"listUnityPublishers","summary":"Unity Asset Store publishers","parameters":[{"name":"q","in":"query","description":"Case-insensitive name search.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size (default 50, max 200).","schema":{"type":"integer","default":50,"maximum":200}},{"name":"offset","in":"query","description":"Row offset for pagination.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A page of Unity publishers."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/catalog":{"get":{"tags":["catalog"],"operationId":"searchCatalog","summary":"Wayline's own asset catalog (published packs, atoms, products)","description":"Read-only, public listings from the Wayline marketplace — title, price, publisher, format, engine compatibility. Paginated by page (24 per page).","parameters":[{"name":"category","in":"query","description":"Category slug(s), comma-separated.","schema":{"type":"string"}},{"name":"engine","in":"query","description":"godot|unreal|unity, comma-separated.","schema":{"type":"string"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["trending","popular","recently_published","recently_updated","most_downloaded"]}},{"name":"page","in":"query","description":"1-based page.","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"A page of catalog items with pagination { page, per_page, total }."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/usage":{"get":{"tags":["account"],"operationId":"getUsage","summary":"Your API usage this calendar month","responses":{"200":{"description":"Usage counts + free monthly allowance."},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/data/v1/agents":{"post":{"tags":["account"],"operationId":"registerAgent","summary":"Register an autonomous agent principal and get its API secret","description":"Self-serve, no browser session: an autonomous AI agent provisions its own authenticated Data API identity with one call, and uses the returned secret as its bearer token on every subsequent request. The secret is shown exactly once. Rate-limited per IP.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","owner_email"],"properties":{"name":{"type":"string","description":"A label for this agent (max 120 chars)."},"owner_email":{"type":"string","format":"email","description":"A contactable owner email. Not verified, but required."}}}}}},"responses":{"200":{"description":"The agent principal, including its secret (shown once).","content":{"application/json":{"example":{"id":"a1b2c3d4-…","name":"my-research-agent","owner_email":"dev@example.com","secret":"wayline_agent_…","secret_prefix":"wayline_agent_ab12","plan":"free","free_monthly_calls":1000,"auth":"Authenticate every call with header: Authorization: Bearer <secret>"}}}},"400":{"description":"Missing/invalid name or owner_email."},"429":{"description":"Registration rate limit exceeded for your IP."}}},"delete":{"tags":["account"],"operationId":"revokeAgent","summary":"Revoke the calling agent (authenticated by its own secret)","responses":{"200":{"description":"Agent revoked; its secret stops working immediately."},"401":{"$ref":"#/components/responses/Unauthorized"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A Wayline Data API bearer credential: either a consumer key (create one at https://www.wayline.io/developers) or an agent secret from POST /api/data/v1/agents (self-serve, for autonomous agents). Both are sent as: Authorization: Bearer <credential>."}},"responses":{"Unauthorized":{"description":"Missing or invalid API key."},"RateLimited":{"description":"Free monthly allowance exhausted (add a card to continue)."}},"schemas":{"Entity":{"type":"object","description":"One game, resolved across platforms.","properties":{"id":{"type":"integer","description":"Stable Wayline game id; correlate rows over time."},"name":{"type":"string","description":"Canonical name (edition/version variants resolved together)."},"type":{"type":"string","example":"game"},"platforms":{"type":"array","items":{"type":"string","enum":["steam","twitch","gog","epic","nintendo","xbox","apple","google-play","itch"]},"description":"Stores + platforms the game is present on."},"steam_ccu":{"type":["integer","null"],"description":"Live Steam concurrent players (null if not currently sampled)."},"twitch_viewers":{"type":["integer","null"],"description":"Live Twitch viewers (null if not currently streamed)."},"prices":{"type":"object","additionalProperties":{"type":"integer"},"description":"Current price per store in USD minor units (cents). Only stores that carry a price appear.","example":{"steam":799,"gog":1599}}}},"Pagination":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"}}}}}}