/api/v1/sms/numbers
Danh sách số điện thoại
Trả về các số điện thoại sẵn sàng nhận mã OTP/SMS xác thực. Bạn có thể lọc theo mã quốc gia ISO (US, GB, VN...).
Tham số yêu cầu (Parameters)
| Tham số | Vị trí | Kiểu dữ liệu | Bắt buộc | Mô tả chi tiết | Ví dụ |
|---|---|---|---|---|---|
| country | query | string | Tuỳ chọn | Mã quốc gia 2 ký tự ISO (ví dụ: US, GB, VN, SE). (Default: all) | US |
| page | query | integer | Tuỳ chọn | Số trang cần lấy. (Default: 1) | 1 |
| limit | query | integer | Tuỳ chọn | Số lượng kết quả mỗi trang (tối đa 100). (Default: 20) | 20 |
curl -X GET 'https://axioapi.com/api/v1/sms/numbers' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'
const response = await fetch('https://axioapi.com/api/v1/sms/numbers', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'application/json'
}
});
const data = await response.json();
console.log(data);
import requests
url = 'https://axioapi.com/api/v1/sms/numbers'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
use Illuminate\Support\Facades\Http;
$response = Http::withToken('YOUR_API_KEY')
->acceptJson()
->get('https://axioapi.com/api/v1/sms/numbers');
$data = $response->json();
print_r($data);
{
"status": "success",
"data": {
"items": [
{
"id": null,
"countries": "United States",
"country_code": "US",
"number": "+12025550192",
"expiry_date": null,
"extension_date": null
},
{
"id": null,
"countries": "United States",
"country_code": "US",
"number": "+12025550193",
"expiry_date": null,
"extension_date": null
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 142,
"has_more": true
}
},
"request": {
"id": "7f1c2c1e-9a3b-4c55-8d0e-2b6f4c9a1d10",
"method": "GET",
"path": "/api/v1/sms/numbers",
"input": []
}
}