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, notwww.nytimes.comor a full URL. Some sources use a subdomain (e.g.us.cnn.com); check the exact URI with the freesuggestSourcesFastendpoint or in the sandbox. Paid plans can use up to 50,000 sources in one query. - Exclude sources:
ignoreSourceUri, or$notin the advanced query language. If you'd otherwise need a long blocklist, a list of the sources you trust is usually easier. - Source groups:
sourceGroupUriselects predefined groups, e.g.business/top100,general/top10, orpaywall/paywalled_sources(useful for excluding paywalled sources). - Source importance:
startSourceRankPercentile/endSourceRankPercentilein$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.