The News API · JSON-LD Context

The News Api Context

JSON-LD context defining the semantic vocabulary for The News Api from The News API.

20 Classes 3 Properties 3 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
news: https://www.thenewsapi.com/vocabulary/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Article Source uuid title description snippet language source locale keywords categories relevance_score similar source_id domain meta found returned limit page

Properties

Property Type Container
url reference
image_url reference
published_at dateTime

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "news": "https://www.thenewsapi.com/vocabulary/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Article": "schema:NewsArticle",
    "Source": "schema:NewsMediaOrganization",

    "uuid": "schema:identifier",
    "title": "schema:headline",
    "description": "schema:description",
    "snippet": "schema:abstract",
    "url": { "@id": "schema:url", "@type": "@id" },
    "image_url": { "@id": "schema:image", "@type": "@id" },
    "language": "schema:inLanguage",
    "published_at": { "@id": "schema:datePublished", "@type": "xsd:dateTime" },
    "source": "schema:publisher",
    "locale": "schema:countryOfOrigin",
    "keywords": "schema:keywords",
    "categories": "schema:articleSection",
    "relevance_score": "news:relevanceScore",
    "similar": "schema:mentions",

    "source_id": "schema:identifier",
    "domain": "schema:url",

    "meta": "news:meta",
    "found": "news:totalResults",
    "returned": "news:returnedResults",
    "limit": "news:pageSize",
    "page": "news:pageNumber"
  }
}