NewsAPI News Get Sources

2 credits/call
ae_news_get_sources

Browse News API publishers available for top headlines, filtered by country, category, or language.

News
2 credits/call

Pricing

2 credits/call
ConditionCharge
Each call2 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
countryenum (ae | ar | at | au | be | bg | br | ca | ch | cn | co | cu | cz | de | eg | fr | gb | gr | hk | hu | id | ie | il | in | it | jp | kr | lt | lv | ma | mx | my | ng | nl | no | nz | ph | pl | pt | ro | rs | ru | sa | se | sg | si | sk | th | tr | tw | ua | us | ve | za)NoFind sources that display news in a specific country. Default: all countries.—
categoryenum (business | entertainment | general | health | science | sports | technology)NoFind sources that display news of this category.—
languageenum (ar | de | en | es | fr | he | it | nl | no | pt | ru | sv | ud | zh)NoFind sources that display news in a specific language. Default: all languages.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_news_get_sources' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {}
}'
Response exampleresponse.json
JSONPartial content
{
  "sources": [
    {
      "category": "general",
      "country": "us",
      "description": "Your trusted source for breaking news, analysis, exclusive interviews, headlines, and videos at ABCNews.com.",
      "id": "abc-news",
      "name": "ABC News",
      "url": "https://abcnews.go.com"
    }
  ],
  "status": "ok"
}

This example shows part of the response. Copied content is valid JSON.