Retrieve all the results from App Store for certain keywords - app-store-connect

I am looking at the search API provided by Itunes, however I noticed it set limit to 200 which means if there are more than 200 results to be returned it will only return 200.
What I want to realize is I want to search certain keywords and retrieve all the apps related to this keyword, is it possible? Thanks a lot!

The following are examples of fully-qualified URLs for specific search requests:
• To search for all Jack Johnson audio and video content (movies, podcasts, music, music videos, audiobooks, short films, and tv shows), your URL would look like the following:
https://itunes.apple.com/search?term=jack+johnson
• To search for all Jack Johnson audio and video content and return only the first 25 items, your URL would look like the following:
https://itunes.apple.com/search?term=jack+johnson&limit=25
• To search for only Jack Johnson music videos, your URL would look like the following:
https://itunes.apple.com/search?term=jack+johnson&entity=musicVideo
• To search for all Jim Jones audio and video content and return only the results from the Canada iTunes Store, your URL would look like the following:
https://itunes.apple.com/search?term=jim+jones&country=ca
• To search for applications titled “Yelp” and return only the results from the United States iTunes Store, your URL would look like the following:
https://itunes.apple.com/search?term=yelp&country=us&entity=software
Please refer to below Apple docs:
https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/#searchexamples
To Search on iOS apps for all countries:
https://itunes.apple.com/search?term=yelp&entity=software&limit=200

It sounds like the term you're looking for is offset, and you can add this to your search parameters, to view x results after your limit of x.
https://itunes.apple.com/search?term=yelp&entity=software&limit=200&offset=200
For example, the search above will give you the next 200 results (assuming there's more results for your search of course.)
Should work for search endpoints, but not lookup endpoints according to this post.

Related

How to get all Wikipedia article titles?

How to get all Wikipedia article titles in one place without extra characters and pageids. Just the article's title. Something like this:
When I download wikipedia dump, I get this
Maybe I know a movement that might get me all pages but I wanted to get all pages in one take.
You'll find it on https://dumps.wikimedia.org
The latest List of page titles in main namespace for English Wikipedia as a database dump is here (69 MB).
If you rather want it through the API you use query and list=allpages but that only give you maximum 500 (5k for bots) at a time, so you will have to make more than 10 000 API calls for the English Wikipedia.
Example: https://en.wikipedia.org/w/api.php?action=query&format=xml&list=allpages&aplimit=max

How can i get the scores and schedules using ESPN API?

How can I get score & schedule information for all sports matches around the world? I've seen the ESPN API but its available only for strategic partners.
Are there any other solutions, or APIs or RSS feeds for this kind of information?
If you want something that's free, it's going to be tough. There are a lot of companies, like Sports Data LLC whose core business model is to provide this data.
That said, I've had some success pulling JSON score data from the NFL website, inspired by Matt Croydon's blog post here:
http://postneo.com/2007/09/09/accidental-apis-nfl-edition
for anyone else:
an example api endpoint for scores from ESPN is
http://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/scoreboard?lang=en&region=gb&calendartype=whitelist&limit=100&dates=20180407&league=eng.1
the data from this endpoint covers fixtures in the premier league on this day (i.e 2018-04-07)
the endpoint was found by following these steps
open Firefox browser
go to 'Scores' section of espn site (i.e
http://www.espn.co.uk/football/scoreboard/_/league/all/)
press ctrl + shift + e to open developer tools window
go to 'Network Monitor' tab
filter by 'XHR'
click on 'English Premier League' from dropdown-box
endpoint address will appear in table
'Open in new tab' to view data
Since the link is down in Sudhir Vadodariya''s answer, here is another one -
www.gregreda.com/2015/02/15/web-scraping-finding-the-api/
which covers a similar problem using Chrome
ESPN has various unpublished API endpoints that will let you get both scoreboard and schedule information.
Here is another example of a soccer endpoint, showing FIFA games:
Soccer:
FIFA: https://site.api.espn.com/apis/site/v2/sports/soccer/fifa.world/scoreboard
Check the "events" key to find individual games.
You didn't specify a sport, but here are some scoreboards available for other sports/leagues:
Football
College Football: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
NFL: https://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard
Baseball
MLB: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/scoreboard
College Baseball: https://site.api.espn.com/apis/site/v2/sports/baseball/college-baseball/scoreboard
Hockey
NHL: http://site.api.espn.com/apis/site/v2/sports/hockey/nhl/scoreboard
Basketball
NBA: https://site.api.espn.com/apis/site/v2/sports/basketball/nba/scoreboard
WNBA: https://site.api.espn.com/apis/site/v2/sports/basketball/wnba/scoreboard
Women's College Basketball: https://site.api.espn.com/apis/site/v2/sports/basketball/womens-college-basketball/scoreboard
Men's College Basketball: https://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard
Note that the data shape may vary slightly between each endpoint, and you should be mindful of potential rate limits.
Source: ESPN's hidden API endpoints

Search Apple App store by genre with iOS/Obj-c

How would you use Obj-c to search the Apple App store to do the following...
Return the details of the top 100 in the games overall category or a
specific games category
Return the details of a specific games in the games category
Anyone?
Well, as far as I know you have two methods to search the App Store:
Search API;
RSS feed generator.
There are many differences between those but the most relevant for your example is that with the Search API you cannot sort the results as they come sorted by relevance and it requires always a search term. The RSS feed generator already has Top Free, Top Paid and Top Grossing categories for you.
Given this I'm going to start answering your question for the RSS feed generator.
You use the RSS feed generator to generate feeds like this for the top 100 free games in the US store: https://itunes.apple.com/us/rss/topfreeapplications/limit=100/genre=6014/xml;
Take a loot at this link to get games sub genres;
You use NSXMLParser library to parse the RSS which already includes the app details.
You may use the initWithContentsOfUrl: method of NSXMLParser;
A quick how-to for this part can be found here.
You can also use StoreKit to get the details of the apps by their ID or show a modal view controller with a specific app but that will require an extra network request.
For the sake of completeness I'll also cover how you can use the Search API.
Use the Search API to create a URL that describes your search:
A URL like this allow you to search for apps with that matches "angry birds" - https://itunes.apple.com/search?term=angry+birds&media=software.
Process the results using NSJSONSerialization library. That already includes the app details.
Take a loot at this tutorial on how to use the NSJSONSerialization library.
In the end, as #Numan said, this two methods accomplish different things. You said you wanted to have the top 100 games from a specific category and also said you needed to search for a specific game.
You can use my descriptions to create one class that interacts with the App Store in these two ways and return an object defined by you that describes an app (or an array of objects).
You can access this info by RSS, look here http://www.apple.com/rss/
Also you can generate RSS feed http://itunes.apple.com/rss/generator/

Limit Google News RSS to specific country

This may well be documented somewhere obvious, but I'm not seeing it. I'm parsing Google News results from RSS, but I'm struggling to get the RSS feed to match what I'm seeing online, with results limited to my country.
I'm in South Africa. To see SA news on a topic, I search for the topic in Google News, then select "Pages from South Africa" in the left menu. Although that option is under "The web", it does limit the news results as well.
However, the RSS link in the page footer goes to the generic (ie: not region-specific) news results as if I hadn't selected "pages from..." at all. I've been playing with the parameters in the feed URL, but I haven't found any way to get it to restrict the RSS results to my region. (Similarly: can't find an option to limit a CSE - custom search engine - the same way).
Any ideas?
Update: looks like it can't be done - the RSS URL doesn't obey the same rules as the regular searches ("&cr=countryZA"). Manipulating the query string to get the result, and scraping the results out, is in defiance of Google's Ts&Cs.
you can use &geo=usa or even use zip code like &geo=99553
It can be done like so: https://news.google.com/news/feeds?country=AU?geo=2000
The above URL would limit the RSS output to news in Sydney, Australia.

Itunes Search API Returns Incorrect Podcasts

I am new to the Itunes Search API... I have referenced Apple's documentation and I'm trying to retrieve podcast entries but I think I'm doing something wrong.
The following podcast author has 8 podcasts listed: http://itunes.apple.com/us/podcast/dojocampus/id279440331
However, when I use the search API as http://itunes.apple.com/search?term=dojo+campus the json result file only contains 1 entry... I cannot figure out what modification to my search API url must be made to retrieve details about all 8 podcasts in the file.
Please help.
Look more closely at the JSON results:
"resultCount":1
means that the search returned 1 album, not 1 track. Later on in the entry:
"trackCount":8
tells you that the album it found (in this case the "album" of all the podcasts by this user) contains 8 separate podcasts. It's not the best method ever, but this is how their results are meant to be interpreted.