Introducing 'editions' in the API

13 views
Skip to first unread message

Stephen Wells

unread,
Nov 9, 2011, 7:20:54 AM11/9/11
to guardian...@googlegroups.com
We recently created a US edition of the Guardian homepage to display content that is more interesting for our American audience. The US edition can be found on http://www.guardiannews.com - users in the US are taken to this page by default, and others can switch to this edition using a drop-down on the top left of any Guardian page.

To allow access to the different versions of these pages we have introduced an "edition" parameter into the api.
To retrieve the US edition, add ‘edition=US’ to the parameters:
http://content.guardianapis.com/.json?show-editors-picks=true&edition=US

To retrieve the UK edition, add ‘edition=UK’ to the parameters:
http://content.guardianapis.com/.json?show-editors-picks=true&edition=UK

If the parameter is omitted or empty the API will default to the UK edition:
http://content.guardianapis.com/.json?show-editors-picks=true

When you follow the links above, the API issues a redirect to either /us-home or /uk-home. These are internal paths on which the different editions live within our CMS though we cannot guarantee that these will stay that way. We recommend that you use the URLs shown above and let the API issue the appropriate redirects instead of hard-coding the /us-home or /uk-home paths. You may also need to configure the library you use to connect to the api to follow redirects.

We have also added the edition parameter in our api explorer - http://explorer.content.guardianapis.com - so that you can try it out.

We hope you find these new features useful and welcome your questions and suggestions for future features. To contact us you can email openpl...@guardian.co.uk or post to the Guardian API Talk  Google Group mailing list - http://groups.google.com/group/guardian-api-talk.
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

Reply all
Reply to author
Forward
0 new messages