Indexing API दस्तावेज़ीकरण

हमारे व्यापक API का उपयोग करके शक्तिशाली indexing टूल और एप्लिकेशन बनाएं। डेवलपर्स, एजेंसियों और उद्यमियों के लिए परफेक्ट।

अपना खुद का Indexing टूल बनाएं और पैसे कमाएं!

हमारे शक्तिशाली API का उपयोग करके अपने क्लाइंट्स के लिए कस्टम indexing एप्लिकेशन बनाएं। एजेंसियों, डेवलपर्स और उद्यमियों के लिए परफेक्ट। टूल बनाने में मदद चाहिए? मैं कस्टम डेवलपमेंट प्रोजेक्ट्स के लिए उपलब्ध हूं।

API Endpoint

सरल REST API जो किसी भी प्रोग्रामिंग भाषा या प्लेटफॉर्म के साथ काम करता है

POST /indexing-batch/with/api/key

प्रमाणीकरण

अनुरोध headers में अपनी API key शामिल करें:

X-API-Key: your-api-key-here

मूल्य निर्धारण

प्रति URL 20 credits

सफल सबमिशन पर Credits काटे जाते हैं

अनुरोध पैरामीटर

पैरामीटरप्रकारआवश्यकविवरण
namestringहाँपहचान के लिए Batch नाम
urlsarrayहाँIndex करने के लिए URLs की array
dripfeednumberनहींसबमिशन फैलाने के दिन (डिफ़ॉल्ट: 1)

कोड उदाहरण

लोकप्रिय प्रोग्रामिंग भाषाओं में उपयोग के लिए तैयार उदाहरण

PHP
<?php
$api_key = "your-api-key-here";
$url = "https://your-domain.com/indexing-batch/with/api/key";

$data = array(
    'name' => 'My PHP Batch',
    'urls' => array(
        'https://example1.com',
        'https://example2.com',
        'https://example3.com'
    ),
    'dripfeed' => 1
);

$options = array(
    'http' => array(
        'header' => array(
            "Content-Type: application/json",
            "X-API-Key: " . $api_key
        ),
        'method' => 'POST',
        'content' => json_encode($data)
    )
);

$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$result = json_decode($response, true);

if ($result['success']) {
    echo "Batch created: " . $result['data']['batchId'];
    echo "Remaining credits: " . $result['data']['remainingCredits'];
} else {
    echo "Error: " . $result['message'];
}
?>
Node.js / JavaScript
const axios = require('axios');

const createIndexingBatch = async () => {
    try {
        const response = await axios.post('https://your-domain.com/indexing-batch/with/api/key', {
            name: 'My Node.js Batch',
            urls: [
                'https://example1.com',
                'https://example2.com',
                'https://example3.com'
            ],
            dripfeed: 1
        }, {
            headers: {
                'Content-Type': 'application/json',
                'X-API-Key': 'your-api-key-here'
            }
        });

        if (response.data.success) {
            console.log('Batch created:', response.data.data.batchId);
            console.log('Remaining credits:', response.data.data.remainingCredits);
        }
    } catch (error) {
        console.error('Error:', error.response?.data?.message || error.message);
    }
};

createIndexingBatch();
Python
import requests
import json

def create_indexing_batch():
    url = "https://your-domain.com/indexing-batch/with/api/key"
    headers = {
        "Content-Type": "application/json",
        "X-API-Key": "your-api-key-here"
    }
    
    data = {
        "name": "My Python Batch",
        "urls": [
            "https://example1.com",
            "https://example2.com",
            "https://example3.com"
        ],
        "dripfeed": 1
    }
    
    try:
        response = requests.post(url, headers=headers, json=data)
        result = response.json()
        
        if result["success"]:
            print(f"Batch created: {result['data']['batchId']}")
            print(f"Remaining credits: {result['data']['remainingCredits']}")
        else:
            print(f"Error: {result['message']}")
            
    except requests.exceptions.RequestException as e:
        print(f"Request failed: {e}")

create_indexing_batch()
cURL
curl -X POST https://your-domain.com/indexing-batch/with/api/key \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key-here" \
  -d '{
    "name": "My cURL Batch",
    "urls": [
      "https://example1.com",
      "https://example2.com",
      "https://example3.com"
    ],
    "dripfeed": 1
  }'

Response Format

API response संरचना को समझें

सफलता Response

{
  "success": true,
  "data": {
    "batchId": "68c7dad9265f988545ebc774",
    "batchName": "My Batch",
    "urlsSubmitted": 3,
    "submissionStatus": "Submitted",
    "remainingCredits": 824,
    "createdAt": "2025-09-15T09:22:33.229Z"
  },
  "message": "URLs submitted for indexing"
}

त्रुटि Response

{
  "success": false,
  "message": "Insufficient credits. You have 10, but need 60."
}

Error Codes

API error handling के लिए संपूर्ण संदर्भ

Status Codeसंदेशविवरण
401API key आवश्यक हैगुम या अमान्य API key
401अमान्य API keyAPI key नहीं मिली या उपयोगकर्ता निष्क्रिय है
400अपर्याप्त creditsऑपरेशन के लिए पर्याप्त credits नहीं
500सर्वर त्रुटिआंतरिक सर्वर त्रुटि

अपना Indexing टूल बनाने के लिए तैयार हैं?

हमारे शक्तिशाली API के साथ आज ही निर्माण शुरू करें, या हमारी टीम को आपकी व्यावसायिक जरूरतों के लिए कस्टम समाधान विकसित करने दें।

👋 Need help?