NewsAPI Sources API
Get available news sources
NewsAPI Sources API is one of 3 APIs that NewsAPI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
This API exposes 3 JSON Schema definitions.
Tagged areas include Sources. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 3 JSON Schemas.
This API exposes 1 operation across 1 path, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 2.
Requests are made against a single base URL, https://newsapi.org/v2.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 3
NewsAPI Sources API declares
3 security schemes
for authenticating requests.
An API key is passed in the header as X-Api-Key (apiKeyHeader).
An API key is passed in the query as apiKey (apiKeyQuery).
It accepts HTTP bearer tokens (bearerAuth).
By default, every request must be authenticated.
apiKeyHeader— API key passed via X-Api-Key HTTP headerapiKeyQuery— API key passed as a query parameterbearerAuth— API key passed as a Bearer token. Note: the Bearer prefix is optional and the key should NOT be base64 encoded.
Paths & Operations 1
Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.
Get available news sources
Schemas 3
The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are NewsSource (7 properties), ErrorResponse (3 properties), SourcesResponse (2 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from NewsAPI 2
Other APIs NewsAPI publishes across the network.