Skip to content
NewsDataHub NewsDataHub API Docs

Filtering Source Results

This page documents all available query parameters for filtering source results on the /sources endpoint.

Search sources by title or description. The query supports partial, fuzzy, and exact matches (use quotes for exact phrases).

Partial Match:

https://api.newsdatahub.com/v1/sources?q=Detroit Metro Times

Searches within the title and description and returns any source containing any of the words.

Exact Match:

https://api.newsdatahub.com/v1/sources?q="Detroit Metro Times"

Returns only sources whose title exactly matches the phrase.

Filter by ISO 3166-1 alpha-2 country code. Provide a single country per request. See available countries for the complete list.

https://api.newsdatahub.com/v1/sources?country=MX

Returns sources from Mexico.

Restrict results by language using ISO 639-1 language codes. See available languages for the complete list.

https://api.newsdatahub.com/v1/sources?language=es

Returns sources that primarily publish in Spanish.

Filter by geographic region. Valid values: north_america, south_america, europe, asia, africa, oceania, middle_east.

https://api.newsdatahub.com/v1/sources?region=europe

Returns sources located in Europe.

  • north_america
  • south_america
  • europe
  • asia
  • africa
  • oceania
  • middle_east

Filter by source type: digital_native, press_release, newspaper, magazine, mainstream_news, blog, specialty_news, news_agency.

https://api.newsdatahub.com/v1/sources?type=newspaper

Returns only newspaper sources.

  • digital_native - News organizations that originated online
  • press_release - Official announcements
  • newspaper - Traditional print publications
  • magazine - Periodical publications
  • mainstream_news - Major news outlets
  • blog - Individual or small group websites
  • specialty_news - Industry/topic-focused publications
  • news_agency - Wire services

Filter by coverage areas. Provide comma-separated values such as national, local, regional, or international.

https://api.newsdatahub.com/v1/sources?coverage=national

Returns sources that report on national news.

  • national
  • local
  • international
  • regional

Choose the number of results per page. All tiers support up to 100 results per page. Defaults to 20.

https://api.newsdatahub.com/v1/sources?per_page=100

Returns 100 sources per request.

Use cursor-based pagination by passing the next_cursor value from the previous response.

https://api.newsdatahub.com/v1/sources?cursor=QW1lcmljYW4gRnJlZSBQcmVzcyxhbWVyaWNhbi1mcmVlLXByZXNz

Retrieves the next set of sources.