Skip to content

Instantly share code, notes, and snippets.

@craigbilner
Last active July 17, 2018 11:03
Show Gist options
  • Save craigbilner/562da84d8fe34cb30446ce838c7c8263 to your computer and use it in GitHub Desktop.
Save craigbilner/562da84d8fe34cb30446ce838c7c8263 to your computer and use it in GitHub Desktop.
Example TPA article data
{
"data": {
"article": {
"id": "b5df0b22-8870-11e8-a0fd-e428ecc3ac12",
"headline": "Brexit climbdown as Theresa May accepts rebel amendment",
"publicationName": "TIMES",
"publishedTime": "2018-07-16T16:00:00.000Z",
"label": "",
"standfirst":
"Brussels would have to agree to collect tariffs on behalf of the UK",
"flags": [],
"byline": [
{
"name": "inline",
"children": [
{
"name": "text",
"attributes": {
"value": "Oliver Wright, Policy Editor | "
},
"children": []
}
]
},
{
"name": "author",
"attributes": {
"slug": "francis-elliott"
},
"children": [
{
"name": "text",
"attributes": {
"value": "Francis Elliott"
},
"children": []
}
]
}
],
"content": [
{
"name": "paragraph",
"children": [
{
"name": "text",
"attributes": {
"value":
"Theresa May bowed to pressure from Conservative Brexiteers"
},
"children": []
}
]
}
],
"summary105": [
{
"name": "paragraph",
"children": [
{
"name": "text",
"attributes": {
"value":
"Theresa May bowed to pressure from Conservative Brexiteers"
},
"children": []
}
]
}
],
"section": "news",
"url":
"https://www.thetimes.co.uk/article/brexit-climbdown-as-theresa-may-accepts-rebel-amendments-55gd5rcpc",
"commentCount": 0,
"commercialTags": [],
"commentsEnabled": true,
"leadAsset": {
"type": "Image",
"id": "8310a49e-a332-49e5-a745-71e323a9b013",
"title": "Justine Greening MP",
"credits": "TIMES PHOTOGRAPHER JACK HILL",
"caption":
"Justine Greening says the only way to break the deadlock is with a second referendum",
"crop": {
"ratio": "16:9",
"url":
"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2F486795ee-886d-11e8-a0fd-e428ecc3ac12.jpg?crop=6720%2C3780%2C0%2C350"
}
},
"relatedArticles": [
{
"id": "18c325b8-8851-11e8-a0fd-e428ecc3ac12",
"headline":
"Justine Greening: Give the British people the final decision on Brexit",
"section": "Comment",
"byline": [
{
"name": "inline",
"children": [
{
"name": "text",
"attributes": {
"value": "Justine Greening"
},
"children": []
}
]
}
],
"label": "comment | Justine Greening",
"publicationName": "TIMES",
"publishedTime": "2018-07-15T23:01:00.000Z",
"summary105": [
{
"name": "paragraph",
"children": [
{
"name": "text",
"attributes": {
"value":
"I wanted the prime minister’s Chequers agreement to be"
},
"children": []
}
]
}
],
"leadAsset": {
"id": "c330f592-8ad9-432c-c23c-c7e880c51452",
"title": "",
"crop169": {
"url":
"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2F2bae3924-8851-11e8-a0fd-e428ecc3ac12.jpg?crop=1500%2C844%2C0%2C78"
},
"crop32": {
"url":
"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2F2bae3924-8851-11e8-a0fd-e428ecc3ac12.jpg?crop=1500%2C1000%2C0%2C0"
}
},
"url":
"https://www.thetimes.co.uk/article/give-the-british-people-the-final-decision-on-brexit-c35f98g89"
}
],
"relatedArticlesLayout": {
"template": "LEAD_AND_TWO",
"main": "18c325b8-8851-11e8-a0fd-e428ecc3ac12"
},
"topics": [
{
"name": "Politics",
"slug": "politics"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment