> ## 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/games

> Get the published solution to a New York Times puzzle for one day: the Wordle answer, the four Connections groups with their sixteen tiles and board positions, the Spelling Bee letters with every accepted word and its pangrams, the Strands theme words, spangram, clue, letter grid and the grid cells each theme word and the spangram occupy, or the three Pips boards with their dominoes, regions and placements. Every day back to each game's first is available.

**Price:** 1 credit

**⚠️ Common errors:** 412: This game published no puzzle on that day



## OpenAPI

````yaml /openapi/news-publishing.json post /api/nytimes/games
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/games:
    post:
      tags:
        - /nytimes
      summary: /nytimes/games
      description: >-
        Get the published solution to a New York Times puzzle for one day: the
        Wordle answer, the four Connections groups with their sixteen tiles and
        board positions, the Spelling Bee letters with every accepted word and
        its pangrams, the Strands theme words, spangram, clue, letter grid and
        the grid cells each theme word and the spangram occupy, or the three
        Pips boards with their dominoes, regions and placements. Every day back
        to each game's first is available.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: This game published no puzzle on that day
      operationId: __api_nytimes_games_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NytimesGamesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NytimesPuzzle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    NytimesGamesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        game:
          $ref: '#/components/schemas/NytimesGame'
        date:
          type: string
          minLength: 1
      type: object
      required:
        - game
        - date
    NytimesPuzzle:
      properties:
        '@type':
          type: string
          default: NytimesPuzzle
        game:
          type: string
        print_date:
          type: string
        puzzle_id:
          anyOf:
            - type: string
            - type: 'null'
        editor:
          anyOf:
            - type: string
            - type: 'null'
        constructors:
          anyOf:
            - type: string
            - type: 'null'
        days_since_launch:
          anyOf:
            - type: integer
            - type: 'null'
        solution:
          anyOf:
            - type: string
            - type: 'null'
        categories:
          items:
            $ref: '#/components/schemas/NytimesPuzzleCategory'
          type: array
          default: []
        center_letter:
          anyOf:
            - type: string
            - type: 'null'
        outer_letters:
          items:
            type: string
          type: array
          default: []
        pangrams:
          items:
            type: string
          type: array
          default: []
        answers:
          items:
            type: string
          type: array
          default: []
        theme_words:
          items:
            type: string
          type: array
          default: []
        theme_word_positions:
          items:
            $ref: '#/components/schemas/NytimesPuzzleThemeWord'
          type: array
          default: []
        spangram:
          anyOf:
            - type: string
            - type: 'null'
        spangram_positions:
          items:
            items:
              type: integer
            type: array
          type: array
          default: []
        clue:
          anyOf:
            - type: string
            - type: 'null'
        starting_board:
          items:
            type: string
          type: array
          default: []
        valid_words:
          items:
            type: string
          type: array
          default: []
        levels:
          items:
            $ref: '#/components/schemas/NytimesPuzzleLevel'
          type: array
          default: []
      type: object
      required:
        - game
        - print_date
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    NytimesGame:
      type: string
      enum:
        - wordle
        - connections
        - spelling-bee
        - strands
        - pips
    NytimesPuzzleCategory:
      properties:
        '@type':
          type: string
          default: NytimesPuzzleCategory
        category_title:
          type: string
        cards:
          items:
            $ref: '#/components/schemas/NytimesPuzzleCard'
          type: array
          default: []
      type: object
      required:
        - category_title
    NytimesPuzzleThemeWord:
      properties:
        '@type':
          type: string
          default: NytimesPuzzleThemeWord
        word:
          type: string
        positions:
          items:
            items:
              type: integer
            type: array
          type: array
          default: []
      type: object
      required:
        - word
    NytimesPuzzleLevel:
      properties:
        '@type':
          type: string
          default: NytimesPuzzleLevel
        difficulty:
          type: string
        puzzle_id:
          anyOf:
            - type: string
            - type: 'null'
        constructors:
          anyOf:
            - type: string
            - type: 'null'
        dominoes:
          items:
            items:
              type: integer
            type: array
          type: array
          default: []
        regions:
          items:
            $ref: '#/components/schemas/NytimesPuzzleRegion'
          type: array
          default: []
        solution:
          items:
            items:
              items:
                type: integer
              type: array
            type: array
          type: array
          default: []
      type: object
      required:
        - difficulty
    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
    NytimesPuzzleCard:
      properties:
        '@type':
          type: string
          default: NytimesPuzzleCard
        content:
          type: string
        position:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - content
    NytimesPuzzleRegion:
      properties:
        '@type':
          type: string
          default: NytimesPuzzleRegion
        region_type:
          type: string
        indices:
          items:
            items:
              type: integer
            type: array
          type: array
          default: []
        target:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - region_type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````