हमारे व्यापक API का उपयोग करके शक्तिशाली indexing टूल और एप्लिकेशन बनाएं। डेवलपर्स, एजेंसियों और उद्यमियों के लिए परफेक्ट।
हमारे शक्तिशाली API का उपयोग करके अपने क्लाइंट्स के लिए कस्टम indexing एप्लिकेशन बनाएं। एजेंसियों, डेवलपर्स और उद्यमियों के लिए परफेक्ट। टूल बनाने में मदद चाहिए? मैं कस्टम डेवलपमेंट प्रोजेक्ट्स के लिए उपलब्ध हूं।
सरल REST API जो किसी भी प्रोग्रामिंग भाषा या प्लेटफॉर्म के साथ काम करता है
POST /indexing-batch/with/api/keyअनुरोध headers में अपनी API key शामिल करें:
X-API-Key: your-api-key-hereप्रति URL 20 credits
सफल सबमिशन पर Credits काटे जाते हैं
| पैरामीटर | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
| name | string | हाँ | पहचान के लिए Batch नाम |
| urls | array | हाँ | Index करने के लिए URLs की array |
| dripfeed | number | नहीं | सबमिशन फैलाने के दिन (डिफ़ॉल्ट: 1) |
लोकप्रिय प्रोग्रामिंग भाषाओं में उपयोग के लिए तैयार उदाहरण
<?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'];
}
?>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();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 -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
}'API 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"
}{
"success": false,
"message": "Insufficient credits. You have 10, but need 60."
}API error handling के लिए संपूर्ण संदर्भ
| Status Code | संदेश | विवरण |
|---|---|---|
| 401 | API key आवश्यक है | गुम या अमान्य API key |
| 401 | अमान्य API key | API key नहीं मिली या उपयोगकर्ता निष्क्रिय है |
| 400 | अपर्याप्त credits | ऑपरेशन के लिए पर्याप्त credits नहीं |
| 500 | सर्वर त्रुटि | आंतरिक सर्वर त्रुटि |
हमारे शक्तिशाली API के साथ आज ही निर्माण शुरू करें, या हमारी टीम को आपकी व्यावसायिक जरूरतों के लिए कस्टम समाधान विकसित करने दें।