How do I get articles only from specific sources, or exclude sources?

  • Only from given sources: "sourceUri": ["nytimes.com", "bbc.co.uk"]. The source URI is the domain in clean form - nytimes.com, not www.nytimes.com or a full URL. Some sources use a subdomain (e.g. us.cnn.com); check the exact URI with the free suggestSourcesFast endpoint or in the sandbox. Paid plans can use up to 50,000 sources in one query.
  • Exclude sources: ignoreSourceUri, or $not in the advanced query language. If you'd otherwise need a long blocklist, a list of the sources you trust is usually easier.
  • Source groups: sourceGroupUri selects predefined groups, e.g. business/top100, general/top10, or paywall/paywalled_sources (useful for excluding paywalled sources).
  • Source importance: startSourceRankPercentile / endSourceRankPercentile in $filter (e.g. 0 and 10 for the top 10% of sources). The ranking is based on Similarweb traffic data. The filter applies to the whole query.

When using GET requests, don't write arrays as sourceUri[]=...; use a POST request with a JSON body.