LinkedArticle
A relationship between your article and another Apple News article.
Declaration
object LinkedArticleProperties
| Name | Type | Description |
|---|---|---|
relationship Required | string | The type of relationship between the article and the linked document. Valid values:
|
URL Required | uri | The URL for the link, which can be either an Apple News link, like |
Mentioned in
Discussion
You can control lists of links that people see in articles by using the links array in Metadata. If you are linking to a sponsored article, ensure that the Create an Article request uses the isSponsored flag.
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"
],
"author": [
"John Appleseed"
]
},
"generatorName": "Generator",
"generatorVersion": "1.0",
"canonicalURL": "https://example.com/articles/2015/original-article.html",
"links": [
{
"URL": "https://apple.news/AT6kNQslCQy6EE4bF8hpOoQ",
"relationship": "related"
}
]
}
}