转自: https://fann.im/blog/2018/05/15/app-store-front-code/
X-Apple-Store-Front header is needed to scrape in App Store.
// 29 or 26 or 9
CN 143465-19,29
US 143441-1,29
JP 143462-9,29
KR 143466-13,29
HK 143463-18,29
AU 143460,29
TW 143470-18,29
CA 143455-6,29
DK 143458-2,29
RU 143469-16,29
ID 143476-2,29
TR 143480-2,29
GR 143448-2,29
DE 143443-4,29
IT 143450-7,29
NO 143457-2,29
FR 143442-3,29
TH 143475-2,29
SE 143456-17,29
FI 143447-2,29
GB 143444,29
NL 143452-10,29
BR 143503-15,29
PT 143453-24,29
MX 143468-28,29
ES 143454-8,29
VN 143471-2,29
App info:
curl -H 'x-apple-store-front: 143465-19,29' 'https://itunes.apple.com/cn/app/id1318151064?mt=8'
Top Free iPhone Apps:
curl -H 'x-apple-store-front: 143465-0,9' 'https://itunes.apple.com/WebObjects/MZStore.woa/wa/topChartFragmentData?popId=27&pageNumbers=0&pageSize=1000'
curl -H 'x-apple-store-front: 143465-19,29' 'https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTop?id=25204&popId=27&genreId=36'
Rating & reviews:
# xml
curl -H 'x-apple-store-front: 143441-0,9' 'https://itunes.apple.com/us/customer-reviews/id284882215?dataOnly=true&displayable-kind=11'
# json
curl -H 'x-apple-store-front: 143441-1,29' 'https://itunes.apple.com/us/customer-reviews/id284882215?dataOnly=true&displayable-kind=11'
# Defalt sort
curl -H 'x-apple-store-front: 143441-1,29' 'https://itunes.apple.com/WebObjects/MZStore.woa/wa/userReviewsRow?id=284882215&displayable-kind=11&startIndex=0&endIndex=100&sort=1'
# Data sort
curl -H 'x-apple-store-front: 143441-1,29' 'https://itunes.apple.com/WebObjects/MZStore.woa/wa/userReviewsRow?id=284882215&displayable-kind=11&startIndex=0&endIndex=100&sort=0'
Search & Trends:
# Trends
curl -H 'x-apple-store-front: 143441-1,29' 'https://search.itunes.apple.com/WebObjects/MZSearchHints.woa/wa/trends?maxCount=10'
# Search Result
curl -H 'x-apple-store-front: 143441-1,29' 'https://itunes.apple.com/WebObjects/MZStore.woa/wa/search?clientApplication=Software&term=NBA'
# Search Hints
curl -H 'x-apple-store-front: 143465-1,29' 'https://search.itunes.apple.com/WebObjects/MZSearchHints.woa/wa/hints?clientApplication=Software&term=NBA'
how to get for "iPad and Mac"?