Primary URLs
| Purpose | URL |
|---|---|
| User API endpoint | https://agdindex.com/api |
| Documentation | https://agdindex.com/api_docs |
Authentication
API requests require a user API key. Telegram remains the primary workflow; API is intended for automation and scale.
GET/POST https://agdindex.com/api?key=YOUR_API_KEY&action=ACTION
Use POST for creating tasks, payments, and requests. Use GET for balance, tariffs, engines, lists, and status checks.
Response format
Successful responses return status=success and a data field. Errors return status=error and message. URL submission may return status=partial_error when only part of the request was completed.
{
"status": "success",
"data": {}
}
{
"status": "error",
"message": "Error description"
}
1. Account and tariffs
action=stats GET
Returns Telegram ID, affiliate balance, and active bot balances grouped by engine. Aliases: check_balance
{
"status": "success",
"data": {
"telegram_id": 12345678,
"affiliate_balance": 25.5,
"active_bots": [
{ "typeb": "google", "total": "850" },
{ "typeb": "bing", "total": "200" }
]
}
}
action=tariffs GET
Returns available tariffs grouped by engine. The price already includes the discount and is rounded to an integer value.
{
"status": "success",
"data": {
"google": [
{ "id": 1, "bots": 2000, "price": 10 },
{ "id": 2, "bots": 5000, "price": 24 }
],
"bing": [
{ "id": 6, "bots": 2000, "price": 10 }
]
}
}
action=engines GET
Returns the list of available indexing engines.
{
"status": "success",
"data": ["google", "bing", "openai"]
}
2. Links and tasks
action=add_links POST
| Parameter | Description |
|---|---|
engine | Search engine type: google, bing, or comma-separated values when balance allows it. |
links | URL list, one URL per line. |
curl -X POST "https://agdindex.com/api?key=YOUR_API_KEY&action=add_links" \ -d "engine=google" \ --data-urlencode "links=https://example.com/page-1"
action=check_status GET
Returns task progress, sent URL count, farm dispatch status, and completion state.
| Parameter | Description |
|---|---|
task_id | Task ID from add_links or list_tasks. |
https://agdindex.com/api?key=YOUR_API_KEY&action=check_status&task_id=456
action=list_tasks GET
Returns the user task list with pagination. Default limit is 10, maximum limit is 100.
https://agdindex.com/api?key=YOUR_API_KEY&action=list_tasks&page=1&limit=10
action=task_log GET
Returns the task execution log when the task has already been dispatched to the farm.
https://agdindex.com/api?key=YOUR_API_KEY&action=task_log&task_id=456
3. Payments
action=payment_methods GET
Returns available payment methods, networks, and wallets. Aliases: networks
action=create_payment POST
Creates an invoice for the selected tariff.
| Parameter | Description |
|---|---|
tariff_id | Tariff ID from action=tariffs. |
network / wallet_code | Payment network from payment_methods. wallet_code can be sent instead of network. |
action=check_payment GET
Checks invoice status. Use invoice_id for new integrations.
https://agdindex.com/api?key=YOUR_API_KEY&action=check_payment&invoice_id=inv_...
hash=inv_... is still accepted as a legacy alias.
4. Affiliate program
Affiliate methods are available to users with a valid API key.
action=affiliate_stats GET
action=withdraw_affiliate POST
Creates an affiliate withdrawal request. Minimum withdrawal amount is 10 USDT.
| Parameter | Description |
|---|---|
amount | Withdrawal amount in USDT. |
wallet | Wallet address for the withdrawal. |