Annotations provide semantic metadata about post content. X analyzes posts to identify entities (people, places, products) and context (topics, domains) to help you understand and filter content.Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Annotation types
Entity annotations
Named-entity recognition (NER) identifies specific mentions in post text:| Type | Examples |
|---|---|
| Person | Barack Obama, Elon Musk |
| Place | San Francisco, Japan |
| Product | iPhone, ChatGPT |
| Organization | NASA, Google |
| Other | Super Bowl, Diabetes |
Context annotations
Semantic analysis that classifies posts by topic and domain:- Domain: Broad category (Sports, Entertainment, Technology)
- Entity: Specific topic within the domain (NBA, Marvel Movies, AI)
Requesting annotations
Addcontext_annotations and entities to your tweet.fields:
Response structure
Entity annotation fields
| Field | Description |
|---|---|
start | Start position in text |
end | End position in text |
probability | Confidence score (0-1) |
type | Entity type (Person, Place, etc.) |
normalized_text | Standardized entity name |
Context domains
X uses 80+ domains to categorize posts. Common domains include:- Entertainment
- Sports
- Business & Tech
- Other
| ID | Domain |
|---|---|
| 3 | TV Shows |
| 4 | TV Episodes |
| 54 | Musician |
| 56 | Actor |
| 86 | Movie |
| 91 | Podcast |
Domain 131 (Unified Twitter Taxonomy) powers X’s Topics feature visible to users on the platform.
Using annotations in filters
Search and filtered stream
Filter posts by context annotation entity ID:Practical examples
Language support
Annotations are available for multiple languages:| Language | Coverage |
|---|---|
| English | Highest |
| Japanese | High |
| Spanish | High |
| Portuguese | Medium |
| French | Medium |
| Hindi | Medium |
Important notes
- Annotations are not retroactive—only applied when entities are tracked
- The same entity can appear in multiple domains (e.g., a celebrity is both Person and Actor)
- Entity IDs are stable across domains
Resources
Context Entity List
CSV of available context annotation entities.