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

API · Shopify

Store tracker

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

AL/api/v1/mağaza-izleyici

Read tracker usage for the API key owner. Read-only. 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
{
    "success": true,
    "amount": 37,
    "max_allowed": 100
}
{
    "success": false,
    "error": "Unauthorized"
}

Track / remove (session only)

These power the Sales tracker UI and require a logged-in browser session, not an API key.

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 Tracked count (amount, max_allowed).

See also