canonical: https://jentic.com/apis/receptapi.se/receptapi

# Receptapi Se ReceptAPI

The ReceptAPI API serves Swedish recipes as structured data, with ingredients, the EU 14 allergens, cooking steps, and serving information. Recipes can be listed by free text, category, tag, or ingredient, or fetched in full by slug with amounts, units, nutrition, difficulty, and total and active minutes. An ingredient endpoint returns each ingredient's Swedish name, allergens, default unit, density in grams per decilitre, and its Livsmedelsverket id. Free-tier use requires the attribution line returned in every response's meta block.

## For AI agents

Search and read Swedish recipes with ingredients, amounts, steps, EU 14 allergens, and timings, and look up ingredient data such as allergens and density for unit conversion.

## Scope

Does not create or edit recipes, plan meals, order groceries, or give medical allergy advice. Use for reading Swedish recipe and ingredient data only.

## Capabilities

- Search Swedish recipes by free text across titles, descriptions, tags, and ingredients
- Filter the recipe list by category, tag, or an ingredient slug such as a specific vegetable
- Fetch a full recipe by slug with ingredient amounts, units, groups, steps, nutrition, and allergens
- Look up an ingredient's allergens, default_unit, density_g_per_dl, and livsmedelsverket_id
- Find ingredients by Swedish name or alias and see how many recipes use each one

## Use cases

### Allergy-aware cooking assistant through Jentic

A meal-planning agent asked for a dinner without milk or gluten needs real recipes with declared allergens rather than guesses. Through Jentic the agent searches for 'find a Swedish recipe', loads the ReceptAPI recipe search and detail operations with their input schemas, and reads the allergens array on each candidate recipe, with the optional API key injected at call time. It can then present only recipes whose allergens exclude mjolk and gluten, along with the required attribution line.

Example prompt: Call GET /recipes with q 'middag' and limit 20, then GET `/recipes/{slug}` for each result and keep only recipes whose allergens include neither 'mjolk' nor 'gluten'

### Ingredient-led recipe discovery

A food app suggests what to cook from what is already in the fridge. ReceptAPI filters the recipe list by an ingredient slug, and the ingredients endpoint resolves a Swedish name or alias to that slug and reports how many recipes use it. The app chains the two to show matching recipes with servings, total_minutes, and difficulty.

Example prompt: Call GET /ingredients with q 'potatis' to get the ingredient slug, then GET /recipes with ingredient set to that slug and limit 10

### Grams-and-decilitres unit conversion

Swedish recipes measure dry goods in decilitres, while nutrition and shopping tools often need grams. ReceptAPI returns density_g_per_dl and default_unit for each ingredient, so a tool can convert a recipe's amounts between volume and weight with the vendor's own figures rather than a generic table.

Example prompt: Call GET `/ingredients/{slug}` for 'vetemjol' and multiply 3 dl by density_g_per_dl to return the weight in grams

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/recipes` | List recipes by text, category, tag, or ingredient |
| GET | `/recipes/{slug}` | Get a full recipe |
| GET | `/search` | Search recipes |
| GET | `/ingredients` | List ingredients by name or alias |
| GET | `/ingredients/{slug}` | Get an ingredient |

## Key resources

- **Recipes** — Swedish recipes listed by text, category, tag, or ingredient, and fetched in full by slug
- **Ingredients** — Ingredients with Swedish names, aliases, allergens, default units, density, and recipe counts
- **Search** — Free-text recipe search with limit and offset paging

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 57 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 37 / 100
  - Agent Usability: 94 / 100
  - Security: 50 / 100
  - AI Discoverability: 50 / 100
- **View full report:** https://jentic.com/apis/receptapi.se/receptapi/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring ReceptAPI by hand means deciding whether to send a key in the x-api-key header, tracking the daily call caps, and carrying the attribution line from meta into what you display. Through Jentic you install once, import ReceptAPI from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** ReceptAPI is read-only and puts the recipe or ingredient slug in the URL path (`/recipes/{slug}`), so a rule can bound your agent to the read operations you pick, down to one recipe if you want. You choose which of the five operations it may call.
- **Credential handling:** If you use a ReceptAPI key, it is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'find a Swedish recipe' or 'get an ingredient's allergens', and Jentic returns the matching ReceptAPI operation with its input schema, including the q, category, tag, and ingredient filters.

## Related APIs

- **spoonacular API** — International recipe, nutrition, and meal-planning data
- **TheMealDB API** — Open crowd-sourced recipe database
- **Food Database API** — Food and nutrition database lookup
- **Open Food Facts** — Packaged food products by barcode with ingredients and allergens

## FAQ

### What authentication does ReceptAPI use?

Per its OpenAPI spec, ReceptAPI takes an optional API key in the x-api-key header, and its security block also allows anonymous calls. The spec states anonymous calls get 50 a day per IP and a free key raises that to 100 a day. Through Jentic the key, if you use one, is stored by your own instance and attached at call time.

### What are the rate limits for ReceptAPI?

The spec's own description states the limits: anonymous calls are capped at 50 a day per IP, and a free API key allows 100 a day. Check https://receptapi.se/ for any paid tiers above that.

### Do I need to credit ReceptAPI when I use its data?

Yes, on the free tier. The spec states that all free-tier use requires attribution, and every response carries the required credit text, naming ReceptAPI and receptapi.se, in meta.attribution. Show that line wherever your agent displays the recipe.

### Is there a ReceptAPI MCP server?

You don't need an MCP server to give your agent ReceptAPI. Jentic connects it directly from the API Directory: import it, store your key once if you have one, and your agent calls the recipe and ingredient operations on demand without loading extra tool definitions into its context.

### How do I get a recipe's allergens through Jentic?

Search Jentic for 'get a Swedish recipe with allergens', load the GET `/recipes/{slug}` operation, and run it with the recipe slug. The response carries an allergens array using codes such as gluten, mjolk, and agg, along with the ingredient list. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with ReceptAPI?

Yes. For example, write a rule that allows only GET /recipes and GET `/recipes/{slug}`, so the agent can search and read recipes but not page through the ingredient database, and every call it makes is logged.
