Ana Sayfa / API ile SERM, uzmanlar ve iş akışları

API ile SERM, uzmanlar ve iş akışları

API ile SERM, uzmanlar ve iş akışları. HTTP istekleri, parametreler, yanıt şemaları ve Labrika iş akışları.

Bu sayfada

API yöntemleri başvuru kılavuzu — SERM

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

Bu bölümdeki yöntemler

POST /public-api/v1/serm/sites/{site_uuid}/cost

Arama derinliğini sorun (20, 50, 100 veya 200 sonuç), ardından ilgili SERM fiyatını gösterin.

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · AnalysisEstimate · ErrorResponse

İzinler: serm:run

Parametreler

site_uuid (path)
{
  "required": true,
  "schema": {
    "type": "string",
    "pattern": "^[0-9a-f]{32}$",
    "example": "d3c9e51b06a44e27831f205ceac20000"
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "depth"
        ],
        "properties": {
          "depth": {
            "type": "integer",
            "enum": [
              20,
              50,
              100,
              200
            ]
          }
        }
      }
    }
  }
}

Yanıtlar

200

Arama derinliğini sorun (20, 50, 100 veya 200 sonuç), ardından ilgili SERM fiyatını gösterin.

{
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AnalysisEstimate"
          }
        }
      }
    }
  }
}
400

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "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

Analizi onaylanan fiyatla başlatmak için tahmini ve ilgili Idempotency-Key değerini kullanın.

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse

İzinler: serm:run

Parametreler

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
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "cost_estimate_id"
        ],
        "properties": {
          "cost_estimate_id": {
            "type": "string"
          }
        }
      }
    }
  }
}

Yanıtlar

202

Analizi onaylanan fiyatla başlatmak için tahmini ve ilgili Idempotency-Key değerini kullanın.

{
  "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

Yayımlanmış en son SERM raporunu alın veya report_id ile bir rapor seçin. Yanıtta tarih, dil, durum ve erişebildiğiniz bölümler yer alır.

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse

İzinler: serm:read

Parametreler

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}$"
  }
}

Yanıtlar

200

Yayımlanmış en son SERM raporunu alın veya report_id ile bir rapor seçin. Yanıtta tarih, dil, durum ve erişebildiğiniz bölümler yer alır.

{
  "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"
      }
    }
  }
}

İçeriğe dön

API yöntemleri başvuru kılavuzu — Specialists

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

Bu bölümdeki yöntemler

POST /public-api/v1/specialist-requests

Uzman bulma talebini incelemeye gönderin. Uzmanlar bölümünde doğrulanmış iletişim adresini kullanın ve geçerli müşteri kurallarını kabul edin.

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse

İzinler: specialist-requests:write

Parametreler

Idempotency-Key (header)
{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 128,
    "pattern": "^[A-Za-z0-9._:-]+$"
  }
}

İstek

{
  "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
            ]
          }
        }
      }
    }
  }
}

Yanıtlar

201

Talep incelemeye gönderildi.

{
  "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

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "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"
      }
    }
  }
}

İçeriğe dön

İş akışları

İhtiyacınız olan sonucu seçin ve istekleri sırayla kullanın. Gerekli izinler her akışta belirtilir.

LABRIKA_API_KEY değerini ayarlayın. SITE_UUID ve ENGINE_ID değerlerini site listesinden, PROJECT_ID değerini proje listesinden alın. COST_ESTIMATE_ID ve IDEMPOTENCY_KEY değerlerini fiyat teklifindeki cost_estimate_id ve idempotency_key alanlarından alın. RUN_ID değerini başlatma yanıtından alın. LIST_REVISION değerini sonuçtaki list.revision alanından alın. Listeyi düzenledikten sonra uygulamadan önce LIST_REVISION değerini PATCH yanıtındaki revision ile güncelleyin.

Zaman aşımında aynı Idempotency-Key ve gövdeyle tekrar deneyin. 401 için anahtarı, 403 için izinleri, 409 için çakışma nedenini kontrol edin. 429 varsa Retry-After değerini izleyin.

Son sıralamalar

İlgili bölge ve arama motoru için kayıtlı sıralamaları okuyun.

serp:read

Anahtar kelime sıralamalarını okumak için etkin bir Business veya Agency aboneliği gerekir. Site listelerine ve ölçüm tarihlerine serp:read ile erişilebilir.

  1. GET /serp/sites?limit=10

    curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/serp/sites?limit=10" \
      -H "Authorization: Bearer $LABRIKA_API_KEY"
  2. GET /serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/dates?limit=5

    curl --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"
  3. GET /serp/sites/$SITE_UUID/search-engines/$ENGINE_ID/positions?collected_at=last&limit=20

    curl --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"
Yanıt örneği
{
  "data": [
    {
      "site_uuid": "d3c9e51b06a44e27831f205ceac20000",
      "host": "example.com",
      "search_engines": [
        {
          "id": 42,
          "engine_title": "Google"
        }
      ]
    }
  ]
}

Tam site denetimi başlatma

Teklif kimliğini saklayın ve site UUID’siyle aşamayı okuyun.

site-audits:runmain-reports:read

  1. GET /main-reports/sites?limit=10

    curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/main-reports/sites?limit=10" \
      -H "Authorization: Bearer $LABRIKA_API_KEY"
  2. POST /site-audits/sites/$SITE_UUID/cost

    curl --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"}'
  3. POST /site-audits/sites/$SITE_UUID/run

    curl --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:?}"}
    JSON
  4. GET /site-audits/sites/$SITE_UUID/progress

    curl --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"
Yanıt örneği
{
  "data": {
    "cost_estimate_id": "ESTIMATE_FROM_COST",
    "idempotency_key": "KEY_FROM_COST",
    "page_credits": 500,
    "amount_minor": 0
  }
}

Site için anahtar kelimeler

Sonucu okuyun, çalışma listesini düzenleyin ve seçilen sürümü site ayarlarına ekleyin.

domain-keywords:run

Fiyat teklifine göre PAYMENT_OPTION değerini credits_available true ise ai_credits, balance_available true ise money_balance olarak ayarlayın. İkisi de false ise başlatmadan önce bakiye yükleyin. Başlatmayı yeniden denerken aynı ödeme seçeneğini kullanın.

  1. POST /domain-keywords/cost

    curl --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}'
  2. POST /domain-keywords/run

    curl --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:?}"}
    JSON
  3. GET /domain-keywords/runs/$RUN_ID/progress

    curl --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"
  4. GET /domain-keywords/runs/$RUN_ID

    curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/domain-keywords/runs/$RUN_ID" \
      -H "Authorization: Bearer $LABRIKA_API_KEY"
  5. PATCH /domain-keywords/runs/$RUN_ID/list

    curl --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"}]}
    JSON
  6. POST /domain-keywords/runs/$RUN_ID/apply

    curl --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
Yanıt örneği
{
  "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
}

Yapay zekâ görünürlüğü için istemler

İşletmenin sunduklarını ve hariç tuttuklarını belirtin. 30–2000 istemi onar onar seçin.

prompt-suggestions:run

Fiyat teklifine göre PAYMENT_OPTION değerini credits_available true ise ai_credits, balance_available true ise money_balance olarak ayarlayın. İkisi de false ise başlatmadan önce bakiye yükleyin. Başlatmayı yeniden denerken aynı ödeme seçeneğini kullanın.

  1. POST /prompt-suggestions/cost

    curl --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}'
  2. POST /prompt-suggestions/run

    curl --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:?}"}
    JSON
  3. GET /prompt-suggestions/runs/$RUN_ID/progress

    curl --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"
  4. GET /prompt-suggestions/runs/$RUN_ID

    curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/prompt-suggestions/runs/$RUN_ID" \
      -H "Authorization: Bearer $LABRIKA_API_KEY"
  5. PATCH /prompt-suggestions/runs/$RUN_ID/list

    curl --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?"}]}
    JSON
  6. POST /prompt-suggestions/runs/$RUN_ID/apply

    curl --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
Yanıt örneği
{
  "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
}

Yapay zekâ görünürlüğü

Alan adıyla eşleşen projeleri bulun ve mevcut bir projeyi kullanmayı veya yeni bir proje oluşturmayı seçin. Raporu onaylanan fiyatla başlatın. Teklifteki Idempotency-Key değerini kullanın. Onayla birlikte yeni ayarlar eskilerinin yerini alır.

sites:createai-visibility:run

Kayıtlı veya yeni ayarlarla fiyatı hesaplayın. Yapay zekâ kredileri ve hesap para birimindeki fiyatı görmek için payment_option alanını boş bırakın. Rapor onaydan sonra başlar.

  1. GET /sites/by-domain?domain=example.com

    curl --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"
  2. GET /ai-visibility/sites/$SITE_UUID/models

    curl --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"
  3. POST /ai-visibility/sites/$SITE_UUID/cost

    curl --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"}]}}'
  4. POST /ai-visibility/sites/$SITE_UUID/run

    curl --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
Yanıt örneği
{
  "data": {
    "cost_estimate_id": "ESTIMATE_FROM_COST",
    "idempotency_key": "KEY_FROM_COST",
    "ai_credits": 1,
    "money_equivalent_minor": 1,
    "can_start": true
  }
}

Site değişiklikleri

İzleme projesini bulun ve son uyarılarını okuyun.

diff-projects:readdiff-alerts:read

  1. GET /diff-projects?limit=10

    curl --silent --show-error --fail-with-body "https://app.labrika.com/public-api/v1/diff-projects?limit=10" \
      -H "Authorization: Bearer $LABRIKA_API_KEY"
  2. GET /diff-projects/$PROJECT_ID/alerts?limit=20

    curl --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, işlemin tamamlandığını değil isteğin kabul edildiğini gösterir. Kimliği saklayın ve belirtilen GET yöntemiyle durumu kontrol edin. Durum okurken HTTP 200 alınması da görevin başarılı olduğunu kanıtlamaz: status ve hata alanlarına bakın. Döndürülürse retry_after_seconds süresine uyun.

Ortak API/MCP kullanım bütçesi, para bakiyesi, abonelik kotaları ve yapay zekâ kredileri farklı kaynaklardır. Para çekmeyen bir maliyet tahmini teknik bütçeyi tüketebilir. Ücretli işlemden önce güncel tahmini, ödeme seçeneğini ve yanıttaki para birimini kontrol edin.

İçeriğe dön