{"openapi":"3.1.0","info":{"title":"Apizie: food","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/food:openfoodfacts/product":{"get":{"operationId":"food_openfoodfacts_product","summary":"Product","description":"Product facts by EAN/UPC barcode.","tags":["food"],"parameters":[{"name":"barcode","in":"query","required":true,"schema":{"type":"string"},"example":"3017624010701"}],"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/food:openfoodfacts/search":{"get":{"operationId":"food_openfoodfacts_search","summary":"Search","description":"Full-text product search.","tags":["food"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"},"example":"nutella"},{"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":20,"minimum":1,"maximum":100,"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/food:themealdb/search":{"get":{"operationId":"food_themealdb_search","summary":"Search","description":"Search meals by name.","tags":["food"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"},"example":"arrabiata"}],"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/food:themealdb/lookup":{"get":{"operationId":"food_themealdb_lookup","summary":"Lookup","description":"A meal by TheMealDB id.","tags":["food"],"parameters":[{"name":"mealId","in":"query","required":true,"schema":{"type":"string"},"example":"52771"}],"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/food:themealdb/random":{"get":{"operationId":"food_themealdb_random","summary":"Random","description":"One random meal.","tags":["food"],"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":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/food:themealdb/categories":{"get":{"operationId":"food_themealdb_categories","summary":"Categories","description":"All meal categories.","tags":["food"],"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":86400,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/food:thecocktaildb/search":{"get":{"operationId":"food_thecocktaildb_search","summary":"Search","description":"Cocktails by name.","tags":["food"],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"},"example":"margarita"}],"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/food:thecocktaildb/by-ingredient":{"get":{"operationId":"food_thecocktaildb_by_ingredient","summary":"By ingredient","description":"Cocktails containing an ingredient.","tags":["food"],"parameters":[{"name":"ingredient","in":"query","required":true,"schema":{"type":"string"},"example":"gin"}],"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/food:thecocktaildb/lookup":{"get":{"operationId":"food_thecocktaildb_lookup","summary":"Lookup","description":"Full recipe by id.","tags":["food"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"},"example":"11007"}],"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":604800,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/food:thecocktaildb/random":{"get":{"operationId":"food_thecocktaildb_random","summary":"Random","description":"One random cocktail.","tags":["food"],"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":0,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/food:open-brewery-db/list":{"get":{"operationId":"food_open_brewery_db_list","summary":"Breweries","description":"Filter by city, state or country.","tags":["food"],"parameters":[{"name":"city","in":"query","required":false,"schema":{"type":"string"},"example":"portland"},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"country","in":"query","required":false,"schema":{"type":"string"},"example":"ireland"},{"name":"perPage","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":20,"minimum":1,"maximum":200,"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/food:open-brewery-db/search":{"get":{"operationId":"food_open_brewery_db_search","summary":"Search","description":"Search by name.","tags":["food"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"},"example":"dog"},{"name":"perPage","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":20,"minimum":1,"maximum":200,"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/food:fruityvice/fruit":{"get":{"operationId":"food_fruityvice_fruit","summary":"Fruit","description":"Nutrition for one fruit.","tags":["food"],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"},"example":"banana"}],"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":604800,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/food:fruityvice/all":{"get":{"operationId":"food_fruityvice_all","summary":"All fruits","description":"Every fruit in the database.","tags":["food"],"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":604800,"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"}}}}}}}