Get started
The 4sim API provides programmatic access to buy numbers.
To use this API, you need an API key. Your api key is {your_api_key}
Get Balance
To get your account balance you need to make a GET call to the following url :
https://api.4sim.in/getBalance?apikey={your_api_key}
QUERY PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
Get Servers
To get your servers you need to make a GET call to the following url :
https://api.4sim.in/getServers?apikey={your_api_key}
QUERY PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
Get Services
To get your services you need to make a GET call to the following url :
https://api.4sim.in/getServices?apikey={your_api_key}
QUERY PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
id | String | Server ID. (Optional) |
Buy Number
To buy a number you need to make a GET call to the following url :
https://api.4sim.in/buyNumber?apikey={your_api_key}&id={your_service_id}
REQUEST PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
id | String | Service ID. |
Check SMS
To check SMS you need to make a GET call to the following url :
https://api.4sim.in/checkSms?apikey={your_api_key}&id={your_transaction_id}
QUERY PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
id | String | Transaction ID. |
Cancel Number
To cancel a number you need to make a GET call to the following url :
https://api.4sim.in/cancelNumber?apikey={your_api_key}&id={your_transaction_id}
REQUEST PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
id | String | Transaction ID. |
Get Activations
To get activations you need to make a GET call to the following url :
https://api.4sim.in/getActivations?apikey={your_api_key}
QUERY PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
Get Transactions
To get transactions you need to make a GET call to the following url :
https://api.4sim.in/getTransactions?apikey={your_api_key}
QUERY PARAMETERS
Parameter | Type | Description |
---|---|---|
apikey | String | Your API key. |
page | Integer | Desired page number. |