The News API · Capability
The News API — Sources
The News API — Sources. 1 operations. Lead operation: Get News Sources. Self-contained Naftiko capability covering one The News Api business surface.
What You Can Do
GET
Getnewssources
— Get News Sources
/v1/news/sources
MCP Tools
get-news-sources
Get News Sources
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: The News API — Sources
description: 'The News API — Sources. 1 operations. Lead operation: Get News Sources. Self-contained Naftiko capability
covering one The News Api business surface.'
tags:
- The News Api
- Sources
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
THE_NEWS_API_API_KEY: THE_NEWS_API_API_KEY
capability:
consumes:
- type: http
namespace: the-news-sources
baseUri: https://api.thenewsapi.com/v1
description: The News API — Sources business capability. Self-contained, no shared references.
resources:
- name: news-sources
path: /news/sources
operations:
- name: getnewssources
method: GET
description: Get News Sources
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: api_token
in: query
type: string
description: Your API authentication token.
required: true
- name: categories
in: query
type: string
description: Comma-separated categories to filter sources by.
- name: exclude_categories
in: query
type: string
description: Comma-separated categories to exclude.
- name: language
in: query
type: string
description: Comma-separated language codes to filter by.
- name: page
in: query
type: integer
description: Page number for pagination (50 sources per page).
authentication:
type: apikey
key: api_token
value: '{{env.THE_NEWS_API_API_KEY}}'
placement: query
exposes:
- type: rest
namespace: the-news-sources-rest
port: 8080
description: REST adapter for The News API — Sources. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/news/sources
name: news-sources
description: REST surface for news-sources.
operations:
- method: GET
name: getnewssources
description: Get News Sources
call: the-news-sources.getnewssources
with:
api_token: rest.api_token
categories: rest.categories
exclude_categories: rest.exclude_categories
language: rest.language
page: rest.page
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: the-news-sources-mcp
port: 9090
transport: http
description: MCP adapter for The News API — Sources. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: get-news-sources
description: Get News Sources
hints:
readOnly: true
destructive: false
idempotent: true
call: the-news-sources.getnewssources
with:
api_token: tools.api_token
categories: tools.categories
exclude_categories: tools.exclude_categories
language: tools.language
page: tools.page
outputParameters:
- type: object
mapping: $.