Brands & markets
A brand is what Skoup measures: its offerings and its presence in AI answers. A solo workspace holds one brand; an agency workspace holds one brand per client, each fully isolated. Almost every call of the API is scoped to a brand: its id (br_…) is in the URL, /v1/brands/{brand}/….
A brand is measured on one or more markets — a country, with its language and currency. The AI assistants do not answer the same way in France and in the US, so every measurement (visibility, readiness, revenue…) is per market. One market is the brand’s primary market: it is the default whenever a call accepts a market parameter and you leave it out.
Verticals
A brand has a vertical — what it sells — that decides which modules apply to it:
vertical | The brand | Modules that do not exist for it |
|---|---|---|
ecommerce | Online store: a store or a feed synced into a catalogue | — |
saas | Software or an online service: plans and offerings, declared by hand or read on its site | Catalogue sync, variants, attributed orders and revenue, revenue correlation, write-backs, the feed and checkout blocks of readiness, the availability alert |
local | A local business or practice (a practice, an agency, a shop): its services on site | The same as saas |
An endpoint of a module the vertical lacks answers 403 capability_unavailable: nothing to fix on the key or the plan, the module does not exist for that brand. Read vertical on the brand before calling a store’s endpoints.
Establishments
A local brand has one or more establishments (loc_…) — a chain of practices, stores or agencies is one brand with that many establishments, the market staying a country. Each establishment carries its name, city, address, phone, opening hours and the page that describes it on the site. Skoup reads them on the brand’s site (establishment pages and their LocalBusiness markup) or gets them in the app; tracked says whether the query panel writes queries for it.
Every query of a local brand is asked from the city of one establishment (location on the query), and the wrong_local_fact alert judges an address or a phone against the establishment the answer was about (location on the alert) — one alert per establishment.
| I want to… | Call |
|---|---|
| List the establishments of a brand | GET /v1/brands/{brand}/locations |
| Those of one market, tracked only | GET /v1/brands/{brand}/locations?market=FR&tracked=true |
| Search by city, origin or missing data | GET /v1/brands/{brand}/locations?q=city:Lyon -has:phone |
q takes the app’s search grammar: is:tracked|untracked, market:FR, city:, region:, source:site|manual, has:address|phone|hours|url|postal|queries (- negates, after: / before: on the date added); free text looks up the name, city, region, postal code and address. An unknown qualifier is ignored.
A market’s locality field is still served for compatibility (the first tracked establishment of the market, null without any): prefer /locations. Establishments are managed in the app (markets step, Establishments page), not through the API.
Online listings
A local brand also has listings (lst_…): its pages on the third-party platforms the assistants read — Google Maps, Doctolib, Planity… A listing belongs to the brand or to one establishment (location, null for the brand as a whole). Skoup reads each public page once a week (Monday) and keeps the last facts read (name, address, phone, opening hours, categories…) and the review aggregates in stats (rating, number of reviews, date of the last one).
| I want to… | Call |
|---|---|
| List the listings of a brand | GET /v1/brands/{brand}/listings |
| Those of one establishment | GET /v1/brands/{brand}/listings?location=loc_… |
| Be told when a fact changes on a listing | the listing.changed event |
Lifecycle: pending (added, not read yet) → ok (read), unreadable (the page could not be read, status_reason says why: blocked, timeout, robots, no_data, http_error, unavailable, platform_unreadable) or not_found (the page is gone). Every weekly read moves the status again.
Event: listing.changed is emitted when a fact of facts differs from the previous read; its object is the listing as the GET returns it. It is not emitted on the first read, nor when only stats moved.
Pitfalls:
- An
unreadablelisting keeps the facts of its last successful read: checkstatusandchecked_atbefore trustingfacts. - Reviews are aggregates only: no review text, no author, ever.
nullis not 0: anullfact or figure was not read on the page.factsandstatsarenulluntil the first successful read.- A brand that sells online has no listings: the route answers
capability_unavailable. Listings are added and removed in the app, not through the API.
Statuses of a market
offactiveI want to…
| I want to… | Call |
|---|---|
| List the brands my key can reach | GET /v1/brands |
| Read one brand | GET /v1/brands/{brand} |
| List a brand’s markets | GET /v1/brands/{brand}/markets |
| List only the measured markets | GET /v1/brands/{brand}/markets?status=active |
Scope: brands:read. Events: none — brands and markets are managed in the Skoup app.
Scenario: find the brand and its markets
Every integration starts here: resolve the brand id once, store it, and read its active markets.
curl https://api.skoup.ai/v1/brands \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"
curl "https://api.skoup.ai/v1/brands/br_034PJIMnN3EOTCU3TMUdLS/markets?status=active" \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"Pitfalls
- Ids are opaque. Store
br_…as a string; never build it from the brand’s name or slug. - A key may be limited to some brands. A brand outside the key’s selection answers
404 resource_missing, exactly like a brand that does not exist. - Test keys see the sandbox brands, not yours: the ids differ between test and live.