Skip to main content
q is what you are looking for: a question in plain words, or keywords, with NOT to leave a term out. It can be in any language and up to 500 characters long. AND, OR, quotes, * and parentheses are not operators in /search: they are read as ordinary words and the search is by meaning. For an exact boolean query, use /articles.

Excluding terms with NOT

Put an upper-case NOT before a term or a quoted phrase to drop the articles that mention it: Tesla recall NOT Cybertruck, NOT "model y". A - or ! in front of a word does the same: Tesla recall -Cybertruck.
NOT takes one word or one quoted phrase. NOT Elon Musk drops only “Elon” and searches for “Musk”: write NOT "Elon Musk". A lower-case not is searched as an ordinary word.
  • NOT checks the headline, the description and the summary, not the article text: an article that names the term only in its text is kept.
  • Up to 10 NOT terms count; more are dropped.
  • A q with only NOT terms is refused with 422.
  • The response lists the excluded terms in excluded.
To leave out whole languages, countries or publishers, use not_languages, not_countries and not_sources. See Filters.

Languages

Articles in every language are searched through their English translation, so an English query finds German, Japanese or Arabic articles too. If every language you ask for in languages is not English, the search runs in the original language instead. Use this to search in the language itself. Languages are ISO 639-1 codes:
zh is searched as cn (simplified Chinese). Traditional Chinese is tw.

Boolean queries for /articles

/articles takes a boolean query only, up to 1,000 characters, searched in the fields of search_in:
  • Words with no operator between them are all required: Tesla recall is Tesla AND recall.
  • Mixing AND and OR at the same level needs parentheses: Tesla AND (recall OR lawsuit). Without them the query is refused with 422.
  • A query that is only a wildcard, such as *, is refused with 422.
A query that is only NOT something, such as NOT Tesla, is accepted and matches almost every article in the window.

Tips

  • Say what happened, not only who: Nvidia export restrictions China finds more of what you want than Nvidia.
  • Use quotes for exact names and phrases: "Silicon Valley Bank".
  • Put the time window in search_window, not in q.
  • Narrow with filters instead of long keyword lists.