/nytimes/recipes

POST /api/nytimes/recipes

Price: 1 credit

Get one NYT Cooking recipe by URL: title, the cook's introduction, every ingredient with its quantity and unit, the preparation steps in order, the cook's notes, prep, cook and total times in minutes, how many readers rated it, the recipe tags by kind, the byline, the lead photograph with its credit, and the publication, last-edit and last-revision times.

How to use it

Fetch one cooking.nytimes.com recipe. recipe takes the full URL, the 'recipes/<id>-<slug>' path with its slug, or the nyt://recipe/<uuid> uri that nytimes/articles/search returns as uri when types includes recipe. The numeric part alone does not address a recipe — NYT resolves the URL only with its slug attached. ingredients carry name plus quantity and unit where NYT states them; steps is the ordered preparation text; notes holds the cook's asides; cook_time_minutes, prep_time_minutes and total_time_minutes are minutes. byline names the cooks — NYT publishes no linkable author profile on a recipe, so there is no authors list here. source_id is the numeric id inside the recipe URL; updated_at moves on any edit while major_update_at moves only when the kitchen revises the recipe itself. A URL that points at a NYT Cooking article or collection rather than a recipe is rejected.

Parameters

Request body

Response

Errors

Response headers