Skip to content

Instantly share code, notes, and snippets.

@phillipadsmith
Created May 10, 2011 22:08
Show Gist options
  • Save phillipadsmith/965479 to your computer and use it in GitHub Desktop.
Save phillipadsmith/965479 to your computer and use it in GitHub Desktop.
Tyee API: Example story object with many of the likely properties
{
"hits" : {
"hits" : [
{
"_source" : {
"textWithHtml" : "<p>...</p>",
"section" : "News",
"contribs" : [
"182261"
],
"uuid" : "F687E8A0-3B17-11E0-A47A-E9DE26451E31",
"series" : "Currently not set",
"keywords" : [
"Alaska Energy Authority",
"Northwest Transmission Line"
],
"storyDate" : "2011-02-18T00:40:00Z",
"story_type" : "story",
"slug" : "AlaskaPower",
"id" : "40773",
"organization" : "TheTyee.ca",
"related_media" : [
{
"width" : "610",
"height" : "403",
"uri" : "http://thetyee.cachefly.net/News/2011/02/17/stikine-river-wetlands-2.jpg"
"caption" : "Stikine River wetlands, near Alaska border-looking up Stikine River towards the Iskut River confluence -- this area is threatened by one proposed Alaska/BC intertie route under study. Photo: J. Bourquin.",
"name" : "Stikine River wetlands",
"thumbnails" : [
{
"width" : "90",
"name" : "Thumb for Stikine River wetlands",
"height" : "69",
"uri" : "http://thetyee.cachefly.net/News/2011/02/17/stikine-river-wetlands-2_thumb.jpg"
}
],
}
],
"teaser" : "Critics say plan to tie state to BC's power grid will enable shipping Canadian resources from US port.",
"fact_box" : [
{
"content" : "<p>...</p>",
"title" : "ABOUT THE ALASKA-BC INTERTIE"
}
],
"author_info" : [
"<p>Christopher Pollon is a widely published freelance journalist and Tyee contributing editor. His website is\u00a0<a href=\"http://www.chrispollon.ca\" target=\"_blank\">www.chrispollon.ca</a>.</p>"
],
"byline" : "Christopher Pollon",
"path" : "/News/2011/02/18/AlaskaPower/",
"uri" : "http://thetyee.ca/News/2011/02/18/AlaskaPower/",
"topics" : [
"Energy",
"News"
],
"related_stories" : [
{
"teaser" : "Jobs beckon, but Alaskan brings message of caution.",
"title" : "Oil a Slippery Concern for BC's North Coast Natives",
"uuid" : "F9936138-F97E-11DC-B0E9-F31328203C97",
"uri" : "http://thetyee.ca/News/2008/03/24/Oil/"
}
],
"title" : "Alaska Power and the Bleeding of the Northwest",
"related_documents" : [
{
"documents" : [
{
"title" : "Town of Smithers letter to Campbell",
"description" : "",
"uri" : "http://thetyee.ca/News/2011/02/17/Town%20of%20Stewart%20letter%20to%20Campbell.pdf"
}
],
"heading" : "Related Document"
}
]
},
"_score" : 7.8653693,
"_index" : "tyee",
"_id" : "F687E8A0-3B17-11E0-A47A-E9DE26451E31",
"_type" : "story"
}
],
"max_score" : 7.8653693,
"total" : 1
},
"_shards" : {
"failed" : 0,
"successful" : 5,
"total" : 5
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment