Marcas y seguimiento de marcas
GET /api/v1/marcas is the API-key tracked-brands list (metered). Brand detalle tabs use /api/marcas/* in a logged-in browser session — they are not available over an API key. MCP equivalent: marcas_seguidas.
OBTENER
/api/v1/marcasList the brands tracked by the API key owner.
Send
Clave X-API on every request.Query parameters
clasificarcadenaoptionalOrder of the returned list.
buscarcadenaoptionalCase-insensitive match on brand name or page id.
board_idcadenaoptionalOnly brands on that saved board (must belong to the user).
Solicitud
curl -sS \
-H "X-API-Key: $WH_API_KEY" \
"{origin}/api/v1/brands?sort=date_added&search=string&board_id=string"const res = await fetch(`${ORIGIN}/api/v1/brands?sort=date_added&search=string&board_id=string`, {
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/brands?sort=date_added&search=string&board_id=string",
headers={"X-API-Key": os.environ["WH_API_KEY"]},
)
data = res.json()Respuesta
[
{
"id": "108897621643793",
"name": "Allbirds",
"logo_url": "https://cdn.example.com/brands/allbirds.png",
"page_url": "https://www.facebook.com/allbirds",
"status": "active",
"total_ads": 412,
"active_ads_on_page": 142,
"new_ads_count": 18,
"new_ads_change": 0.14,
"added_at": "2024-04-12"
}
]{
"success": false,
"error": "Unauthorized"
}{
"success": false,
"error": "WinningHunter Standard subscription required"
}The tracked-brands list is returned as a JSON array (not wrapped in { success, data }).
Brand detail (session only)
These power the Brand tracker UI and require a logged-in browser session, not an API key. The brand identifier (id) is the Facebook page_id from the list above.
| Method | Ruta | Body / params | Objetivo |
|---|---|---|---|
| PUBLICAR | /api/brands/follow |
url (ad library URL) |
Track a brand. |
| PUBLICAR | /api/brands/unfollow |
page_id |
Remove a tracked brand. |
| OBTENER | /api/brands/amount-tracked |
— | Tracked count + plan cap. |
| OBTENER | /api/marcas/anuncios |
id, página (0-based, 12/page), fecha_rango |
Paginated ads for one brand. |
Date range filter
fecha_rango applies to /api/marcas/anuncios and other insight tabs:
| Valor | Significado |
|---|---|
(absent) / todos |
No date filter |
en directo |
Last seen in the last 3 days |
7d, 30d, 3m, 6m |
Ad start date on or after the rolling cutoff |
personalizado |
Requires fecha_de_inicio y fecha_hasta (A-M-D) |