{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/application:flathub/app":{"get":{"operationId":"application_flathub_app","summary":"App","description":"AppStream metadata of an app by its Flatpak id.","tags":["application"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"},"example":"org.mozilla.firefox"}],"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":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/application:flathub/collection":{"get":{"operationId":"application_flathub_collection","summary":"Collection","description":"Curated Flathub lists (popular, trending, new, updated, verified, mobile).","tags":["application"],"parameters":[{"name":"collection","in":"query","required":false,"schema":{"type":"string","enum":["popular","recently-added","recently-updated","trending","verified","mobile"],"default":"popular"}},{"name":"page","in":"query","required":false,"description":"1-based page number","schema":{"type":"integer","default":1,"minimum":1,"maximum":100,"description":"1-based page number"}},{"name":"count","in":"query","required":false,"description":"Items per page","schema":{"type":"integer","default":25,"minimum":1,"maximum":250,"description":"Items per page"}}],"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":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/application:flathub/stats":{"get":{"operationId":"application_flathub_stats","summary":"Install Stats","description":"Install statistics of an app.","tags":["application"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"},"example":"org.mozilla.firefox"},{"name":"days","in":"query","required":false,"description":"How many daily points to return","schema":{"type":"integer","default":30,"minimum":1,"maximum":3650,"description":"How many daily points to return"}}],"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":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/application:flathub/search":{"get":{"operationId":"application_flathub_search","summary":"Search","description":"Search Flathub apps.","tags":["application"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"},"example":"image editor"},{"name":"page","in":"query","required":false,"description":"1-based page number","schema":{"type":"integer","default":1,"minimum":1,"maximum":100,"description":"1-based page number"}},{"name":"count","in":"query","required":false,"description":"Items per page","schema":{"type":"integer","default":25,"minimum":1,"maximum":250,"description":"Items per page"}}],"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":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"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"}}}}}}}