Content API Version 1375 Released

86 views
Skip to first unread message

Michael Brunton-Spall

unread,
Apr 30, 2012, 1:00:08 PM4/30/12
to Guardian API Talk
Hello all,

We have been working hard on a number of behind the scenes features for the API, and we thought we'd let you know about our latest release and one of the cool features in it.
Unfortunately this features is for partner tier keys only, but we are working making this available to the approved tier.
We'll be sure to let you know as soon as these features are available for approved keys.

Story: Include HTML5 Interactives in the API.
A new media asset (interactive) has been added to the Content API. The response is similar to picture, audio and video media assets.

Search request:-
"results":[{
      "id":"lifeandstyle/interactive/2012/apr/25/fruit",
      "sectionId":"lifeandstyle",
      "sectionName":"Life and style",
      "webPublicationDate":"2012-04-25T15:37:12+01:00",
      "webTitle":"interactive",
      "fields":{
        "lastModified":"2012-04-25T15:37:13+01:00"
      },
      "mediaAssets":[{
        "type":"interactive",
        "rel":"body",
        "index":1,
        "fields":{
          "altText":"Unassigned",
          "height":"560",
          "width":"500"
        }
      }]
    }
]
Note that the URLS in this example are from an internal server and won't work externally.

We are expecting to use these urls to allow the embedding of certain interactives in external websites, but we cannot be sure that any given interactive will work on external sites because of things like the Single Origin Policy, and some assumptions baked into some interactives that we create.

In addition to this work on interactives in the API, we are hard at work on trying to bring images and inline images to the API in the near future.  We'll be sure to let you know as soon as we are able to release this.

Michael Brunton-Spall
Content Platform Team Lead
Please consider the environment before printing this email.
------------------------------------------------------------------
Visit guardian.co.uk - newspaper of the year

www.guardian.co.uk    www.observer.co.uk     www.guardiannews.com 

On your mobile, visit m.guardian.co.uk or download the Guardian
iPhone app www.guardian.co.uk/iphone
 
To save up to 30% when you subscribe to the Guardian and the Observer
visit www.guardian.co.uk/subscriber 
---------------------------------------------------------------------
This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
 
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.

Guardian News & Media Limited

A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP

Registered in England Number 908396

Michael Brunton-Spall

unread,
Oct 16, 2012, 7:45:14 AM10/16/12
to guardian...@googlegroups.com
Hey there.

To get json output from the API ensure that you either:

a) send an Accept header with application/json
b) postfix the endpoint with .json (i.e. content.guardianapis.com/search.json)
c) send a format=json query parameter with your request (i.e. content.guardianapis.com/search?format=json)

We accept all of the above as format detection.  If you do none of the above and your Accept header is text/html (as is the default in most clients) then you'll instead get a redirect to the explorer.

I hope that helps

Michael Brunton-Spall
Developer Advocate
guardian.co.uk


On 16 October 2012 07:21, vinod ram <vino...@gmail.com> wrote:
hi,
can you please tell me how do i get the json data of the detail content of api url. i want to show the full content like images, summary etc etc  in my ios app. 
i tried to serialize the apiurl but im not getting any json data please help me.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Guardian API Talk" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/guardian-api-talk/-/TDsMn7OPh68J.
To post to this group, send an email to guardian...@googlegroups.com.
To unsubscribe from this group, send email to guardian-api-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/guardian-api-talk?hl=en-GB.

Please consider the environment before printing this email.
------------------------------------------------------------------
Visit guardian.co.uk - newspaper of the year

www.guardian.co.uk    www.observer.co.uk     www.guardiannews.com 

On your mobile, visit m.guardian.co.uk
 or download the Guardian
iPhone app www.guardian.co.uk/iphone and iPad edition www.guardian.co.uk/iPad 
 
Save up to 37% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. 
Visit guardian.co.uk/subscribe 

---------------------------------------------------------------------
This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
 
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.

Guardian News & Media Limited

A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP

Registered in England Number 908396

Reply all
Reply to author
Forward
0 new messages