{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://www.apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/ai:fungenerators-lottery/get-lottery-countries":{"get":{"operationId":"ai_fungenerators_lottery_get_lottery_countries","summary":"Get the complete list of countries supported in the number generation API.","description":"GET /lottery/countries","tags":["ai"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:fungenerators-lottery/get-lottery-draw":{"get":{"operationId":"ai_fungenerators_lottery_get_lottery_draw","summary":"Generate random draw for a given lottery game.","description":"GET /lottery/draw","tags":["ai"],"parameters":[{"name":"game","in":"query","required":true,"description":"Lottery Game Name","schema":{"type":"string","description":"Lottery Game Name"}},{"name":"count","in":"query","required":false,"description":"Number of draws (max 5 per request)","schema":{"type":"integer","description":"Number of draws (max 5 per request)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:fungenerators-lottery/get-lottery-supported":{"get":{"operationId":"ai_fungenerators_lottery_get_lottery_supported","summary":"Get the list of supported lottery games supported in the given country.","description":"GET /lottery/supported","tags":["ai"],"parameters":[{"name":"country","in":"query","required":true,"description":"Country Name","schema":{"type":"string","description":"Country Name"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}