Check Keyword Availability

Check Keyword API can be accessed via HTTPS thru the following URL:
https://api.protexting.com/checkkeyword.php

The following text parameters are available:

(can be passed via POST or GET)

•    All parameters are required!

Option 1 (using username and password)

user
your ProTexting username
password
your ProTexting password
keyword check if a keyword is available

Option 2 (using key parameter – recommended)

key
your ProTexting Security Key
keyword check if a keyword is available

Check Keyword API call return codes:

* Negative code represent failure to send message

1
The keyword is available
0
The keyword is not available
-2
Invalid user or password
-3
Incorrect keyword format: Keyword should contains only letters and digits. Total number of characters must be between 4 and 50
-8
Your IP address is not allowed
-100
Unknown error

API Check Keyword Availability Examples:

Option 1 – EXAMPLE  - (using username and password)

PHP

$ch=curl_init('https://api.protexting.com/checkkeyword.php');

curl_setopt($ch,CURLOPT_POST,1);

curl_setopt$ch,CURLOPT_POSTFIELDS,"user=username&password=password&keyword=mykeyword");

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

$data = curl_exec($ch);

echo $data;

/* result of API call*/

?> 

Option 2 – EXAMPLE  - (using key parameter – recommended)

PHP

$ch=curl_init('https://api.protexting.com/checkkeyword.php');

curl_setopt($ch,CURLOPT_POST,1);

curl_setopt$ch,CURLOPT_POSTFIELDS,"key=yourapikey&keyword=mykeyword");

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

$data = curl_exec($ch);

echo $data;

/* result of API call*/

?>