The New York Times Company User Content API

The User Content API from The New York Times Company — 4 operation(s) for user content.

Operations 4

GET /user-content/recent.json Recent User Comments #
GET /user-content/url.json Comments by URL #
GET /user-content/by-date.json Comments by Date #
GET /user-content/user.json Comments by User #

Documentation

Specifications

Schemas & Data

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/article-search-example.json
🔗
Signup
https://developer.nytimes.com/accounts/create
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/top-stories-home-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/most-popular-emailed-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/timeswire-content-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/archive-month-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/books-best-sellers-list-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/movie-reviews-search-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/times-tags-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/semantic-concept-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/geo-query-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/community-comments-example.json
🔗
Status
https://developer.nytimes.com/docs/community-api-product/1/overview

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/new-york-times-company-user-content-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API 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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

new-york-times-company-user-content-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.0.0
  title: Archive User Content API
  description: 'The Archive API returns an array of NYT articles for a given month, going back to 1851.  Its response fields are the same as the Article Search API. The Archive API is very useful if you want to build your own database of NYT article metadata. You simply pass the API the year and month and it returns a JSON object with all articles for that month.  The response size can be large (~20mb).


    ```

    /{year}/{month}.json

    ```


    ## Example Call

    ```

    https://api.nytimes.com/svc/archive/v1/2019/1.json?api-key=yourkey

    ```

    '
servers:
- url: https://api.nytimes.com/svc/archive/v1
security:
- apikey: []
tags:
- name: User Content
paths:
  /user-content/recent.json:
    parameters: []
    get:
      summary: Recent User Comments
      description: "To retrieve the most recent user comments, use the following URI structure:\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n http://api.nytimes.com/svc/community/v3/user-content/recent.json?api-key={your-API-key}[&optional-param1=value1][...]\n"
      operationId: GET_user-content-recent-json
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  debug:
                    type: object
                    properties:
                      version:
                        type: number
                  status:
                    type: string
                  copyright:
                    type: string
                  results:
                    type: object
                    properties:
                      comments:
                        type: array
                        items:
                          type: object
                          properties:
                            assetID:
                              type: integer
                            commentID:
                              type: integer
                            parentID:
                              type: 'null'
                            statusID:
                              type: integer
                            commentSequence:
                              type: integer
                            commentBody:
                              type: string
                            commentTitle:
                              type: string
                            createDate:
                              type: string
                            updateDate:
                              type: string
                            approveDate:
                              type: string
                            userID:
                              type: integer
                            userDisplayName:
                              type: string
                            userTitle:
                              type: string
                            userURL:
                              type: string
                            userLocation:
                              type: string
                            editorsSelection:
                              type: integer
                            recommendationCount:
                              type: integer
                            commentType:
                              type: string
                            status:
                              type: string
                            asset:
                              type: object
                              properties:
                                assetURL:
                                  type: string
                                vendorID:
                                  type: string
                                source:
                                  type: string
                                assetID:
                                  type: integer
                                createDate:
                                  type: string
                                updateDate:
                                  type: string
                                taxonomy:
                                  type: string
                                labels:
                                  type: array
                                  items:
                                    type: object
                                text:
                                  type: array
                                  items:
                                    type: object
                                properties:
                                  type: object
                                  properties:
                                    comment-list-sort-editors:
                                      type: object
                                      properties:
                                        groupID:
                                          type: integer
                                        taxonomyID:
                                          type: integer
                                    automoderation-on:
                                      type: object
                                      properties:
                                        groupID:
                                          type: integer
                                        taxonomyID:
                                          type: integer
                                    reached-max-com-off:
                                      type: object
                                      properties:
                                        groupID:
                                          type: integer
                                        taxonomyID:
                                          type: integer
                                all-properties:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      description:
                                        type: string
                                      properties:
                                        type: array
                                        items:
                                          type: object
                                assetTitle:
                                  type: string
                            replies:
                              type: array
                              items:
                                type: object
                            display_name:
                              type: string
                            location:
                              type: string
                      totalCommentsReturned:
                        type: integer
                      api_timestamp:
                        type: string
              example:
                debug:
                  version: 3.1
                status: OK
                copyright: Copyright (c) 2016 The New York Times Company.  All Rights Reserved.
                results:
                  comments:
                  - assetID: 3449092
                    commentID: 17912830
                    parentID: null
                    statusID: 2
                    commentSequence: 17912830
                    commentBody: Two things to know about our Governor Kasich. First, he was one of the few Republican governors to accept Obamacare and Medicaid expansion in Ohio, despite the efforts of legislators from his party. Second, as Gail Collins pointed out, he has done everything in his power to eliminate access to safe abortion in Ohio. This will soon include a bill he is expected to sign that will make it illegal for women to have an abortion after learning their fetus has Down's syndrome. Like most candidates these days, we have to take the good with the bad.
                    commentTitle: <br/>
                    createDate: '1458149421'
                    updateDate: '1458149469'
                    approveDate: '1458149469'
                    userID: 64507566
                    userDisplayName: DD
                    userTitle: 'NULL'
                    userURL: 'NULL'
                    userLocation: Cincinnati, OH
                    editorsSelection: 0
                    recommendationCount: 0
                    commentType: comment
                    status: approved
                    asset:
                      assetURL: http://www.nytimes.com/2016/03/16/opinion/campaign-stops/kasich-the-boulder-between-the-gop.html
                      vendorID: MQdKLYFNCfZ7XvixkGz2rw==
                      source: url
                      assetID: 3449092
                      createDate: '1458096538'
                      updateDate: '1458149477'
                      taxonomies:
                      - - taxonomyID: 9188
                          name: opinion
                      taxonomy: opinion/Kasich, the Boulder Between the G.O.P. and Trump (16collins)
                      labels: []
                      text: []
                      properties:
                        comment-list-sort-editors:
                          groupID: 1
                          taxonomyID: 364114
                        automoderation-on:
                          groupID: 2
                          taxonomyID: 364114
                        reached-max-com-off:
                          groupID: 3
                          taxonomyID: 9188
                      all-properties:
                      - name: no-group
                        description: Not in a group
                        properties: []
                      assetTitle: Kasich, the Boulder Between the G.O.P. and Trump (16collins)
                    replies: []
                    display_name: DD
                    location: Cincinnati, OH
                  totalCommentsReturned: 25
                  api_timestamp: '1458149501'
      security:
      - api-key: []
      tags:
      - User Content
  /user-content/url.json:
    parameters: []
    get:
      summary: Comments by URL
      description: "The comments associated with a specific NYTimes.com URL, use the\nfollowing URI structure:\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nhttp://api.nytimes.com/svc/community/v3/user-content/url.json?api-key={your-API-key}&url={url}[&offset=int]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nYou can specify whether to retrieve exact matches or closest stem matches. URL matching is attempted at each segment of the path, as illustrated by the following example:\n\nFirst match attempt: \n  http://www.nytimes.com/2008/10/23/section/article* \nSecond match attempt: \n  http://www.nytimes.com/2008/10/23/section/* \nThird match attempt: \n  http://www.nytimes.com/2008/10/23/*\n\nIn result sets, matching URLs are sorted alphabetically.\n"
      operationId: GET_user-content-url-json
      parameters:
      - name: url
        in: query
        schema:
          type: string
      - name: offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  debug:
                    type: object
                    properties:
                      version:
                        type: number
                  status:
                    type: string
                  copyright:
                    type: string
                  results:
                    type: object
                    properties:
                      comments:
                        type: array
                        items:
                          type: object
                          properties:
                            commentID:
                              type: integer
                            status:
                              type: string
                            commentSequence:
                              type: integer
                            userID:
                              type: integer
                            userDisplayName:
                              type: string
                            userLocation:
                              type: string
                            userTitle:
                              type: 'null'
                            userURL:
                              type: 'null'
                            commentTitle:
                              type: string
                            commentBody:
                              type: string
                            createDate:
                              type: string
                            updateDate:
                              type: string
                            approveDate:
                              type: string
                            recommendations:
                              type: integer
                            replyCount:
                              type: integer
                            replies:
                              type: array
                              items: {}
                            editorsSelection:
                              type: boolean
                            parentID:
                              type: 'null'
                            parentUserDisplayName:
                              type: 'null'
                            depth:
                              type: integer
                            commentType:
                              type: string
                            trusted:
                              type: integer
                            recommendedFlag:
                              type: 'null'
                            reportAbuseFlag:
                              type: 'null'
                            permID:
                              type: string
                            picURL:
                              type: string
                            timespeople:
                              type: integer
                            sharing:
                              type: integer
                      page:
                        type: integer
                      totalCommentsReturned:
                        type: integer
                      totalCommentsFound:
                        type: integer
                      totalParentCommentsFound:
                        type: integer
                      totalParentCommentsReturned:
                        type: integer
                      totalReplyCommentsFound:
                        type: integer
                      totalReplyCommentsReturned:
                        type: integer
                      totalReporterReplyCommentsFound:
                        type: integer
                      totalReporterReplyCommentsReturned:
                        type: integer
                      totalEditorsSelectionFound:
                        type: integer
                      totalEditorsSelectionReturned:
                        type: integer
                      totalRecommendationsFound:
                        type: integer
                      totalRecommendationsReturned:
                        type: integer
                      replyLimit:
                        type: integer
                      depthLimit:
                        type: integer
                      sort:
                        type: string
                      filter:
                        type: string
                      callerID:
                        type: 'null'
                      api_timestamp:
                        type: string
              example:
                debug:
                  version: 3.1
                status: OK
                copyright: Copyright (c) 2016 The New York Times Company.  All Rights Reserved.
                results:
                  comments:
                  - commentID: 20831
                    status: approved
                    commentSequence: 138
                    userID: 44150303
                    userDisplayName: byakushi
                    userLocation: US
                    userTitle: null
                    userURL: null
                    commentTitle: ''
                    commentBody: 'I have always wondered how much energy US would save if it shut down Vegas? Can you imagine the amount of electricity consumed on the strip, the ice melted for its water supply - all in the name of gambling? That''s the kind of consumerism I would like to see halted. Same goes for all the downtown skylines which cause so much light pollution. Even a simple thing like having an "off" switch in the homes rather than just power outlets would save a lot of energy and hopefully make a huge difference in the "consumption footprint." Can American live with that?<br/><br/>As for the growing economies of China & India: the increased industrialization has also increased environmental pollution in those countries. West has conveniently handed down it''s dirty work to them. And at the same time we have Americans screaming about lost jobs. When will they realize that they can''t have it both ways?<br/><br/>All in all they are acting like spoilt brats who have realized that they are no longer the teacher''s favorite. Is it surprising that other folks hate you for your spoilt ways, at the same time envying how you have it so easy?<br/><br/>'
                    createDate: '1199309173'
                    updateDate: '1199322293'
                    approveDate: '1199322293'
                    recommendations: 5
                    replyCount: 0
                    replies: []
                    editorsSelection: false
                    parentID: null
                    parentUserDisplayName: null
                    depth: 1
                    commentType: comment
                    trusted: 0
                    recommendedFlag: null
                    reportAbuseFlag: null
                    permID: '138'
                    picURL: http://graphics8.nytimes.com/images/apps/timespeople/none.png
                    timespeople: 1
                    sharing: 0
                  page: 1
                  totalCommentsReturned: 25
                  totalCommentsFound: 138
                  totalParentCommentsFound: 138
                  totalParentCommentsReturned: 25
                  totalReplyCommentsFound: 0
                  totalReplyCommentsReturned: 0
                  totalReporterReplyCommentsFound: 0
                  totalReporterReplyCommentsReturned: 0
                  totalEditorsSelectionFound: 13
                  totalEditorsSelectionReturned: 1
                  totalRecommendationsFound: 118
                  totalRecommendationsReturned: 23
                  replyLimit: 3
                  depthLimit: 0
                  sort: oldest
                  filter: ''
                  callerID: null
                  api_timestamp: '1455718117'
      security:
      - api-key: []
      tags:
      - User Content
  /user-content/by-date.json:
    parameters: []
    get:
      summary: Comments by Date
      description: 'To retrieve comments posted on a specific date, use the following URI structure:

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        http://api.nytimes.com/svc/community/v3/user-content/by-date.json?api-key={your-API-key}&date={YYYY-MM-DD}[&offset=int]

        '
      operationId: GET_user-content-by-date-json
      parameters:
      - name: date
        in: query
        schema:
          type: string
      - name: offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  debug:
                    type: object
                    properties:
                      version:
                        type: number
                  status:
                    type: string
                  copyright:
                    type: string
                  results:
                    type: object
                    properties:
                      comments:
                        type: array
                        items:
                          type: object
                          properties:
                            commentID:
                              type: integer
                            parentID:
                              type: 'null'
                            statusID:
                              type: integer
                            lft:
                              type: integer
                            rgt:
                              type: integer
                            commentSequence:
                              type: integer
                            commentBody:
                              type: string
                            commentTitle:
                              type: string
                            createDate:
                              type: string
                            updateDate:
                              type: string
                            approveDate:
                              type: string
                            userID:
                              type: integer
                            userDisplayName:
                              type: string
                            userTitle:
                              type: string
                            userURL:
                              type: integer
                            userLocation:
                              type: string
                            editorsSelection:
                              type: integer
                            recommendationCount:
                              type: integer
                            replyCount:
                              type: integer
                            assetID:
                              type: integer
                            assetURL:
                              type: string
                            status:
                              type: string
                            commentType:
                              type: string
                            replies:
                              type: array
                              items:
                                type: object
                                properties: {}
                      totalCommentsReturned:
                        type: integer
                      totalCommentsFound:
                        type: integer
                      api_timestamp:
                        type: string
              example:
                debug:
                  version: 3.1
                status: OK
                copyright: Copyright (c) 2016 The New York Times Company.  All Rights Reserved.
                results:
                  comments:
                  - commentID: 17096625
                    parentID: null
                    statusID: 2
                    lft: 42
                    rgt: 43
                    commentSequence: 17096625
                    commentBody: We used black eyed peas and kale (couldn&#x27;t find mustard greens), and this recipe is fantastic! With cornbread it was perfect!
                    commentTitle: <br/>
                    createDate: '1451710797'
                    updateDate: '1451710808'
                    approveDate: '1451710808'
                    userID: 72856041
                    userDisplayName: Sharon
                    userTitle: 'NULL'
                    userURL: 72856041
                    userLocation: <br/>
                    editorsSelection: 0
                    recommendationCount: 0
                    replyCount: 0
                    assetID: 3444599
                    assetURL: http://cooking.nytimes.com/recipes/1017904
                    status: approved
                    commentType: comment
                    replies: []
                  totalCommentsReturned: 25
                  totalCommentsFound: 4121
                  api_timestamp: '1458149967'
      security:
      - api-key: []
      tags:
      - User Content
  /user-content/user.json:
    parameters: []
    get:
      summary: Comments by User
      description: 'To retrieve comments by a specific NYTimes.com user, use the following URI

        structure:

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        http://api.nytimes.com/svc/community/v3/user-content/user.json?api-key={your-API-key}&userID={<int>}[&offset=<int>][&url={url-to-match}]

        '
      operationId: GET_user-content-user-json
      parameters:
      - name: userID
        in: query
        schema:
          type: integer
      - name: offset
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  debug:
                    type: object
                    properties:
                      version:
                        type: number
                  status:
                    type: string
                  copyright:
                    type: string
                  results:
                    type: object
                    properties:
                      comments:
                        type: array
                        items:
                          type: object
                          properties:
                            commentID:
                              type: integer
                            status:
                              type: string
                            commentSequence:
                              type: integer
                            userID:
                              type: integer
                            userSubmittedDisplayName:
                              type: string
                            userSubmittedTitle:
                              type: 'null'
                            userSubmittedURL:
                              type: 'null'
                            userSubmittedLocation:
                              type: string
                            commentTitle:
                              type: string
                            commentBody:
                              type: string
                            createDate:
                              type: string
                            updateDate:
                              type: string
                            approveDate:
                              type: string
                            recommendations:
                              type: integer
                            replyCount:
                              type: integer
                            replies:
                              type: array
                              items:
                                type: object
                            editorsSelection:
                              type: boolean
                            parentID:
                              type: 'null'
                            commentType:
                              type: string
                            asset:
                              type: object
                              properties:
                                assetURL:
                                  type: string
                                vendorID:
                                  type: string
                                source:
                                  type: string
                                assetID:
                                  type: integer
                                createDate:
                                  type: string
                                updateDate:
                                  type: string
                                taxonomy:
                                  type: string
                                labels:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      labelName:
                                        type: string
                                      labelID:
                                        type: integer
                                text:
                                  type: array
                                  items:
                                    type: object
                                properties:
                                  type: object
                                  properties:
                                    comment-list-sort-approvedate-desc:
                                      type: object
                                      properties:
                                        groupID:
                                          type: integer
                                        taxonomyID:
                                          type: integer
                                    automoderation-off:
                                      type: object
                                      properties:
                                        groupID:
                                          type: integer
                                        taxonomyID:
                                          type: integer
                                    reached-max-com-on:
                                      type: object
                                      properties:
                                        groupID:
                                          type: integer
                                        taxonomyID:
                                          type: integer
                                all-properties:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      description:
                                        type: string
                                      properties:
                                        type: array
                                        items:
                                          type: object
                                assetTitle:
                                  type: string
                            labels:
                              type: array
                              items:
                                type: object
                            permid:
                              type: integer
                            userDisplayName:
                              type: 'null'
                            userTitle:
                              type: 'null'
                            userURL:
                              type: 'null'
                            userLocation:
                              type: 'null'
                            picURL:
                              type: string
                      totalCommentsReturned:
                        type: integer
                      totalCommentsFound:
                        type: integer
                      api_timestamp:
                        type: string
              example:
                debug:
                  version: 3.1
                status: OK
                copyright: Copyright (c) 2016 The New York Times Company.  All Rights Reserved.
                results:
                  comments:
                  - commentID: 4570862
                    status: approved
                    commentSequence: 10
                    userID: 2364811
                    userSubmittedDisplayName: Jim
                    userSubmittedTitle: null
                    userSubmittedURL: null
                    userSubmittedLocation: NYC
                    commentTitle: hardcoded comment title
                    commentBody: time to Go

# --- truncated at 32 KB (34 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/openapi/new-york-times-company-user-content-api-openapi.yml