S/SERP Checker

Authentifizierung

Erstellen Sie in Ihrem Profil einen API-Schlüssel (Einstellungen → API-Schlüssel) und übergeben Sie ihn dann bei jeder Anfrage im Header X-API-Key.

curl -H "X-API-Key: YOUR_API_KEY" \
  https://serp.tsoden.ai/api/v1/clients
import requests

API_KEY = "YOUR_API_KEY"
BASE = "https://serp.tsoden.ai"

r = requests.get(f"{BASE}/api/v1/clients",
                 headers={"X-API-Key": API_KEY})
r.raise_for_status()
print(r.json())
const API_KEY = "YOUR_API_KEY";
const BASE = "https://serp.tsoden.ai";

const res = await fetch(`${BASE}/api/v1/clients`, {
  headers: { "X-API-Key": API_KEY }
});
const data = await res.json();
console.log(data);

GETKunden auflisten

GET /api/v1/clients — gibt alle Kunden zurück, auf die Ihr API-Schlüssel Zugriff hat.

curl -H "X-API-Key: $KEY" https://serp.tsoden.ai/api/v1/clients

# Response
{
  "clients": [
    {"id": 1, "name": "Acme Corp", "url": "https://acme.com"},
    {"id": 2, "name": "Foo Ltd",   "url": "https://foo.com"}
  ]
}

POSTSERP-Prüfung auslösen

POST /api/v1/clients/<id>/check — stellt eine SERP-Prüfung für die Keywords eines Kunden in die Warteschlange. Gibt eine job_id zurück, deren Status Sie abfragen können.

curl -X POST https://serp.tsoden.ai/api/v1/clients/1/check \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json"

# Response
{"job_id": 42, "status": "queued"}
import requests, time

job = requests.post(
    f"{BASE}/api/v1/clients/1/check",
    headers={"X-API-Key": API_KEY},
).json()
job_id = job["job_id"]

# Poll until done
while True:
    status = requests.get(
        f"{BASE}/api/v1/jobs/{job_id}",
        headers={"X-API-Key": API_KEY},
    ).json()
    if status["status"] in ("completed", "failed"):
        break
    time.sleep(5)
print(status)
const headers = {
  "X-API-Key": API_KEY,
  "Content-Type": "application/json",
};

const job = await fetch(`${BASE}/api/v1/clients/1/check`, {
  method: "POST", headers,
}).then(r => r.json());

console.log("Queued:", job.job_id);

GETKeyword-Positionen abrufen

GET /api/v1/clients/<id>/keywords — aktuelle Position je beobachtetem Keyword.

curl -H "X-API-Key: $KEY" \
  https://serp.tsoden.ai/api/v1/clients/1/keywords

# Response (truncated)
{
  "keywords": [
    {"query": "best crm", "position": 4, "lang": "en", "geo": "us", "device": "desktop"},
    {"query": "best crm software", "position": 11, "lang": "en", "geo": "us"}
  ]
}

POSTKeyword hinzufügen

curl -X POST https://serp.tsoden.ai/api/v1/clients/1/keywords \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '[{"query": "new keyword", "lang": "en", "geo": "us", "device": "desktop"}]'

POSTASO-App-Profil erstellen

POST /api/v1/clients/<id>/aso/apps - fügt ein App-Profil aus dem App Store oder Google Play für das ASO-Tracking hinzu.

curl -X POST https://serp.tsoden.ai/api/v1/clients/1/aso/apps \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "store": "app_store",
    "app_name": "Looks Style Assistant and Shopping",
    "app_identifier": "6760108611",
    "country": "GB",
    "language": "en",
    "category": "Lifestyle",
    "developer": "B-World",
    "app_url": "https://apps.apple.com/gb/app/looks-ai-stylist-and-shoping/id6760108611"
  }'

POSTASO-Keywords hinzufügen

POST /api/v1/clients/<id>/aso/keywords - fügt App Store- oder Google Play-Keywords für das Tracking der ASO-Sichtbarkeit hinzu.

curl -X POST https://serp.tsoden.ai/api/v1/clients/1/aso/keywords \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '[{
    "query": "ai stylist",
    "store": "app_store",
    "country": "GB",
    "language": "en"
  }]'

POSTASO-Aktualisierungen ausführen

Diese Endpunkte stellen über REST und MCP dieselben aktuellen ASO-Aktionen bereit, die auch der Strategy Assistant nutzt: Keyword-Generierung, Live-Rankings, Store-Eintrag-Audit, Abruf von Bewertungen und vollständige Aktualisierung.

# Refresh Looks Zone listing metadata from the public App Store page
curl -X POST https://serp.tsoden.ai/api/v1/clients/1/aso/actions/listing-audit \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"store": "app_store", "max_apps": 1}'

# Fetch public App Store reviews
curl -X POST https://serp.tsoden.ai/api/v1/clients/1/aso/actions/reviews \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"store": "app_store", "limit": 25, "max_apps": 1}'

# Run live rankings for saved ASO keywords
curl -X POST https://serp.tsoden.ai/api/v1/clients/1/aso/actions/rankings \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"max_keywords": 25}'

# Full ASO refresh: listing, reviews, rankings
curl -X POST https://serp.tsoden.ai/api/v1/clients/1/aso/actions/full-refresh \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{"store": "app_store", "max_apps": 1, "max_keywords": 25, "limit": 25}'

GETASO-Übersicht lesen

GET /api/v1/clients/<id>/aso/summary - gibt Anzahl der Apps, Anzahl der Keywords, Sichtbarkeit, Store-Eintrag-Audit, Bewertungen, Diagnosen und Backlog-Signale zurück.

curl -H "X-API-Key: $KEY" \
  https://serp.tsoden.ai/api/v1/clients/1/aso/summary

Webhooks

Registrieren Sie eine Webhook-URL unter Einstellungen → Webhooks. Bei diesen Ereignissen senden wir JSON per POST: job.completed, rank.spike_detected, backlink.gained, backlink.lost, aeo.check_completed.

// Example payload: job.completed
{
  "event": "job.completed",
  "fired_at": 1748000000,
  "data": {
    "job_id": 42,
    "client_id": 1,
    "client_name": "Acme Corp",
    "keywords_checked": 150,
    "duration_seconds": 320
  }
}
Sie brauchen einen Endpunkt, der hier nicht aufgeführt ist? Die vollständige interaktive Spezifikation finden Sie unter /public/api/docs.