> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /nytimes/recipes

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

**Price:** 1 credit

**⚠️ Common errors:** 412: No NYT Cooking recipe at this identifier, or it points at another kind of page



## OpenAPI

````yaml /openapi/news-publishing.json post /api/nytimes/recipes
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/nytimes/recipes:
    post:
      tags:
        - /nytimes
      summary: /nytimes/recipes
      description: >-
        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.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No NYT Cooking recipe at this identifier, or
        it points at another kind of page
      operationId: __api_nytimes_recipes_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NytimesRecipesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NytimesRecipe'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    NytimesRecipesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        recipe:
          type: string
          minLength: 1
      type: object
      required:
        - recipe
    NytimesRecipe:
      properties:
        '@type':
          type: string
          default: NytimesRecipe
        uri:
          type: string
        source_id:
          anyOf:
            - type: string
            - type: 'null'
        asset_type:
          type: string
        document_type:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        document_title:
          type: string
        seo_title:
          anyOf:
            - type: string
            - type: 'null'
        promotional_headline:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        major_update_at:
          anyOf:
            - type: integer
            - type: 'null'
        tone:
          anyOf:
            - type: string
            - type: 'null'
        byline:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - $ref: '#/components/schemas/NytimesImage'
            - type: 'null'
        notes:
          items:
            type: string
          type: array
          default: []
        cook_time_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        prep_time_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        total_time_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        rating_count:
          anyOf:
            - type: integer
            - type: 'null'
        ingredients:
          items:
            $ref: '#/components/schemas/NytimesIngredient'
          type: array
          default: []
        steps:
          items:
            type: string
          type: array
          default: []
        recipe_tags:
          items:
            $ref: '#/components/schemas/NytimesRecipeTag'
          type: array
          default: []
        comment_status:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - uri
        - asset_type
        - document_title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    NytimesImage:
      properties:
        '@type':
          type: string
          default: NytimesImage
        uri:
          anyOf:
            - type: string
            - type: 'null'
        image:
          type: string
        width:
          anyOf:
            - type: integer
            - type: 'null'
        height:
          anyOf:
            - type: integer
            - type: 'null'
        caption:
          anyOf:
            - type: string
            - type: 'null'
        credit:
          anyOf:
            - type: string
            - type: 'null'
        alt_text:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - image
    NytimesIngredient:
      properties:
        '@type':
          type: string
          default: NytimesIngredient
        name:
          type: string
        quantity:
          anyOf:
            - type: number
            - type: 'null'
        unit:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NytimesRecipeTag:
      properties:
        '@type':
          type: string
          default: NytimesRecipeTag
        name:
          type: string
        tag_type:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````