Search numbers to buy
https://api.norreach.app/v1/phone-numbers/availableNumbers on sale now in a country (ISO alpha-2) of a type (local, mobile, tollfree), optionally containing some digits, in an area code, a city or (US / Canada) a state, and able to do sms, voice or mms. Up to 20 at a time, with the monthly price in minor units when the listing says. Some countries need a business verification first (GET /number-verifications/requirements). Buying is POST /phone-numbers.
curl -X GET "https://api.norreach.app/v1/phone-numbers/available" \
-H "Authorization: Bearer $NORREACH_API_KEY"{
"object": "list",
"data": [
{
"object": "available_number",
"number": "+46812345679",
"country": "SE",
"type": "local",
"locality": "Stockholm",
"region": null,
"capabilities": {
"voice": true,
"sms": true,
"mms": false
},
"monthly_price": {
"amount_minor": 300,
"currency": "USD"
},
"upfront_price": null
}
],
"has_more": false,
"next_cursor": null
}Authorizations
Bearer authentication: send Authorization: Bearer <key>, with an API key or an OAuth access token. The key needs the scope numbers:read. API keys and scopes
Query parameters
ISO 3166-1 alpha-2, e.g. SE.
localmobiletollfreeDigits the number should contain.
A city.
A state or province (US and Canada only).
truefalsetruefalsetruefalseResponse
200application/json— Search numbers to buy
Show child attributesHide child attributes
E.164 — pass it to POST /phone-numbers.
localmobiletollfreeShow child attributesHide child attributes
What the number costs per month, when the listing says (rounded up to the currency's minor unit).
A one-time cost at purchase, when there is one.
Errors
Errors are application/problem+json with a stable code.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request couldn't be read. |
| 400 | unknown_field | The request has a field this operation doesn't know. |
| 401 | unauthorized | A valid API key is required. |
| 403 | insufficient_scope | This API key doesn't have the scope this operation needs. |
| 403 | feature_not_enabled | The API isn't switched on for this workspace. |
| 422 | validation_failed | The request has invalid fields. |
| 429 | rate_limited | Too many requests. Slow down and try again. |
| 500 | server_error | Something went wrong on our side. |
| 503 | unavailable | The API isn't available right now. Try again shortly. |