Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
app_store_pricing_matrix
Advanced tools
A simple module that holds currencies and prices from the Apple's iOS App Store.
gem install app_store_pricing_matrix
price = AppStorePricingMatrix.find_by(tier: 1, country: 'US')
price.country # => "United States"
price.country_code # => "US"
price.currency_symbol # => "$"
price.currency_code # => "USD"
price.wholesale_price # => 0.7
price.retail_price # => 0.99
price.formatted_retail_price # => "$0.99"
price.formatted_wholesale_price # => "$0.70"
AppStorePricingMatrix.stems
# => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 510, 530, 550, 560, 570, 580, 590]
AppStorePricingMatrix.countries
# => ["US", "CA", "MX", "AU", "NZ", "JP", "CN", "SG", "HK", "TW", "ID", "IN", "RU", "TR", "IL", "ZA", "SA", "AE", "GB", "DK", "SE", "CH", "NO", "LU", "MT", "CY", "DE", "FR", "AT", "BG", "EE", "SK", "BE", "CZ", "LV", "LT", "NL", "ES", "IT", "SI", "GR", "IE", "PL", "PT", "FI", "RO", "HU", "KR"]
AppStorePricingMatrix.currencies
# => ["USD", "CAD", "MXN", "AUD", "NZD", "JPY", "CNY", "SGD", "HKD", "TWD", "IDR", "INR", "RUB", "TRY", "ILS", "ZAR", "SAR", "AED", "GBP", "DKK", "SEK", "CHF", "NOK", "EUR"]
The pricing matrix JSON is taken from Apple's hidden API at the following URL.
https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/#{AppStoreID}/pricing/matrix
The URL is accessible when you are logged in to iTunes Connect with your browser.
When you need to update the pricing matrix,
rake aspm:open
and enter any App Store ID that you own.input/pricing_matrix.json
.rake
to check if anything is broken.input/pricing_matrix.json
.v3.0.0 (May 2, 2016)
v2.1.0 (October 26, 2012)
v2.0.0 (July 18, 2012)
CURRENCY_MAP
and REVERSE_CURRENCY_MAP
are removed. They are all self-referential now.CUSTOMER_CURRENCIES
and DEVELOPER_CURRENCIES
are removed. Use CURRENCIES
instead.FAQs
Unknown package
We found that app_store_pricing_matrix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.