Search Available Local Numbers
Search TxTRIA local numbers
POST
https://txtria.net/api/searchnumber
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
state | Number state | No | CA |
ratecenter | Rate-center in the given state | No | AGOURA |
npa | Area Code | No | 734 |
search | Search LC containing number | No | 5753 |
$url = 'https://txtria.net/api/searchnumber';
$data = array(
'state' => 'BC',
'ratecenter' => 'VICTORIA',
'npa' => '734',
'search' => '642465',
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Example Response
{
"success": "1",
"data": [
{
"number": "8332022818",
"state": "BC",
"npa": "734"
},
{
"number": "8332022819",
"state": "BC",
"npa": "734"
}
]
}