API Directory › 🍔 Food & Drink › Foodish
No authHTTPSCORS

Foodish API

Random food images by category from a free, no-key API.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Foodish docs ↗

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

https://foodish-api.com/api

Authentication

None. / for a random image, /images/{category} for a random image in that category.

Code examples

curl
curl -s https://foodish-api.com/api/
# {"image":"https://foodish-api.com/images/pizza/pizza20.jpg"}
curl -s https://foodish-api.com/api/images/dessert
JavaScript
const { 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

imageFull 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

404Unknown 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Food & Drink APIs

← Back

More Food & Drink APIs · All 196 APIs