Refine queries with AND, OR, and NOT
AND
: Ensures both terms are present in the search results.OR
: Allows for either term to be present.NOT
: Excludes terms from the search results.()
to group terms and create more
complex queries.
By combining these operators, you can significantly improve the relevance of
your search results and find the most pertinent news articles for your needs.
(bitcoin OR cryptocurrency) AND (investment OR trading)
"electric cars" NOT Tesla
("artificial intelligence" OR AI) AND healthcare NOT (Google OR Amazon OR Microsoft)
/search
endpoint with your constructed query in the q
parameter.
Here is a code example in Python:
AND
, broaden your search with OR
, or exclude certain
topics with NOT
.