Skip to content

Instantly share code, notes, and snippets.

@czechboy0
Last active September 16, 2016 19:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czechboy0/f20c8efdbfe1699e79cf552a9d640cff to your computer and use it in GitHub Desktop.
Save czechboy0/f20c8efdbfe1699e79cf552a9d640cff to your computer and use it in GitHub Desktop.
Fetch iTunes App reviews
# you find the app id of an app by calling the following API and parse the JSON
QUERY="swiftkey"
curl -X "GET" "https://itunes.apple.com/search?term=$QUERY&country=us&entity=software"
# this is how you fetch the page 3 of the app with ID 911813648 (SwiftKey)
# you'd probably want to write a script and start fetching from page 1 up until you get 404 back
PAGE=3
APPID=911813648
curl -X "GET" "https://itunes.apple.com/us/rss/customerreviews/page=$PAGE/id=$APPID/sortby=mostrecent/json?urlDesc=%2Fcustomerreviews%2Fid%3D$APPID%2FsortBy%3DmostRecent%2Fjson"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment