Skip to main content
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.

Annotation types

Entity annotations

Named-entity recognition (NER) identifies specific mentions in post text: Entity annotations include a confidence score and position in the text.

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)
Context annotations help filter and categorize posts without relying on keywords.

Requesting annotations

Add context_annotations and entities to your tweet.fields:

Response structure


Entity annotation fields


Context domains

X uses 80+ domains to categorize posts. Common domains include:
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: Coverage varies by domain and market.

Important notes

Not all posts are annotated. Annotation coverage depends on:
  • Language support
  • Topic coverage in X’s taxonomy
  • Semantic richness of the post text
  • 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.