My query returns no results. What should I check?
- Date range: dates older than 30 days need a paid plan with historical access enabled on the dashboard. Dates are in UTC, format YYYY-MM-DD.
- Data types: add
"dataType": ["news", "blog", "pr"]. Many sources are blogs. - Source URIs: use the exact URI from
suggestSourcesFast(domain without www). - Query structure: in the advanced query language, dates, language and similar conditions must be in an object inside
$and(see "How do I write an advanced query with AND, OR and NOT?"). Invalid parameter values are ignored or make the query match nothing. - Restrictive filters:
locationUri,hasEvent,hasDuplicateFilterand similar filters remove many articles. Remove them and add them back one by one. - Keywords: phrases must appear exactly; stopwords are ignored.
- Free trial tokens: if all trial tokens are used, requests return an error rather than results.
The fastest way to find the problem is to build the same search in the sandbox (newsapi.ai/documentation/sandbox) and compare the generated request with yours.