Is there a way to get news relevant to a particular country?

86 views
Skip to first unread message

Shahood ul Hassan

unread,
Nov 25, 2017, 5:48:41 PM11/25/17
to Guardian Open Platform API Forum
Hi,
I've tried to use content search by giving country names in query (q=countryname) but it provides results where the country names have been used anywhere in the body of the news. Mostly, it aint really relevant to the country in question.
What i really need is that i can get news relating to a particular country and then sort these further according to sections involved in these, before filtering them down further on the basis of different parameters.  Is that really possible?

Mariot Chauvin

unread,
Nov 27, 2017, 7:16:43 AM11/27/17
to guardian...@googlegroups.com
Hi,

You can use the tag associated to a country, for instance world/france for what is about France.

Regards,

Mariot

--
You received this message because you are subscribed to the Google Groups "Guardian Open Platform API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guardian-api-talk+unsubscribe@googlegroups.com.
To post to this group, send email to guardian-api-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/guardian-api-talk.
For more options, visit https://groups.google.com/d/optout.



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 is 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


Mariot Chauvin

unread,
Nov 27, 2017, 9:31:55 AM11/27/17
to guardian...@googlegroups.com
Hi,

You can use the tag associated to a country, for instance world/france for what is about France.

Mariot

On 25 November 2017 at 22:48, Shahood ul Hassan <sha...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Guardian Open Platform API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guardian-api-talk+unsubscribe@googlegroups.com.
To post to this group, send email to guardian-api-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/guardian-api-talk.
For more options, visit https://groups.google.com/d/optout.

Shahood ul Hassan

unread,
Dec 1, 2017, 5:15:59 AM12/1/17
to Guardian Open Platform API Forum
Dear Mariot,

Thanks for the response!

However, theres some sort of a problem in this solution.

I've used http://content.guardianapis.com/world/pakistan?api-key=test&page-size=100 to search for news relating to Pakistan. Somehow the content is different as compared to the one available at https://www.theguardian.com/world/pakistan

The API retrieves only 3 news relating to Oct & Nov 17 each, whereas the web site pulls a lot more than that.

What are we missing here?


On Monday, 27 November 2017 17:16:43 UTC+5, Mariot Chauvin wrote:
Hi,

You can use the tag associated to a country, for instance world/france for what is about France.

Regards,

Mariot
On 25 November 2017 at 22:48, Shahood ul Hassan <sha...@gmail.com> wrote:
Hi,
I've tried to use content search by giving country names in query (q=countryname) but it provides results where the country names have been used anywhere in the body of the news. Mostly, it aint really relevant to the country in question.
What i really need is that i can get news relating to a particular country and then sort these further according to sections involved in these, before filtering them down further on the basis of different parameters.  Is that really possible?

--
You received this message because you are subscribed to the Google Groups "Guardian Open Platform API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guardian-api-t...@googlegroups.com.
To post to this group, send email to guardian...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages