{"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/health:openfda/drug-labels":{"get":{"operationId":"health_openfda_drug_labels","summary":"Drug labels","description":"Structured product labels.","tags":["health"],"parameters":[{"name":"search","in":"query","required":true,"schema":{"type":"string"},"example":"openfda.brand_name:\"advil\""},{"name":"limit","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":5,"minimum":1,"maximum":100,"description":"Number of results"}}],"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":86400,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/health:openfda/drug-events":{"get":{"operationId":"health_openfda_drug_events","summary":"Adverse events","description":"FAERS adverse event reports.","tags":["health"],"parameters":[{"name":"search","in":"query","required":true,"schema":{"type":"string"},"example":"patient.drug.medicinalproduct:\"aspirin\""},{"name":"limit","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":5,"minimum":1,"maximum":100,"description":"Number of results"}},{"name":"count","in":"query","required":false,"schema":{"type":"string"},"example":"patient.reaction.reactionmeddrapt.exact"}],"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":86400,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/health:openfda/food-recalls":{"get":{"operationId":"health_openfda_food_recalls","summary":"Food recalls","description":"Food enforcement reports.","tags":["health"],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"},"example":"state:\"CA\""},{"name":"limit","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":10,"minimum":1,"maximum":100,"description":"Number of results"}}],"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":21600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/health:openfda/device-recalls":{"get":{"operationId":"health_openfda_device_recalls","summary":"Device recalls","description":"Medical device recalls.","tags":["health"],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":10,"minimum":1,"maximum":100,"description":"Number of results"}}],"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":21600,"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"}}}}}}}