Created
November 4, 2019 15:15
-
-
Save robcowie/155c951d3ed0399e79d908d4d34e8564 to your computer and use it in GitHub Desktop.
Amazon marketplaces with api endpoints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Amazon Marketplace and Region Info. | |
* [MWS docs](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html) | |
* [Advertising API docs](https://advertising.amazon.com/API/docs/en-us/get-started/how-to-use-api) | |
""" | |
from dataclasses import dataclass | |
@dataclass | |
class Marketplace: | |
id: str | |
country: str | |
country_code: str | |
region: str | |
aaapi_endpoint: str | |
mws_endpoint: str | |
MARKETPLACES = [ | |
Marketplace( | |
id="A2Q3Y263D00KWC", | |
country="Brazil", | |
country_code="BR", | |
region="North America", | |
aaapi_endpoint="https://advertising-api.amazon.com", | |
mws_endpoint="https://mws.amazonservices.com", | |
), | |
Marketplace( | |
id="A2EUQ1WTGCTBG2", | |
country="Canada", | |
country_code="CA", | |
region="North America", | |
aaapi_endpoint="https://advertising-api.amazon.com", | |
mws_endpoint="https://mws.amazonservices.ca", | |
), | |
Marketplace( | |
id="A1AM78C64UM0Y8", | |
country="Mexico", | |
country_code="MX", | |
region="North America", | |
aaapi_endpoint="https://advertising-api.amazon.com", | |
mws_endpoint="https://mws.amazonservices.com.mx", | |
), | |
Marketplace( | |
id="ATVPDKIKX0DER", | |
country="US", | |
country_code="US", | |
region="North America", | |
aaapi_endpoint="https://advertising-api.amazon.com", | |
mws_endpoint="https://mws.amazonservices.com", | |
), | |
Marketplace( | |
id="A2VIGQ35RCS4UG", | |
country="United Arab Emirates (U.A.E.)", | |
country_code="AE", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws.amazonservices.ae", | |
), | |
Marketplace( | |
id="A1PA6795UKMFR9", | |
country="Germany", | |
country_code="DE", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws-eu.amazonservices.com", | |
), | |
Marketplace( | |
id="A1RKKUPIHCS9HS", | |
country="Spain", | |
country_code="ES", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws-eu.amazonservices.com", | |
), | |
Marketplace( | |
id="A13V1IB3VIYZZH", | |
country="France", | |
country_code="FR", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws-eu.amazonservices.com", | |
), | |
Marketplace( | |
id="A1F83G8C2ARO7P", | |
country="UK", | |
country_code="GB", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws-eu.amazonservices.com", | |
), | |
Marketplace( | |
id="A21TJRUUN4KGV", | |
country="India", | |
country_code="IN", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws.amazonservices.in", | |
), | |
Marketplace( | |
id="APJ6JRA9NG5V4", | |
country="Italy", | |
country_code="IT", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws-eu.amazonservices.com", | |
), | |
Marketplace( | |
id="A33AVAJ2PDY3EV", | |
country="Turkey", | |
country_code="TR", | |
region="Europe", | |
aaapi_endpoint="https://advertising-api-eu.amazon.com", | |
mws_endpoint="https://mws-eu.amazonservices.com", | |
), | |
Marketplace( | |
id="A19VAU5U5O7RUS", | |
country="Singapore", | |
country_code="SG", | |
region="Far East", | |
aaapi_endpoint="https://advertising-api-fe.amazon.com", | |
mws_endpoint="https://mws-fe.amazonservices.com", | |
), | |
Marketplace( | |
id="A39IBJ37TRP1C6", | |
country="Australia", | |
country_code="AU", | |
region="Far East", | |
aaapi_endpoint="https://advertising-api-fe.amazon.com", | |
mws_endpoint="https://mws.amazonservices.com.au", | |
), | |
Marketplace( | |
id="A1VC38T7YXB528", | |
country="Japan", | |
country_code="JP", | |
region="Far East", | |
aaapi_endpoint="https://advertising-api-fe.amazon.com", | |
mws_endpoint="https://mws.amazonservices.jp", | |
), | |
] | |
BY_ID = {m.id: m for m in MARKETPLACES} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment