API से SERM, विशेषज्ञ और कार्यप्रवाह
API से SERM, विशेषज्ञ और कार्यप्रवाह. HTTP अनुरोध, पैरामीटर, उत्तर के स्कीमा और Labrika में काम का क्रम।
इस पृष्ठ पर
API विधि संदर्भ — SERM
विषय-सूची से विधि चुनें। HTTP विधि, पथ, अनुमतियाँ, अनिवार्य पैरामीटर और अनुरोध बॉडी जाँचें। schema, properties और $ref वाले JSON ब्लॉक अनुबंध बताते हैं; उन्हें तैयार अनुरोध बॉडी की तरह न भेजें। अनुरोध उदाहरण और उत्तर स्कीमा अलग चिन्हित हैं।
इस अनुभाग की विधियाँ
POST /public-api/v1/serm/sites/{site_uuid}/cost
खोज की गहराई पूछें (20, 50, 100 या 200 परिणाम), फिर उस गहराई के लिए SERM की कीमत दिखाएँ।
संबंधित डेटा मॉडल: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · AnalysisEstimate · ErrorResponse
अनुमतियाँ: serm:run
पैरामीटर
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
अनुरोध
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"depth"
],
"properties": {
"depth": {
"type": "integer",
"enum": [
20,
50,
100,
200
]
}
}
}
}
}
}
प्रतिक्रियाएँ
200
खोज की गहराई पूछें (20, 50, 100 या 200 परिणाम), फिर उस गहराई के लिए SERM की कीमत दिखाएँ।
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/AnalysisEstimate"
}
}
}
}
}
}
400
कुंजी अनुपस्थित या अमान्य होने पर सीमा हेडर प्रति IP विफल प्रयासों को दर्शाते हैं। प्रमाणीकरण के बाद वे कुंजी या खाते की सीमा दर्शाते हैं। पहले से रोक या काउंटर अनुपलब्ध होने पर हेडर अनुपस्थित हो सकते हैं। X-RateLimit-Reset सेकंड में Unix समय है; 429 पर Retry-After सेकंड में प्रतीक्षा है।
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/serm/sites/{site_uuid}/run
अनुमान और उसकी Idempotency-Key का उपयोग करके स्वीकृत कीमत पर विश्लेषण चलाएँ।
संबंधित डेटा मॉडल: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
अनुमतियाँ: serm:run
पैरामीटर
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
Idempotency-Key (header)
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
}
अनुरोध
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"cost_estimate_id"
],
"properties": {
"cost_estimate_id": {
"type": "string"
}
}
}
}
}
}
प्रतिक्रियाएँ
202
अनुमान और उसकी Idempotency-Key का उपयोग करके स्वीकृत कीमत पर विश्लेषण चलाएँ।
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/serm/sites/{site_uuid}/report
नवीनतम प्रकाशित SERM रिपोर्ट लें या report_id से रिपोर्ट चुनें। उत्तर में तारीख, भाषा, स्थिति और आपके लिए उपलब्ध अनुभाग मिलते हैं।
संबंधित डेटा मॉडल: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
अनुमतियाँ: serm:read
पैरामीटर
site_uuid (path)
{
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"example": "d3c9e51b06a44e27831f205ceac20000"
}
}
report_id (query)
{
"schema": {
"type": "string",
"pattern": "^[0-9a-v]{20}$"
}
}
प्रतिक्रियाएँ
200
नवीनतम प्रकाशित SERM रिपोर्ट लें या report_id से रिपोर्ट चुनें। उत्तर में तारीख, भाषा, स्थिति और आपके लिए उपलब्ध अनुभाग मिलते हैं।
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"site_uuid",
"report_id",
"created_at",
"language",
"status",
"sections"
],
"properties": {
"site_uuid": {
"type": "string"
},
"report_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"language": {
"type": "string"
},
"status": {
"type": "string"
},
"sections": {
"type": "array",
"items": {
"type": "object",
"required": [
"section",
"report_id",
"status",
"calculated_at",
"data"
],
"properties": {
"section": {
"type": "string"
},
"report_id": {
"type": "string"
},
"status": {
"type": "string"
},
"calculated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"data": {
"type": "object",
"nullable": true,
"properties": {
"version": {
"type": "integer"
},
"total": {
"type": "integer"
},
"known": {
"type": "integer"
},
"unknown": {
"type": "integer"
},
"positive": {
"type": "integer"
},
"neutral": {
"type": "integer"
},
"negative": {
"type": "integer"
},
"average": {
"type": "number",
"nullable": true
},
"negative_share": {
"type": "number",
"nullable": true
},
"metrics": {
"type": "array",
"nullable": true,
"items": {
"type": "object"
}
},
"groups": {
"type": "array",
"nullable": true,
"items": {
"type": "object"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
400
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
404
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
422
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
API विधि संदर्भ — Specialists
विषय-सूची से विधि चुनें। HTTP विधि, पथ, अनुमतियाँ, अनिवार्य पैरामीटर और अनुरोध बॉडी जाँचें। schema, properties और $ref वाले JSON ब्लॉक अनुबंध बताते हैं; उन्हें तैयार अनुरोध बॉडी की तरह न भेजें। अनुरोध उदाहरण और उत्तर स्कीमा अलग चिन्हित हैं।
इस अनुभाग की विधियाँ
POST /public-api/v1/specialist-requests
विशेषज्ञ अनुभाग में पहले से सत्यापित संपर्क ईमेल का उपयोग करें और ग्राहक के वर्तमान नियम स्वीकार करें।
संबंधित डेटा मॉडल: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse
अनुमतियाँ: specialist-requests:write
पैरामीटर
Idempotency-Key (header)
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
}
}
अनुरोध
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"title",
"description",
"category",
"language",
"email",
"currency",
"budget_type",
"payment_methods",
"rules_version",
"accept_terms"
],
"oneOf": [
{
"properties": {
"budget_type": {
"enum": [
"fixed",
"approximate"
]
}
},
"required": [
"budget_minor"
]
},
{
"properties": {
"budget_type": {
"enum": [
"negotiable"
]
}
},
"not": {
"required": [
"budget_minor"
]
}
}
],
"properties": {
"title": {
"type": "string",
"minLength": 5,
"maxLength": 200
},
"description": {
"type": "string",
"minLength": 100,
"maxLength": 5000
},
"category": {
"type": "string",
"enum": [
"technical",
"seo",
"content",
"speed",
"analytics",
"reputation",
"directory_registration",
"crowd_links",
"text_optimization",
"contextual_ads",
"website_development",
"website_modernization",
"outreach"
],
"example": "seo"
},
"language": {
"type": "string",
"example": "en"
},
"email": {
"type": "string",
"format": "email"
},
"currency": {
"type": "string",
"example": "USD"
},
"budget_type": {
"type": "string",
"enum": [
"fixed",
"approximate",
"negotiable"
]
},
"budget_minor": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 10000000000
},
"payment_methods": {
"type": "array",
"items": {
"type": "string",
"enum": [
"bank_transfer",
"card_transfer",
"sbp",
"yoomoney",
"card_payment",
"paypal",
"swift",
"bank_transfer_individual",
"bank_transfer_business"
]
}
},
"rules_version": {
"type": "integer",
"example": 2
},
"accept_terms": {
"type": "boolean",
"enum": [
true
]
}
}
}
}
}
}
प्रतिक्रियाएँ
201
अनुरोध समीक्षा के लिए भेज दिया गया है।
{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"id",
"status"
],
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"pending_moderation"
]
}
}
}
}
}
}
}
}
400
कुंजी अनुपस्थित या अमान्य होने पर सीमा हेडर प्रति IP विफल प्रयासों को दर्शाते हैं। प्रमाणीकरण के बाद वे कुंजी या खाते की सीमा दर्शाते हैं। पहले से रोक या काउंटर अनुपलब्ध होने पर हेडर अनुपस्थित हो सकते हैं। X-RateLimit-Reset सेकंड में Unix समय है; 429 पर Retry-After सेकंड में प्रतीक्षा है।
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
401
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
403
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
429
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
कार्यप्रवाह
अपना लक्ष्य चुनें और अनुरोधों को क्रम में चलाएँ। हर कार्यप्रवाह के साथ ज़रूरी अनुमतियाँ दी गई हैं।
LABRIKA_API_KEY सेट करें। साइटों की सूची से SITE_UUID और ENGINE_ID लें और प्रोजेक्ट की सूची से PROJECT_ID लें। लागत अनुमान के cost_estimate_id और idempotency_key से COST_ESTIMATE_ID और IDEMPOTENCY_KEY सेट करें। शुरू करने के जवाब से RUN_ID लें। नतीजे के list.revision से LIST_REVISION सेट करें। सूची संपादित करने के बाद उसे लागू करने से पहले PATCH के जवाब में मिले revision से LIST_REVISION अपडेट करें।
समय सीमा पार होने पर उसी Idempotency-Key और बॉडी से फिर कोशिश करें। 401 पर कुंजी, 403 पर अनुमति और 409 पर टकराव का कारण देखें। 429 पर Retry-After मिले तो उसका पालन करें।
नवीनतम रैंकिंग
सही क्षेत्र और सर्च इंजन के लिए सहेजी गई रैंकिंग पढ़ें।
serp:read
कीवर्ड की पोज़िशन देखने के लिए सक्रिय Business या Agency सदस्यता चाहिए। साइटों की सूची और जाँच की तारीखें serp:read से देखी जा सकती हैं।
GET
/serp/sites?limit=10curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites?limit=10" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/dates?limit=5curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/dates?limit=5" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/positions?collected_at=last&limit=20curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/positions?collected_at=last&limit=20" \ -H "Authorization: Bearer $LABRIKA_API_KEY"
{
"data": [
{
"site_uuid": "d3c9e51b06a44e27831f205ceac20000",
"host": "example.com",
"search_engines": [
{
"id": 42,
"engine_title": "Google"
}
]
}
]
}
पूरा ऑडिट शुरू करें
अनुमान का आईडी रखें और साइट UUID से मौजूदा चरण देखें।
site-audits:runmain-reports:read
GET
/main-reports/sites?limit=10curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/main-reports/sites?limit=10" \ -H "Authorization: Bearer $LABRIKA_API_KEY"POST
/site-audits/sites/$SITE_UUID/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/site-audits/sites/$SITE_UUID/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"pages_limit":500,"payment_option":"auto"}'POST
/site-audits/sites/$SITE_UUID/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/site-audits/sites/$SITE_UUID/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}"} JSONGET
/site-audits/sites/$SITE_UUID/progresscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/site-audits/sites/$SITE_UUID/progress" \ -H "Authorization: Bearer $LABRIKA_API_KEY"
{
"data": {
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"page_credits": 500,
"amount_minor": 0
}
}
साइट के लिए कीवर्ड
नतीजे पढ़ें, काम की सूची बदलें और चुना हुआ संस्करण साइट की सेटिंग में जोड़ें।
domain-keywords:run
लागत अनुमान देखकर PAYMENT_OPTION सेट करें। credits_available का मान true हो तो ai_credits चुनें, या balance_available का मान true हो तो money_balance चुनें। दोनों false हों तो शुरू करने से पहले बैलेंस जोड़ें। दोबारा कोशिश करते समय वही भुगतान विकल्प रखें।
POST
/domain-keywords/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"domain":"example.com","keyword_count":80}'POST
/domain-keywords/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}","payment_option":"${PAYMENT_OPTION:?}"} JSONGET
/domain-keywords/runs/$RUN_ID/progresscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID/progress" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/domain-keywords/runs/$RUN_IDcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID" \ -H "Authorization: Bearer $LABRIKA_API_KEY"PATCH
/domain-keywords/runs/$RUN_ID/listcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID/list" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -X PATCH \ --data-binary @- <<JSON {"revision":${LIST_REVISION:?},"mode":"append","items":[{"text":"wholesale tea"}]} JSONPOST
/domain-keywords/runs/$RUN_ID/applycurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID/apply" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<JSON {"site_uuid":"${SITE_UUID:?}","revision":${LIST_REVISION:?}} JSON
{
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"ai_credits": 40,
"amount_minor": 20,
"currency": "USD",
"credits_available": true,
"balance_available": true,
"keyword_count": 80
}
AI दृश्यता के लिए प्रॉम्प्ट
बताएँ कि कंपनी क्या देती है और क्या नहीं। 30 से 2000 तक, 10 के कदमों में चुनें।
prompt-suggestions:run
लागत अनुमान देखकर PAYMENT_OPTION सेट करें। credits_available का मान true हो तो ai_credits चुनें, या balance_available का मान true हो तो money_balance चुनें। दोनों false हों तो शुरू करने से पहले बैलेंस जोड़ें। दोबारा कोशिश करते समय वही भुगतान विकल्प रखें।
POST
/prompt-suggestions/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"domain":"example.com","company_description":"We supply wholesale loose-leaf tea and tasting packs to cafés and independent retailers. We help customers plan their range and deliver regularly under contract.","exclusions":["Coffee","Coffee equipment","Retail purchases"],"prompt_count":30}'POST
/prompt-suggestions/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}","payment_option":"${PAYMENT_OPTION:?}"} JSONGET
/prompt-suggestions/runs/$RUN_ID/progresscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID/progress" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/prompt-suggestions/runs/$RUN_IDcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID" \ -H "Authorization: Bearer $LABRIKA_API_KEY"PATCH
/prompt-suggestions/runs/$RUN_ID/listcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID/list" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -X PATCH \ --data-binary @- <<JSON {"revision":${LIST_REVISION:?},"mode":"append","items":[{"text":"Where can cafés buy wholesale tea?"}]} JSONPOST
/prompt-suggestions/runs/$RUN_ID/applycurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID/apply" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<JSON {"site_uuid":"${SITE_UUID:?}","revision":${LIST_REVISION:?}} JSON
{
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"ai_credits": 21,
"amount_minor": 11,
"currency": "USD",
"credits_available": true,
"balance_available": true
}
एआई में दृश्यता
डोमेन के प्रोजेक्ट खोजें और तय करें कि मौजूदा प्रोजेक्ट इस्तेमाल करना है या नया बनाना है। स्वीकृत कीमत पर रिपोर्ट शुरू करें। अनुमान से मिला Idempotency-Key इस्तेमाल करें। पुष्टि करने पर नई सेटिंग पुरानी सेटिंग की जगह लेती है।
sites:createai-visibility:run
सहेजी गई या नई सेटिंग से कीमत निकालें। एआई क्रेडिट और खाते की मुद्रा में कीमत देखने के लिए payment_option छोड़ दें। रिपोर्ट पुष्टि के बाद शुरू होती है।
GET
/sites/by-domain?domain=example.comcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/sites/by-domain?domain=example.com" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/ai-visibility/sites/$SITE_UUID/modelscurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/ai-visibility/sites/$SITE_UUID/models" \ -H "Authorization: Bearer $LABRIKA_API_KEY"POST
/ai-visibility/sites/$SITE_UUID/costcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/ai-visibility/sites/$SITE_UUID/cost" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ --data '{"settings":{"domain":"example.com","brand":"Acme","aliases":["Acme Studio"],"prompts":["Where can cafés order tea wholesale?"],"models":["chatgpt"],"competitors":[{"domain":"competitor.example","brand":"Rival Tea"}]}}'POST
/ai-visibility/sites/$SITE_UUID/runcurl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/ai-visibility/sites/$SITE_UUID/run" \ -H "Authorization: Bearer $LABRIKA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ --data-binary @- <<JSON {"cost_estimate_id":"${COST_ESTIMATE_ID:?}"} JSON
{
"data": {
"cost_estimate_id": "ESTIMATE_FROM_COST",
"idempotency_key": "KEY_FROM_COST",
"ai_credits": 1,
"money_equivalent_minor": 1,
"can_start": true
}
}
साइट में बदलाव
मॉनिटरिंग प्रोजेक्ट ढूँढें और उसकी हाल की सूचनाएँ पढ़ें।
diff-projects:readdiff-alerts:read
GET
/diff-projects?limit=10curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/diff-projects?limit=10" \ -H "Authorization: Bearer $LABRIKA_API_KEY"GET
/diff-projects/$PROJECT_ID/alerts?limit=20curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/diff-projects/$PROJECT_ID/alerts?limit=20" \ -H "Authorization: Bearer $LABRIKA_API_KEY"
HTTP 202 का अर्थ अनुरोध स्वीकार होना है, काम पूरा होना नहीं। लौटाया पहचानकर्ता सहेजें और निर्दिष्ट GET विधि से स्थिति जाँचें। स्थिति पढ़ते समय HTTP 200 भी कार्य की सफलता नहीं दर्शाता: status और त्रुटि फ़ील्ड देखें। retry_after_seconds मिले तो उस अंतराल का पालन करें।
साझा API/MCP उपयोग बजट, धन शेष, सदस्यता सीमाएँ और AI क्रेडिट अलग संसाधन हैं। धन न काटने वाला अनुमान भी तकनीकी बजट खर्च कर सकता है। भुगतान वाले कार्य से पहले वर्तमान अनुमान, भुगतान विकल्प और उत्तर की मुद्रा जाँचें।
इस अनुभाग के अन्य लेख
- Labrika API: त्वरित शुरुआत, प्रमाणीकरण और त्रुटियाँ
- Labrika API: डेटा मॉडल और मेटाडेटा
- API से SEO ऑडिट, रिपोर्ट और निर्यात
- API से कीवर्ड और रैंकिंग
- API से AI में दृश्यता और प्रॉम्प्ट सुझाव
- API से AI लेखक और उत्पाद विवरण
- API से Diff बदलावों की निगरानी
- API अलर्ट, वेबहुक और शेड्यूल
- API कार्य योजनाएँ, कार्य और प्रोजेक्ट समूह
