Skip to main content
The X API v2 returns minimal data by default. Use fields parameters to request additional data for each object type.

How fields work

By default, a post lookup returns only id, text, and edit_history_tweet_ids. To get more data, add field parameters to your request:

Available field parameters

Each object type has its own fields parameter:
ObjectParameterDocumentation
Post (Tweet)tweet.fieldsPost fields
Useruser.fieldsUser fields
Mediamedia.fieldsMedia fields
Pollpoll.fieldsPoll fields
Placeplace.fieldsPlace fields

Example: Post fields

Request specific post fields with tweet.fields:
Response:

Example: User fields

Request specific user fields with user.fields:
Response:

To get fields on related objects (like the author of a post), you need two things:
  1. An expansion to include the related object
  2. The fields parameter for that object type
Response:
Learn more about expansions →

Common field combinations


Important notes

You cannot request subfields. When you request public_metrics, you get all metrics (likes, reposts, replies, quotes, bookmarks, impressions). You can’t request just public_metrics.like_count.
  • Field order in responses may differ from request order
  • Missing fields in responses mean the value is null or empty
  • Some fields require specific authentication (e.g., private metrics need user context)
  • Check each endpoint’s API reference for available fields

Next steps

Expansions

Include related objects in responses.

Data Dictionary

Complete field reference for all objects.