Mediastack · JSON Structure

Mediastack Source Structure

JSON Structure declaration for the Mediastack Source resource.

Type: structure Properties: 0
NewsNews AggregationMediaApilayerPublic APIs

Source is a JSON Structure definition published by Mediastack. It conforms to the https://json-structure.org/structure/v1 meta-schema.

Meta-schema: https://json-structure.org/structure/v1

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/structure/v1",
  "$id": "https://github.com/api-evangelist/mediastack/json-structure/mediastack-source-structure.json",
  "title": "SourceStructure",
  "description": "JSON Structure declaration for the Mediastack Source resource.",
  "type": "structure",
  "name": "Source",
  "fields": [
    { "name": "id", "type": "string", "required": true, "description": "Stable source identifier." },
    { "name": "name", "type": "string", "required": true, "description": "Publisher display name." },
    { "name": "category", "type": "enum", "values": ["general", "business", "entertainment", "health", "science", "sports", "technology"] },
    { "name": "country", "type": "country-code", "description": "ISO 3166-1 alpha-2." },
    { "name": "language", "type": "language-code", "description": "ISO 639-1." },
    { "name": "url", "type": "uri", "description": "Publisher homepage." }
  ]
}