Belgeler
Ctrl+K Arama Alt+[Alt+] Kılavuzlar
API anahtarını al

API

Store tracker

Read tracker usage over an API key; add or remove stores from a logged-in session.

AL/api/v1/mağaza-izleyici

Tracked store count and plan cap for the API key owner. Alias: /api/store-tracker.

Send X-API-Anahtarı on every request.
Talep
curl -sS \
  -H "X-API-Key: $WH_API_KEY" \
  "{origin}/api/v1/store-tracker"
const res = await fetch(`${ORIGIN}/api/v1/store-tracker`, {
  method: 'GET',
  headers: {
    'X-API-Key': process.env.WH_API_KEY,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    f"{ORIGIN}/api/v1/store-tracker",
    headers={"X-API-Key": os.environ["WH_API_KEY"]},
)
data = res.json()
Yanıt
{
    "amount": 37,
    "max_allowed": 100
}
{
    "success": false,
    "error": "Unauthorized"
}
{
    "success": false,
    "error": "WinningHunter Basic plan or higher required"
}
{
    "success": false,
    "error": "Rate limit exceeded. Max 60 requests per minute."
}

Response is { "amount", "max_allowed" }no top-level başarı field.

Track / remove (session only)

Method Yol Body Amaç
YAYIN /api/storetracker/add mağaza URL'si Track a store by URL/domain
YAYIN /api/salestracker/delete shopid Remove a tracked store
AL /api/storetracker/amount-stores-tracked Same shape as above (amount, max_allowed)

Related