My query returns no results. What should I check?

  1. 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.
  2. Data types: add "dataType": ["news", "blog", "pr"]. Many sources are blogs.
  3. Source URIs: use the exact URI from suggestSourcesFast (domain without www).
  4. 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.
  5. Restrictive filters: locationUri, hasEvent, hasDuplicateFilter and similar filters remove many articles. Remove them and add them back one by one.
  6. Keywords: phrases must appear exactly; stopwords are ignored.
  7. 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.