Skip to main content
GET
/
2
/
news
/
{id}
Get news stories by ID
curl --request GET \
  --url https://api.x.com/2/news/{id} \
  --header 'Authorization: Bearer <token>'
{
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the news story. Unique identifier of news story.

Pattern: ^[0-9]{1,19}$
Example:

"2244994945"

Query Parameters

news.fields
enum<string>[]

A comma separated list of News fields to display. The fields available for a News object.

Minimum array length: 1
Available options:
category,
cluster_posts_results,
contexts,
disclaimer,
hook,
id,
keywords,
name,
summary,
updated_at
Example:
[
"category",
"cluster_posts_results",
"contexts",
"disclaimer",
"hook",
"id",
"keywords",
"name",
"summary",
"updated_at"
]

Response

The request has succeeded.

data
object

An AI generated news story.

errors
object[]
Minimum array length: 1

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).