Index Inject - API Documentation


RESPONSE JSON

CREDIT USAGE

GET REQUEST

https://indexinject.com/api?key={apikey}&credits=1


Name Type Description
key string User's unique API Key used for authentication. Each user has a unique API Key within their account dashboard
POST REQUEST

ADDING LINKS

POST REQUEST

https://indexinject.com/api


Name Type Description
key string User's unique API Key used for authentication. Each user has a unique API Key within their account dashboard
project string Enter what you would like to name the link project. If project parameter is missing or empty a random name will be generated.
drip num The amount of days the project should drip over from 0-30 days. If drip parameter is missing or empty it will default to 7 days.
urls num The urls being added to the project. These should be pipe separated.

EXAMPLE REQUEST


$apikey = 'API_KEY';
$project = 'PROJECT_NAME';
$drip = 'DRIP_DAYS';

$urls = array('https://indexinject.com','http://google.com/');

// build the POST query string and join the URLs array with | (single pipe)
$post = 'key='.$apikey.'&project='.$project.'&drip='.$drip.'&urls='.urlencode(implode('|',$urls));

$ch = curl_init();
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_URL,'https://indexinject.com/api');
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_TIMEOUT,40);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
$response = curl_exec($ch);
curl_close($ch);

echo $response;