Symphony Recipes API
The Recipes API from Symphony — 3 operation(s) for recipes.
The Recipes API from Symphony — 3 operation(s) for recipes.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/symphony-fr:symphony-fr-recipes-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Symphony Recipes API
description: 'Public API for Symphony. Allows management of recipes, ingredients, meal baskets, and discovery.
Authentication is required for all endpoints via an API Key.
Base domain: `https://symphony.fr`'
version: 2.0.0
servers:
- url: /api/v2
x-server-base: https://symphony.fr
security:
- ApiKeyAuth: []
tags:
- name: Recipes
paths:
/recipes/{recipeId}:
get:
operationId: getRecipeById
summary: Retrieve a recipe by ID
description: Returns a recipe with its details
tags:
- Recipes
parameters:
- $ref: '#/components/parameters/RecipeIdParameter'
- $ref: '#/components/parameters/LanguageParameter'
responses:
'200':
description: Successful operation
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/Recipe'
required:
- data
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/RecipeNotFoundResponse'
default:
description: Unexpected error
/recipes:
post:
operationId: createRecipe
summary: Create or update recipe
description: 'Creates or updates a recipe. There are three distinct use cases:
**Case 1: Create from scratch**
- Required: `ingredientQuantities` (array of numbers)
- Optional: `title` (string), `normalizeQuantity` (boolean, default: false)
- Omit: `parent`
- Behavior: Creates a new recipe. If `normalizeQuantity=true`, ingredient quantities will be normalized to sum to 1.0
**Case 2: Update recipe ingredient quantities**
- Required: `parent` (recipe ID), `ingredientQuantities` (array of numbers)
- Optional: `title` (string), `normalizeQuantity` (boolean, default: false)
- Behavior: Updates the recipe''s ingredient quantities. If title is provided, updates to that title
**Case 3: Change title only**
- Required: `parent` (recipe ID), `title` (string)
- Omit: `ingredientQuantities`
- Behavior: Update the recipe''s title only'
tags:
- Recipes
parameters:
- name: lang
in: query
description: The language of the recipe title
schema:
type: string
enum:
- en
- fr
default: fr
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/NewRecipe'
examples:
CreateFromScratch:
summary: Create completely new recipe
value:
title: My new recipe
ingredientQuantities:
- 0.4
- 0
- 0.1
- 0.2
normalizeQuantity: true
UpdateRecipe:
summary: Update existing recipe
value:
parent: existing_recipe_id
ingredientQuantities:
- 0.4
- 0
- 0.2
- 0.1
- 0.3
title: Updated Recipe Name
normalizeQuantity: false
ChangeTitleOnly:
summary: Change only recipe title
value:
parent: existing_recipe_id
title: New Improved Recipe Name
responses:
'200':
description: Successful operation
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/Recipe'
required:
- data
examples:
SuccessWithTitle:
summary: Recipe created/updated with a specific title in the response
description: Example response when the request included a 'title' or updated an existing one.
value:
success: true
data:
id: 680d7c6b9cf8f230043bafa7
title: New Improved Recipe Name
ingredientQuantities:
- 0.4
- 0
- 0.2
- 0.1
- 0.3
nutritionalValuesPer100g:
price: 1.0772
energy: 51.6
protein: 4.288
lipid: 0.284
carbohydrate: 9.956
errors: []
meta:
__response_format: standard
SuccessWithoutTitle:
summary: Recipe created without a title
description: Example response when the request did not include a 'title' and the API does not return a default title in the field.
value:
success: true
data:
id: 680d7c999abcdef123456789
ingredientQuantities:
- 0.5
- 0.5
nutritionalValuesPer100g:
price: 0.85
energy: 45.0
protein: 3.8
lipid: 0.2
carbohydrate: 8.5
errors: []
meta:
__response_format: standard
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
examples:
MissingRequiredFields:
summary: Neither parent nor quantities provided
value:
success: false
errors:
- message: '''ingredientQuantities'' is required when no parent is provided.'
error_code: 400
meta:
__response_format: standard
InvalidQuantitiesType:
summary: Quantities is not an array
value:
success: false
errors:
- message: '''ingredientQuantities'' must be an array of finite positive numbers.'
error_code: 400
meta:
__response_format: standard
InvalidParentIdFormat:
summary: Parent ID is not a valid format
value:
success: false
errors:
- message: '''parent'' must be a valid recipe ID'
error_code: 400
meta:
__response_format: standard
ParentNotFound:
summary: Parent recipe doesn't exist
value:
success: false
errors:
- message: No recipe exists for the provided parent recipe id '624cb1c2b2aca7259d0b0a2f'
error_code: 400
meta:
__response_format: standard
'401':
$ref: '#/components/responses/UnauthorizedResponse'
default:
description: Unexpected error
/recipes/discover:
get:
operationId: discoverRecipes
summary: Discover new recipes
description: 'Find recipes based on various criteria using cursor-based pagination.
To fetch subsequent pages, provide both `lastCursorId` AND `lastCursorScore` from the previous response''s `pagination` object.'
tags:
- Recipes
parameters:
- name: category
in: query
required: false
description: Filter recipes by category
schema:
type: string
default: all
example: vegetarian
- name: sortBy
in: query
required: false
description: Discovery algorithm - 'most-popular' (default, overall popularity), 'trending' (gaining popularity), or 'recent' (newest first)
schema:
type: string
enum:
- most-popular
- trending
- recent
default: most-popular
example: most-popular
- name: lastCursorId
in: query
required: false
description: ID of last recipe from previous page (from 'pagination.lastCursorId'). Omit for first page
schema:
type: string
- name: lastCursorScore
in: query
required: false
description: Score of last recipe from previous page (from 'pagination.lastCursorScore'). Required when lastCursorId is provided
schema:
type: number
format: float
- name: timescale
in: query
required: false
description: Time window in days for considering recipe relevance
schema:
type: integer
default: 30
minimum: 1
example: 7
- name: limit
in: query
required: false
description: Maximum number of recipes per page
schema:
type: integer
default: 20
minimum: 1
maximum: 100
example: 20
- $ref: '#/components/parameters/LanguageParameter'
responses:
'200':
description: Successful operation
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/DiscoverRecipesResponseData'
required:
- data
examples:
FirstPage:
summary: First page of results
value:
success: true
data:
recipes:
- id: recipe_abc
title: Spicy Tofu Stir-Fry
ingredientQuantities:
- 0.4
- 0.3
- 0.1
- 0.2
- id: recipe_def
title: Lentil Shepherd Pie
ingredientQuantities:
- 0.5
- 0.2
- 0.2
- 0.1
pagination:
hasNextPage: true
lastCursorId: recipe_def
lastCursorScore: 0.82
errors: []
meta:
__response_format: standard
LastPage:
summary: Last page of results
value:
success: true
data:
recipes:
- id: recipe_xyz
title: Final Recipe Found
ingredientQuantities:
- 0.9
- 0.1
pagination:
hasNextPage: false
errors: []
meta:
__response_format: standard
NoResults:
summary: No recipes match criteria
value:
success: true
data:
recipes: []
pagination:
hasNextPage: false
errors: []
meta:
__response_format: standard
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
examples:
InvalidLimit:
summary: Limit outside allowed range
value:
success: false
errors:
- message: Limit must be between 1 and 100.
error_code: 400
meta:
__response_format: standard
InvalidTimescale:
summary: Timescale parameter not a positive integer
value:
success: false
errors:
- message: Timescale must be a positive integer.
error_code: 400
meta:
__response_format: standard
InvalidCursorScore:
summary: LastCursorScore not a valid number
value:
success: false
errors:
- message: lastCursorScore must be a number.
error_code: 400
meta:
__response_format: standard
'401':
$ref: '#/components/responses/UnauthorizedResponse'
default:
description: Unexpected error
components:
parameters:
LanguageParameter:
name: lang
in: query
description: Language for localized response fields
schema:
type: string
enum:
- en
- fr
default: fr
RecipeIdParameter:
name: recipeId
in: path
required: true
description: The unique identifier of the recipe
schema:
type: string
example: 646907bc3eb8aa41eb5410cb
schemas:
ApiSuccessResponse:
type: object
properties:
success:
type: boolean
const: true
errors:
type: array
items:
$ref: '#/components/schemas/Error'
example: []
meta:
type: object
properties:
__response_format:
type: string
example: standard
required:
- __response_format
required:
- success
- errors
- meta
DiscoverRecipesResponseData:
type: object
properties:
recipes:
type: array
items:
$ref: '#/components/schemas/Recipe'
pagination:
$ref: '#/components/schemas/CursorPaginationInfo'
required:
- recipes
- pagination
NewRecipe:
type: object
properties:
title:
type: string
description: Name/title of the recipe
example: My new recipe
minLength: 1
ingredientQuantities:
type: array
description: Array of ingredient quantities. Required when creating new recipe. It will be normalized to sum to 1.0 if normalizeQuantity=true.
items:
type: number
format: float
minimum: 0
minItems: 1
example:
- 0
- 0.2
- 0
- 0.4
- 0.1
- 0.3
parent:
type: string
description: ID of existing recipe to base this recipe on. Required when only changing title or updating existing recipe
example: 63485116b0ff720c5cb04bea
normalizeQuantity:
type: boolean
description: If true, automatically normalizes quantities to sum to 1.0. Only applies when ingredientQuantities is provided
default: false
example: false
NutritionalValues:
type: object
description: 'Nutritional values. Property keys are localized via `lang` query param (`en` or `fr`).
Example: `?lang=en` returns English keys ("Proteins" instead of "Protéines").
'
properties:
price:
type: number
format: float
description: 'Localized key: "Price" (en) or "Prix" (fr). Unit: €'
energy:
type: number
format: float
description: 'Localized key: "Energy" (en) or "Énergie" (fr). Unit: kcal'
ages:
type: number
format: float
description: 'Localized key: "AGEs" (en/fr). Unit: kU'
water:
type: number
format: float
description: 'Localized key: "Water" (en) or "Eau" (fr). Unit: g'
fiber:
type: number
format: float
description: 'Localized key: "Fibers" (en) or "Fibres" (fr). Unit: g'
protein:
type: number
format: float
description: 'Localized key: "Proteins" (en) or "Protéines" (fr). Unit: g'
lipid:
type: number
format: float
description: 'Localized key: "Lipids" (en) or "Matières grasses" (fr). Unit: g'
saturated-fat:
type: number
format: float
description: 'Localized key: "Saturated fat" (en) or "Acides gras saturés" (fr). Unit: g'
monounsaturated-fat:
type: number
format: float
description: 'Localized key: "Monounsaturated fat" (en) or "Acides gras monoinsaturés" (fr). Unit: g'
polyunsaturated-fat:
type: number
format: float
description: 'Localized key: "Polyunsaturated fat" (en) or "Acides gras polyinsaturés" (fr). Unit: g'
CBD:
type: number
format: float
description: 'Localized key: "CBD" (en/fr). Unit: g'
glutamic-acid:
type: number
format: float
description: 'Localized key: "Glutamic acid" (en) or "Acide glutamique" (fr). Unit: g'
ash:
type: number
format: float
description: 'Localized key: "Ash" (en) or "Cendres" (fr). Unit: g'
potassium:
type: number
format: float
description: 'Localized key: "Potassium" (en/fr). Unit: g'
magnesium:
type: number
format: float
description: 'Localized key: "Magnesium" (en/fr). Unit: g'
iron:
type: number
format: float
description: 'Localized key: "Iron" (en) or "Fer" (fr). Unit: g'
alcohol:
type: number
format: float
description: 'Localized key: "Alcohol" (en) or "Alcool" (fr). Unit: g'
sodium:
type: number
format: float
description: 'Localized key: "Sodium" (en/fr). Unit: g'
availableCarb:
type: number
format: float
description: 'Localized key: "Carbs" (en) or "Glucides" (fr). Unit: g'
carbohydrate:
type: number
format: float
description: 'Localized key: "Carbs" (en) or "Glucides" (fr). Unit: g'
sugar:
type: number
format: float
description: 'Localized key: "Sugar" (en) or "Sucre" (fr). Unit: g'
fodmap:
type: number
format: float
description: 'Localized key: "FODMAP" (en/fr). Unit: U'
sucrose:
type: number
format: float
description: 'Localized key: "Sucrose" (en/fr). Unit: g'
glucose:
type: number
format: float
description: 'Localized key: "Glucose" (en/fr). Unit: g'
fructose:
type: number
format: float
description: 'Localized key: "Fructose" (en/fr). Unit: g'
lactose:
type: number
format: float
description: 'Localized key: "Lactose" (en/fr). Unit: g'
maltose:
type: number
format: float
description: 'Localized key: "Maltose" (en/fr). Unit: g'
galactose:
type: number
format: float
description: 'Localized key: "Galactose" (en/fr). Unit: g'
vitamin-A:
type: number
format: float
description: 'Localized key: "Vitamin A" (en) or "Vitamine A" (fr). Unit: UI'
vitamin-C:
type: number
format: float
description: 'Localized key: "Vitamin C" (en) or "Vitamine C" (fr). Unit: g'
vitamin-D:
type: number
format: float
description: 'Localized key: "Vitamin D" (en) or "Vitamine D" (fr). Unit: UI'
vitamin-B6:
type: number
format: float
description: 'Localized key: "Vitamin B-6" (en) or "Vitamine B-6" (fr). Unit: g'
vitamin-B12:
type: number
format: float
description: 'Localized key: "Vitamin B-12" (en) or "Vitamine B-12" (fr). Unit: g'
sourness:
type: number
format: float
description: 'Localized key: "Sourness" (en) or "Acidité" (fr). Unit: sourness'
veganness:
type: number
format: float
description: 'Localized key: "Veganness" (en) or "Veganité" (fr). Unit: veganness'
PUFA_18-2_n-6:
type: number
format: float
description: 'Localized key: "PUFA 18:2 n-6" (en/fr). Unit: g'
PUFA_18-3_n-6:
type: number
format: float
description: 'Localized key: "PUFA 18:3 n-6" (en/fr). Unit: g'
PUFA_18-4_n-6:
type: number
format: float
description: 'Localized key: "PUFA 18:4 n-6" (en/fr). Unit: g'
PUFA_20-4_n-6:
type: number
format: float
description: 'Localized key: "PUFA 20:4 n-6" (en/fr). Unit: g'
omega-6:
type: number
format: float
description: 'Localized key: "Omega 6" (en/fr). Unit: g'
PUFA_20-5_n-3:
type: number
format: float
description: 'Localized key: "EPA n-3" (en/fr). Unit: g'
PUFA_22-5_n-3:
type: number
format: float
description: 'Localized key: "DPA n-3" (en/fr). Unit: g'
PUFA_22-6_n-3:
type: number
format: float
description: 'Localized key: "DHA n-3" (en/fr). Unit: g'
omega-3:
type: number
format: float
description: 'Localized key: "Omega 3" (en/fr). Unit: g'
cholesterol:
type: number
format: float
description: 'Localized key: "Cholesterol" (en/fr). Unit: g'
glutenness:
type: number
format: float
description: 'Localized key: "Glutenness" (en/fr). Unit: glutenness'
additionalProperties: false
CursorPaginationInfo:
type: object
description: Information for cursor-based pagination
properties:
hasNextPage:
type: boolean
description: Indicates if more results are available
example: true
lastCursorId:
type: string
description: ID of last item on current page. Use in 'lastCursorId' parameter for next page. Only present when hasNextPage is true
example: 63485116b0ff720c5cb04bf0
lastCursorScore:
type: number
format: float
description: Score of last item on current page. Use in 'lastCursorScore' parameter for next page. Only present when hasNextPage is true and sorting requires it (e.g., /recipes/discover)
example: 0.78
required:
- hasNextPage
Recipe:
type: object
properties:
id:
type: string
example: 63485116b0ff720c5cb04bea
title:
type: string
example: My recipe title
ingredientQuantities:
type: array
items:
type: number
format: float
minimum: 0
description: Quantities of ingredients in the recipe
example:
- 0
- 0.2
- 0
- 0.3
- 0.1
- 0.4
image:
type: string
format: uri
nullable: true
description: URL of the recipe image
example: https://d1fy9tcev7dsal.cloudfront.net/opt_uploads/recipes/s512_bCSgz5HDkIf-qbRarw52I.webp
averageRating:
type: number
format: float
nullable: true
example: 4.5
numberOfRatings:
type: integer
example: 87
numberOfOrders:
type: integer
example: 150
numberOfComments:
type: integer
example: 5
nutritionalValuesPer100g:
$ref: '#/components/schemas/NutritionalValues'
required:
- id
- ingredientQuantities
- nutritionalValuesPer100g
Error:
type: object
properties:
message:
type: string
error_code:
type: integer
format: int32
required:
- message
- error_code
ApiErrorResponse:
type: object
properties:
success:
type: boolean
const: false
errors:
type: array
items:
$ref: '#/components/schemas/Error'
minItems: 1
meta:
type: object
properties:
__response_format:
type: string
example: standard
required:
- __response_format
required:
- success
- errors
- meta
responses:
RecipeNotFoundResponse:
description: Recipe not found
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiErrorResponse'
- type: object
properties:
errors:
type: array
items:
type: object
properties:
message:
type: string
example: No recipe found with id 63485116b0ff720c5cb04bea
error_code:
type: integer
const: 404
required:
- message
- error_code
UnauthorizedResponse:
description: No authorization
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiErrorResponse'
- type: object
properties:
errors:
type: array
items:
type: object
properties:
message:
type: string
example: Unauthorized
error_code:
type: integer
const: 401
required:
- message
- error_code
securitySchemes:
ApiKeyAuth:
type: apiKey
in: query
name: api_key
description: 'API key for authentication. Obtain from: https://symphony.fr/en/my-account/account/api-keys
Include as ''api_key'' query parameter in all requests
'