Metadata
Information about your article, including author name, creation date, publication date, keywords, and excerpt.
Declaration
object MetadataProperties
| Name | Type | Description |
|---|---|---|
authors | [string] | The authors of this article. The value may or may not be the same string provided in the Author or Byline component. Note the following:
Note that the This value appears in the article tile in channel feeds and section feeds. |
campaignData | Metadata.campaignData | A set of key-value pairs, where the value is an array of at least one item that you can leverage to target your advertising campaigns to specific articles or groups of articles. See Set up targeting in the Advertising Guide for News Publishers. |
canonicalURL | uri | The canonical URL of a web version of this article. If this Apple News Format document corresponds to a web version of this article, set this property to the URL of the web article. You can use this property to point to one version of the article as well as to redirect devices that don’t support News content. If you omit |
contentGenerationType | string | An optional string value that indicates the content creation source for the article. Valid values:
|
dateCreated | date-time | The UTC date in ISO 8601 format ( |
dateModified | date-time | The UTC date in ISO 8601 format ( Apple News Format uses this date instead of |
datePublished | date-time | The UTC date in ISO 8601 format ( |
excerpt | string | A summary of your article. It can also be a subheadline or a quote. Keep your excerpt within the recommended 80–300 character range. This text may appear in the article tile in feeds. It can also appear when someone shares an article. See Changing the Appearance of Your Article Tile in Feeds. Don’t use HTML tags or Markdown syntax for this property. Although this property is optional, it’s best to define it in all of your Apple News Format documents. |
generatorIdentifier | string | A unique identifier for the generator you use to create or provide this JSON document. |
generatorName | string | The name of the generator or system that you use to create the JSON document. |
generatorVersion | string | The version “number,” as a string, of the generator you use to create the JSON document. |
issue | Issue | The object for defining information about an issue. |
keywords | [string] | The keywords that describe this article. You can define up to 50 keywords. |
links | [LinkedArticle] | An array of links to other articles in Apple News. |
thumbnailURL | string | The URL of an image that can represent this article in a News feed view, such as the Today feed, channel feeds, and topic feeds. For best results, provide a high-resolution image. Apple News automatically scales the image down to the correct size. Supported image types are JPEG, ( Apple News converts WebP and GIF images you provide as The minimum size of the image must be 300 px wide x 300 px high. The aspect ratio (width ÷ height) must be between 0.5 and 3.0. To improve the loading time of the article, use one of the images in the article as the thumbnail image. If you use the same images in both places and the image appears on the first screen of the article, the image moves with an animated effect from the feed to the article. See Preparing Image, Video, Audio, Music, and ARKit Assets. |
videoURL | uri | The URL for the video that represents this article. A glyph appears on the thumbnail of the article tile, allowing the video to be playable from feeds, such as the Today feed, channel feeds, and topic feeds. Use the same URL for the Video URL must begin with For more information about HLS, see HTTP Live Streaming. |
Mentioned in
Discussion
For best results, include as many properties as you can even though they aren’t required.
Example
{
"metadata": {
"excerpt": "This is a sample sports article.",
"thumbnailURL": "bundle://Football.jpg",
"datePublished": "2018-09-09T14:45:45+00:00",
"dateCreated": "2018-09-08T12:41:00+00:00",
"dateModified": "2018-09-10T12:41:00+00:00",
"authors": [
"Anne Johnson"
],
"campaignData": {
"sport": [
"football"
],
"event": [
"Football"
]
},
"generatorName": "Generator",
"generatorVersion": "1.0",
"canonicalURL": "https://example.com/articles/2015/original-article.html",
"links": [
{
"URL": "https://apple.news/AT6kNQslCQy6EE4bF8hpOoQ",
"relationship": "related"
}
]
}
}