Get countries list (personal pricing)
Changed onReturns paginated list of available accounts with user-specific pricing (personal discount applied).
Pricing. Prices reflect the authenticated user's discount level. To see base prices without discount, use GET /accounts/countries.
Difference from /accounts/countries:
- Requires authentication
- Prices include user's personal discount
Filtering. Use country_codes to request specific countries (e.g., US,RU,GB).
Sorting options: price_asc, price_desc, name_asc, name_desc, popularity_asc, popularity_desc.
Request
- Base URLhttps://api.getmytg.com
- URLhttps://api.getmytg.com/v1/accounts/
- Auth
- API key in header x-api-key
- or HTTP bearer
Query parameters
Filter by country codes. Comma-separated list of ISO 3166-1 alpha-2 codes (e.g., 'US,RU,GB').
Sort order for accounts.
Page number.
Number of items per page.
Response
Successful response.
Example response
{
"items": [
{
"country_code": "US",
"emoji": "🇺🇸",
"display_name": {
"ru": "США",
"en": "United States"
},
"price": {
"amount": "1.50",
"currency_code": "USD"
},
"base_price": {
"amount": "1.50",
"currency_code": "USD"
},
"available": true,
"tags": [
"HIGH_QUALITY"
],
"popularity_index": 123,
"available_count": 1034
}
],
"pagination": {
"current_page": 1,
"page_size": 50,
"total_items": 150,
"total_pages": 3,
"has_next": true
}
}Changes
- breaking
the
/response property's max was increased from150.00to250.00for the response status - info
for the
queryrequest parameterpage_size, the max was increased from150.00to250.00 - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking