[Post] Search For Sources Request
POST {{baseUrl}}/api/sources
This endpoint allows you to get the list of sources that are available in the database. You can filter the sources by language and country. The maximum number of sources displayed is set according to your plan. You can find the list of plans and their features here: https://newscatcherapi.com/news-api#news-api-pricing
Request Body
{"lang"=>"<comma_sep_string>", "countries"=>"<comma_sep_string>", "predefined_sources"=>"<string>", "include_additional_info"=>"<boolean>", "from_rank"=>"<integer>", "to_rank"=>"<integer>", "source_name"=>"<string>", "source_url"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-token | string | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"message":"\u003cstring\u003e","sources":[{"domain_url":"\u003cstring\u003e","name_source":"\u003cstring\u003e","logo":"\u003cstring\u003e","additional_info":{"nb_articles_for_7d":"\u003cinteger\u003e","country":"\u003cstring\u003e","rank":"\u003cinteger\u003e"}},{"domain_url":"\u003cstring\u003e","name_source":"\u003cstring\u003e","logo":"\u003cstring\u003e","additional_info":{"nb_articles_for_7d":"\u003cinteger\u003e","country":"\u003cstring\u003e","rank":"\u003cinteger\u003e"}}],"user_input":{"lang":["\u003cstring\u003e","\u003cstring\u003e"],"countries":["\u003cstring\u003e","\u003cstring\u003e"],"predefined_sources":["\u003cstring\u003e","\u003cstring\u003e"],"include_additional_info":"\u003cboolean\u003e","from_rank":"\u003cinteger\u003e","to_rank":"\u003cinteger\u003e","source_url":["\u003cstring\u003e","\u003cstring\u003e"],"source_name":"\u003cstring\u003e"}}