Is it possible to just get latest world news without "searching"

By

I have a feeling I've seen this answered before, but is it possible to just get latest world news without "searching" for something.

I'm creating a small fun app but having to have the user type a search query in would be a bit of a pain with the app I'm planning. I know you can hardwire that query but all I want really is just the top news stories?

I've searched the docs and can't find how to do this?

Thanks,

Bren.

 

Filed Under:

Joint Search Query or the Source APIs

Bren,

We do not have "Top Stories" API yet but it is certainly on our roadmap as other developers have asked for it before.

However, there are workarounds to get a top list of news:

a) If your application is specific to a particular subject matter, you can form a query that joins multiple terms using the OR operator and hits the Search APIs. For e.g., if I am building an app in social media, I can form a query that looks like:

Facebook OR Myspace OR Opensocial OR (Social AND (media OR network*))

 

b) If you have a list of sources that you believe produce content very relevant to your application, you can use our SourceAPIs to get a list of articles published by those sources. For e.g., if you are building a business widget, you can use The Wall Street Journal, MarketWatch, BusinessWeek and business oriented sources like them as input to for the Source APIs.

     Another example of it is built using a similar concept - http://cookbook.daylife.com/big-pharma-news ..

 

Hope this helps.

-- Vineet

which source does 'limit' work on?

Hi, I am trying out the source_getArticles with a limit of 6. However, the limit only seems to apply the last mentioned source, for example in "&name=The%20New%20York%20Times&name=The%20Washington%20Post&limit=6"
I would get back 6 articles from The Washington Post and none from The New York times. Is there a way to balance the limit over both so I get 3 articles from each source?

limit is not source specific

Bren

The source API requests with multiple sources as input return you results which are chronologically sorted and the limit applies to results overall and is not source specific.

If you want 6 articles per source, you should make 2 API calls for each. You can also use our Batch API to combine the 2 calls into one request.

 

Thanks!

Vineet

 

fabulous stuff - sourceAPI's

fabulous stuff - sourceAPI's looks like the way to go.

Thanks.

Bren.