💳
Get Price
Retrieves a number price.

Request object

username (required) string password (required) string country (required) string service (required) string
JSON Object
1
{
2
"auth": {
3
"username": "demo",
4
"password": "demo"
5
},
6
"country": "Russia",
7
"service": "ProtonMail"
8
}
Copied!

📃 Code example

PHP Example
1
$data = array(
2
"auth" => array(
3
"username" => "demo",
4
"password" => "demo"
5
),
6
"country" => "Russia",
7
"service" => "ProtonMail"
8
);
9
10
$payload = json_encode($data);
11
12
$curl = curl_init();
13
curl_setopt_array($curl, [
14
CURLOPT_URL => 'https://smsverification.xyz/api/v2/disposable/price',
15
CURLOPT_CUSTOMREQUEST => 'GET',
16
CURLOPT_POSTFIELDS => $payload,
17
CURLOPT_RETURNTRANSFER => true,
18
CURLOPT_HTTPHEADER => array(
19
'Content-Type: application/json',
20
'Content-Length: ' . strlen($payload)
21
)
22
]);
23
$response = curl_exec($curl);
24
curl_close($curl);
25
26
echo $response; // json
Copied!

Successful Response

  • service => string
  • country => string
  • price => float
JSON Object
1
{
2
"status": "success",
3
"data": {
4
"country": "Russia",
5
"service": "ProtonMail",
6
"phone": {
7
"price": 0.018331200000000002
8
}
9
}
10
}
Copied!
Last modified 8mo ago