TheNewsAPI · Schema
Source
A news source available through TheNewsAPI.
newsarticlesheadlinesmediaaggregationreal-time
Properties
| Name | Type | Description |
|---|---|---|
| source_id | string | Unique identifier for the source (e.g., techcrunch-us-en). |
| domain | string | Domain name of the news source (e.g., techcrunch.com). |
| language | string | Primary language code of the source (e.g., en). |
| locale | string | Country code locale of the source (e.g., us, gb). |
| categories | array | Categories covered by this source. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.thenewsapi.com/schemas/source.json",
"title": "Source",
"description": "A news source available through TheNewsAPI.",
"type": "object",
"properties": {
"source_id": {
"type": "string",
"description": "Unique identifier for the source (e.g., techcrunch-us-en)."
},
"domain": {
"type": "string",
"description": "Domain name of the news source (e.g., techcrunch.com)."
},
"language": {
"type": "string",
"description": "Primary language code of the source (e.g., en)."
},
"locale": {
"type": "string",
"description": "Country code locale of the source (e.g., us, gb)."
},
"categories": {
"type": "array",
"items": {
"type": "string",
"enum": ["general", "science", "sports", "business", "health", "entertainment", "tech", "politics", "food", "travel"]
},
"description": "Categories covered by this source."
}
},
"required": ["source_id", "domain", "language"],
"additionalProperties": false
}