#Get top countries by service
https://sms-online.pro/stubs/handler_api.php?action=getTopCountriesByService&api_key=$api_key&service=<service>&freePrice=<bool>
#Parameters:
| Parameter |
Type |
Required |
Description |
| $api_key |
string |
☑️ |
API key |
| $freePrice |
bool |
|
Flag for free price map enabling |
| $service |
string |
☑️ |
Service for ordering (see table) |
#Response:
| Response |
Description |
| { “0”: { “country: 0, “count”: 43575, “price”: 15.00, “retail_price”: 30.00 }, … } |
JSON-object |
#Possible errors:
| Error |
Description |
| BAD_KEY |
Wrong API key |
| BAD_SERVICE |
Incorrect service name |