Foodish API
Random food images by category from a free, no-key API.
What it does
Foodish is a minimal API that returns a random food photo URL. Call the root for any random dish, or a category path for a specific food (biryani, burger, dessert, dosa, idly, pasta, pizza, rice, samosa and more). That is the whole API.
Base URL
Authentication
None. / for a random image, /images/{category} for a random image in that category.
Code examples
curl -s https://foodish-api.com/api/
# {"image":"https://foodish-api.com/images/pizza/pizza20.jpg"}
curl -s https://foodish-api.com/api/images/dessertconst { image } = await fetch("https://foodish-api.com/api/images/burger")
.then(r => r.json());
document.querySelector("img").src = image;Rate limits & quotas
No documented rate limit; responses are tiny (one URL). Images are served from the same host — hotlink them or mirror them as you prefer. The project moved domains (from a Heroku host to foodish-api.com), so pin the current one.
Key response fields
| image | Full URL of a random food photo |
| (categories) | biryani, burger, butter-chicken, dessert, dosa, fried-rice, idly, pasta, pizza, rice, samosa … (see the repo for the current list) |
Common errors
| 404 | Unknown category in /images/{category} — check spelling/hyphenation. |
| (broken image) | Rare, if an asset is missing — just request another. |
When to use it (and alternatives)
Handy filler for food-app placeholders, menu mockups, ‘I’m hungry’ buttons and design prototypes. For generic placeholder photos use Lorem Picsum; for actual recipes, TheMealDB.
FAQ
Can I get a specific category?
Yes — /api/images/pizza returns a random pizza image. The category list is in the project’s GitHub README.
Are the images free to use?
They are collected for the open-source project; for anything commercial, verify licensing or use your own photography. Fine for prototypes and demos.
Why did my old foodish-api.herokuapp.com URL stop working?
The project migrated off Heroku to foodish-api.com. Update the base URL.
New to APIs?
Short guides for working with this API — and any other.