Link Indexing Bot API
Use these API endpoints to send your URLs for indexation.
First, you will need to create an API key. To do that start a conversation with our telegram bot https://t.me/Link_Indexing_Com_bot and use a command /apikey. Don't forget to top-up your balance.
Creating a task (Sending for indexation)
Make a POST request:
https://link-indexing-bot.com/api/tasks/new
Request Body
Parameter | Required? | Description |
---|---|---|
api_key | yes | Your API key |
user_id | yes | Your telegram ID, use command /help to get it |
links | yes | URLs for indexation, each on the new line (separated by \n). Max url length - 2000 symbols. |
searchengine | yes | Search Engine: google |
se_type | yes | Indexation method: normal or hard |
Example request:
Request body:
'user_id' => '666666666', 'api_key' => 'mykey', 'links' => 'https://google.com https://bing.com', 'searchengine' => 'google', 'se_type' => 'hard'
Server response:
{ "status": 201, "msg": "Task created successfully", "data": { "limits_used": 4, "task_id": "32451", "links_count": 2 } }
Getting task's information
You can check the task's status by sending GET request:
https://link-indexing-bot.com/api/tasks/{id}
Instead of {id} insert your task id which you get from the "/tasks/new" endpoint
Request body
Parameter | Required? | Description |
---|---|---|
api_key | yes | Your API key |
user_id | yes | Your telegram ID, use command /help to get it |
Balance report
Get user information and current balance by sending GET request:
https://link-indexing-bot.com/api/users/{id}
Your telegram ID, use command /help to get it
Request body
Parameter | Required? | Description |
---|---|---|
api_key | yes | Your API key |
Ошибки
If you have and error in the request body, these are possible error responses from the server:
Error code | Description |
---|---|
400 | Task creation failed. Wrong post parameters provided. |
403 |
Wrong or missing API key .
|
404 | Task or user not found with provided ID. |
503 | Possible tecnical issue on our end. Please contact the support. |
Error example
URL:
https://link-indexing-bot.com/api/tasks/new
Request body:
'user_id' => '666666666', 'api_key' => 'mykey', 'links' => 'https://google.com https://bing.com', 'se_type' => 'hard'
Server response:
{ "status":400, "msg":"Task wasn't created: Invalid data provided", "data":[] }
Error was thrown because the required parameter searchengine is missing from the request body.