API Documentation
Send URLs to Google indexing directly from your code, cron job, or CMS. Every account gets a private API key that spends only its own credits.
Base URL:
https://indexmylink.com/api/v1
Find your key in Account → Profile → API access. All requests use HTTPS and return JSON.
Authentication
Send your API key in the X-API-Key header (or an api_key query parameter). Keep it secret — anyone with it can spend your credits.
X-API-Key: iml_your_key_here
Submit URLs · POST /index
Dispatch up to 100 URLs for indexing. Costs 1 credit per URL.
Request
curl -X POST https://indexmylink.com/api/v1/index \
-H "X-API-Key: iml_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"urls": [
"https://site.com/page-a",
"https://site.com/page-b"
]
}'Response · 200
{ "success": true, "submitted": 2, "credits_remaining": 8 }Node example
const res = await fetch("https://indexmylink.com/api/v1/index", {
method: "POST",
headers: { "X-API-Key": KEY, "Content-Type": "application/json" },
body: JSON.stringify({ urls: ["https://site.com/a"] })
});
const data = await res.json();Check balance · GET /account
Returns your username, remaining credits, and account status.
curl https://indexmylink.com/api/v1/account -H "X-API-Key: iml_your_key_here"
{ "username": "you", "credits": 8, "status": "active" }Errors
Errors return a non-200 status with an error field.
| Status | Meaning |
|---|---|
401 | Invalid or missing API key |
402 | Not enough credits — nothing charged |
403 | Account indexing is paused |
400 | No valid URLs, or more than 100 |
502 | Indexing engine unavailable — nothing charged |
Limits & credits
- Max 100 URLs per request.
- 1 credit = 1 URL. Failed dispatches are not charged.
- Buy more credits any time in Billing.
- Regenerating your key immediately invalidates the old one.