Overview
Telecom Lookup Tools
Powered By GitBook
Search Vanity Tollfree
This function will allow you to search for vanity toll free numbers

Post/ Get Information

URL:
Argument
Required
Type
Example Value
search
yes
string
8**2**VOIP
Simply send us a GET/POST to the above URL to get an API response with the list of all available toll free numbers, just pass the search=844*voip as an example. Response codes are in the menu to the left.
shell
PHP+CURL
PHP+PLAIN
RESPONSE
Shell/CURL
1
curl -v -X GET "https://apiv1.teleapi.net/dids/tollfree/vanity?token=XXXX&search=8**833****"
Copied!
Using PHP+CURL
1
<?php
2
โ€‹
3
$vanity = urlencode("8**3**VOIP");
4
โ€‹
5
$baseurl = "https://apiv1.teleapi.net/dids/tollfree/vanity?token=XXXX&search=".$vanity;
6
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
7
$retval = curl_exec($ch);
8
curl_close($ch);
9
โ€‹
10
$object = json_decode($retval);
11
print_r($object);
Copied!
PHP - file_get_contents
1
<?php
2
$vanity = urlencode("8**3**VOIP");
3
โ€‹
4
$url = "https://apiv1.teleapi.net/dids/tollfree/vanity?token=XXXX&search=".$vanity;
5
$x = file_get_contents($url);
6
$object = json_decode($x);
7
print_r($object);
Copied!

Results Were Found

1
{
2
"code":200,
3
"status":"success",
4
"data":
5
[{"id":"624",
6
"user_id":null,
7
"number":"8445553388",
8
"npa":"844",
9
"nxx":"555",
10
"xxxx":"3388",
11
"number_status":"list",
12
"create_dt":null,
13
"modify_dt":null
14
},
15
{"id":"624",
16
"user_id":null,
17
"number":"8445553388",
18
"npa":"844",
19
"nxx":"555",
20
"xxxx":"3388",
21
"number_status":"list",
22
"create_dt":null,
23
"modify_dt":null
24
}
25
]}
Copied!

No Results Found

1
{
2
"code":200,
3
"status":"success",
4
"data":[]
5
}
Copied!
Last modified 1yr ago
Copy link