|
||||||||||||||||||
Migration Guide for AP Breaking News API Users
Highlights
Typical Workflow
Sample Calls for Typical WorkflowGet Product IDsRetrieve product IDs ('categories' in AP Breaking News API) for content available to your account. AP Breaking News API
AP Media API
For more information, see Account Plans. Search Content by Product IDSearch for the latest content matching a specific product ID. AP Breaking News APIThis example shows a request with the option to include linked pictures
in the response if available (using the
AP Media APIThis example shows a request with the
For more information about searching in AP Media API, see Search. Download ContentDownload content files from the API by following the links in search results. AP Breaking News APIThis example shows a link to a story in AP News Archive and a reference to a linked picture in the 'Content by Category' response.
<entry> <id>urn:uuid:1c680923644743a0a2dba42e5fe212e4</id> ... <link rel="alternate" type="text/html" href="http://www.apnewsarchive.com/2014/Butterball-says-fans-of-itsturkey-products-are-'Turketarian'/id-1c680923644743a0a2dba42e5fe212e4"/> ... <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <div class="hnews hentry item"> <div class="hmedia"> <a rel="enclosure" type="image/jpeg" href="http://binaryapi.ap.org/3d0c1c602e3c471b8b6d80e8849453b3/preview.jpg"> <img border="0" class="photo" alt="This image from video provided by Butterball shows a scene from one of two new TV ads the company is launching. Trying to get the word out that Butterball makes more than just the big bird on Thanksgiving Day, the company is launching the ads that showcase its range of products from turkey sausage to turkey burgers and focus on people who love the lean protein. (AP Photo/Butterball)" src="http://binaryapi.ap.org/3d0c1c602e3c471b8b6d80e8849453b3/thumbnail.jpg"/></a> ... </div> ... </div> </div> </content> </entry> AP Media APIThis example shows a link to a story in NITF format in
"item": { "uri": "https://api.ap.org/media/v/content/398ff826d5f0418a97b279b166cffc92", "altids": { "itemid": "398ff826d5f0418a97b279b166cffc92", ... }, "type": "text", ... "headline": "Uber wields new weapon in fight with London: diplomacy", ... "associations": { "1": { "uri": "https://api.ap.org/media/v/content/8e0cea16e82343e6899d3e733aeac2d0", "altids": { "itemid": "8e0cea16e82343e6899d3e733aeac2d0"}, "type": "picture", "headline": "Britain Uber"}}, "renditions": { "nitf": { "title": "NITF Story Download", "format": "IIM", "mimetype": "text/xml", "fileextension": "xml", "words": 182, "href": "https://api.ap.org/media/v/content/398ff826d5f0418a97b279b166cffc92/download?type=text&format=NITF"}}}
For more information about:
|