İçeriğe geç
Index Grab logosu IndexGrab
REST API V1 AKTİF
GELİŞTİRİCİ PLATFORMU

URL indekslemeyi kendi iş akışınıza bağlayın.

Yetkili URL’leri göndermek, bakiyenizi okumak, işlemleri listelemek, URL durumlarını incelemek ve hesap istatistiklerini almak için güvenli REST API’yi kullanın.

API GENEL BAKIŞ

Index Grab API neler yapabilir?

Index Grab API, kullanıcı paneliyle aynı bakiye, fiyatlandırma, kuyruk ve işlem kayıtlarını kullanan JSON tabanlı bir REST arayüzüdür. API gönderimleri normal arka plan akışına girer ve bağlantıyı açık tutmadan sorgulayabileceğiniz bir referans döndürür.

Kimlik doğrulama Bearer token veya X-API-Key başlığını destekler. API anahtarları giriş yapılan panelde oluşturulur, yalnızca bir kez gösterilir, güvenli özet olarak saklanır ve siz iptal edene veya yenileyene kadar geçerli kalır.

Base URL
https://indexgrab.com/api/v1
Biçim
HTTPS + JSON
Kimlik doğrulama
Bearer / X-API-Key
Maksimum işlem boyutu
5.000 URL
Gönderim istekleri
10 / min
Hesap para birimi
TRY
YAPAY ZEKA İÇİN HAZIR REFERANS

Entegrasyon sözleşmesini doğrudan yapay zekaya verin.

Bu kısa teknik özeti ChatGPT, Claude, Gemini veya başka bir kodlama asistanına verin. Yapay zekanın sayfadaki kuralları tahmin etmesine gerek kalmadan gerçek API sözleşmesini açıklar.

# Index Grab REST API v1 - AI integration brief

Use this specification to generate a server-side Index Grab integration. Do not expose the API key in browser code, mobile bundles, repositories, client logs, or responses sent to end users.

Base URL: https://indexgrab.com/api/v1
Protocol: HTTPS REST API with JSON request and response bodies
Authentication: Authorization: Bearer YOUR_API_KEY
Alternative authentication: X-API-Key: YOUR_API_KEY
Currency: TRY

Create a submission:
- Method and path: POST /submissions
- Required headers: Authorization, Content-Type: application/json, and Idempotency-Key
- Idempotency-Key must contain 8-100 safe characters.
- Request body: {"project":"My Website","urls":["https://example.com/page"],"service":"standard"}
- A single URL may be sent with "url"; multiple URLs use the "urls" array.
- Send 1-5000 unique HTTP(S) URLs per submission.
- Use service "standard". Do not select "fast" unless the account explicitly confirms that service is enabled.
- The account's current per-URL price is applied and the required balance is charged when the submission is accepted.

Submission workflow:
- HTTP 202 means accepted and queued, not indexed by a search engine.
- Save data.reference from the response.
- Query GET /submissions/{reference} to read the job and per-URL states.
- Possible job states: queued, processing, completed, partial, failed.
- Poll with a reasonable delay, such as 10-30 seconds, and stop when a terminal state is reached.
- Index Grab processing states do not guarantee search-engine indexing.

Safe retry rule:
- If a POST result is uncertain because of a timeout or connection loss, retry the exact same body with the exact same Idempotency-Key.
- The same key and same body return the original submission without a second charge.
- The same key with different content returns HTTP 409.

Read endpoints:
- GET /me: account, wallet, and API-key metadata
- GET /balance: current balance and TRY currency
- GET /submissions: paginated history; supports status, reference, url, q, from, to, page, and limit
- GET /submissions/{reference}: submission details and paginated URL states
- GET /stats: balance and submission statistics

Response envelope:
- Success: {"success":true,"status":"success","message":"...","data":{},"request_id":"..."}
- Error: {"success":false,"status":"error","message":"...","data":null,"error":{"code":"...","message":"..."},"request_id":"..."}
- Read HTTP status codes as well as the JSON envelope.

Current limits per API key:
- General requests: 120/minute, 3000/hour, 30000/day
- Submission requests: 10/minute
- List page limit: 100; submission-detail URL page limit: 500
- On HTTP 429, respect Retry-After and rate-limit response headers.

Important errors:
- 400 invalid JSON, request, or Idempotency-Key
- 401 missing, invalid, or revoked API key
- 402 insufficient balance
- 409 idempotency or duplicate conflict
- 413 payload too large
- 415 Content-Type is not application/json
- 422 validation error
- 429 rate limit exceeded
- 503 API or submission service temporarily unavailable

Machine-readable contract: https://indexgrab.com/api/v1/openapi.json
API V1 REFERANSI

Gönderim ve raporlama endpointleri

Kimlik doğrulamalı tüm endpointler tutarlı JSON zarfı ve rate-limit başlıkları döndürür.

PostmanOpenAPI
MetotEndpointAmaçKimlik doğrulama
GET/Sağlık ve erişilebilirlikPublic
GET/meHesap, bakiye ve anahtar bilgisiGerekli
GET/balanceMevcut hesap bakiyesiGerekli
POST/submissionsKuyrukta URL işlemi oluşturGerekli
GET/submissionsİşlem geçmişini filtrele ve sayfalaGerekli
GET/submissions/{reference}İşlem ayrıntısı ve URL durumlarıGerekli
GET/statsBakiye ve işlem istatistikleriGerekli
HIZLI BAŞLANGIÇ

Sunucunuzdan bir gönderim oluşturun

API anahtarını sunucu tarafı ortam değişkeninde saklayın. Public tarayıcı JavaScript’ine, mobil uygulama paketlerine, depolara, analitik araçlara veya kullanıcının görebileceği loglara asla eklemeyin.

  1. Hesap panelinizden anahtar oluşturun.
  2. Benzersiz Idempotency-Key ile JSON gönderin.
  3. Dönen IG referansını kaydedin.
  4. Güncel durumlar için detay endpointini sorgulayın.
curl -X POST "https://indexgrab.com/api/v1/submissions" \
  -H "Authorization: Bearer $INDEXGRAB_API_KEY" \
  -H "Idempotency-Key: job-20260801-001" \
  -H "Content-Type: application/json" \
  -d '{"project":"My Website","url":"https://example.com/page"}'
GÜVENİLİR ENTEGRASYON

Tekrarlar ve limitler nasıl yönetilmeli?

Her URL tamamlanana kadar isteği açık tutmak yerine kuyruklu işlem yapısına göre entegrasyon kurun.

01

Idempotency-Key

Sonucu belirsiz POST isteğini tekrarlarken aynı anahtarı kullanın. İkinci kez ücret düşmeden ilk sonuç döner; aynı anahtar farklı içerikle kullanılırsa HTTP 409 alınır.

02

Rate-limit başlıkları

Her kimlik doğrulamalı yanıtta kalan dakika, saat ve gün bütçelerini okuyun. Güncel anahtar limitleri dakika 120, saat 3000 ve gün 30000 istektir.

03

Kuyruklu sonuçlar

HTTP 202 işlemin kabul edilip kuyruğa alındığını belirtir. Referansı kaydedip detay endpointini sorgulayın; bu yanıt arama motorunun her URL’yi indekslediği anlamına gelmez.

400Geçersiz JSON, istek gövdesi veya idempotency anahtarı
401Eksik, geçersiz veya iptal edilmiş API anahtarı
402Yetersiz hesap bakiyesi
409Idempotency veya mükerrer gönderim çakışması
413 / 415Çok büyük gövde veya desteklenmeyen içerik türü
422URL, proje, hizmet veya filtre doğrulaması başarısız
429İstek veya gönderim rate limit’i aşıldı
503API veya yeni gönderimler geçici olarak kullanılamıyor
INDEX GRAB API

İlk sunucu tarafı iş akışınızı bağlayın.

Anahtarınızı oluşturun, entegrasyon şemasını indirin ve yetkili tek bir URL ile test edin.

Hesap oluştur