Guides

Get from zero to your first authenticated request in under a minute.

Quickstart

  1. 1. Sign up for a free account (no credit card required).
  2. 2. Create your first key at /dashboard/api-keys and copy it once.
  3. 3. Send a request with the key in the x-api-key header.

curl

curl -H "x-api-key: lapi_your_key_here" \
  https://ugafoodapi.vercel.app/api/v1/recipes/trending

JavaScript / Node 18+

const KEY = process.env.UGANDA_FOOD_API_KEY;

const res = await fetch(
  "https://ugafoodapi.vercel.app/api/v1/recipes?dietary=vegan&max_prep_time=30",
  { headers: { "x-api-key": KEY } },
);
const { recipes } = await res.json();
console.log(recipes.map(r => `${r.name} — ${r.region_origin}`));

Python (requests)

import os, requests

key = os.environ["UGANDA_FOOD_API_KEY"]
res = requests.get(
    "https://ugafoodapi.vercel.app/api/v1/recipes",
    headers={"x-api-key": key},
    params={"region": "central", "dietary": "vegan"},
)
for r in res.json()["recipes"]:
    print(r["name"], "—", r["region_origin"])

Guides by topic

Full API reference

Try every endpoint live in the Scalar reference, with request builder, examples and schema viewer.

Open reference

Changelog

See what's shipped and what's coming. We add recipes and ingredients on a rolling basis.

View changelog