Skip to main content
This page provides a complete list of operators available when building a query for the Search API endpoints.

Overview

Operators are used to match on specific Post attributes. There are two types:
  • Standalone operators — Can be used alone or with any other operators
  • Conjunction-required operators — Must be used with at least one standalone operator

Keyword and phrase operators


Entity operators


User operators


URL operators


Context and entity operators


List operator


Post reference operators


Location operators


Post type operators


Content type operators


Engagement operators

Each operator takes a non-negative integer value and is available with both recent search and full-archive search.
The equivalent operators on X web search are named min_faves: and min_retweets:. Those names are not valid in the X API and will be rejected with a 400 error. Use min_likes: and min_reposts: instead.

Language operator


Logical operators


Supported languages

The lang: operator supports these BCP 47 language codes:

Query limitations


Next steps

Build a query

Learn query syntax and best practices

Search introduction

Get started with Search

Query Builder Tool

Build and test queries interactively