Skip to content
Skip to Content

Get brand by domain

The library brand behind a site: the brand whose stored website it is, else the one most tracked ads linking there come from. A 404 means no brand is tied to that site, not that the library lacks it. Search the name with Search library.

get/api/v1/brands/by-domain

Authentication

API key, OAuth token or signed-in session, sent as Authorization: Bearer <key or token> (a session rides on its cookie). An OAuth token needs mcp:read. See authentication.

Query parameters

  • domainstringrequired

    A domain (glossier.com) or a URL on it.

Response fields

  • domainstring

    The host that was matched.

  • matchenum

    same_host: identical. parent_domain: the site asked for is a subdomain of the brand's. subdomain: the brand's site is a subdomain of it. One of same_host, parent_domain, subdomain.

  • sourceenum

    website: the brand's stored website. landing_pages: most Meta-tracked ads linking to this site come from this brand. One of website, landing_pages.

  • brandobject

    With name, slug, website, niche, ads, url.

Responses

  • 200

    The brand. Body: BrandMatch.

  • 400

    A parameter is missing or out of range. Body: Problem.

  • 401

    No credentials, or the token is invalid or expired. The oauth2 security scheme says how to get one. Body: Problem.

  • 403

    The token lacks the mcp:read scope. Body: Problem.

  • 404

    No such brand, niche, format, visual format, hook tactic or ad. Body: Problem.

  • 429

    rate_limited: more than 60 requests a minute from this account. quota_exceeded: the plan's MCP/API allowance is used up (10,000 a month on Pro, 50,000 a month on Agency, 200 a day on the 7-day free trial, UTC), or an account with no plan has used its 20 preview calls. detail says which limit and when it resets. resolution says what to do next and links to the plans page. Show both to the person. Body: Problem.

  • 503

    The library could not be read; retry shortly. Body: Problem.