Launch offer: service fee 10% 4% until 31 Dec, just enough to cover card processing. See pricing

← REST API reference

List your products

The products (apps, sites or brands) on your account. Every campaign is for one of them.

View as Markdown
GEThttps://yapfactory.com/api/v1/products
Who can use itBrands
Tierread: Reads. Changes nothing.
Scopecampaigns:read, or read
Idempotency-KeyNot used
Rate limitReads: 120 a minute
MCP toollist_products

Parameters

limit
queryoptional
integer

How many to return. 1 to 50. Default 20.

cursor
queryoptional
string

The nextCursor from the previous page. Leave out for the first page.

Example request

curl "https://yapfactory.com/api/v1/products" \
  -H "Authorization: Bearer $YAP_API_KEY"

Response

200 with a list. Each item in data is what the MCP tool returns in products. Pass nextCursor back as cursor until hasMore is false. How paging works.

{
  "data": [
    {
      "id": "5d41402a-bc4b-4a76-b971-9e3f2c1d0a8b",
      "name": "Sleepwell",
      "platform": "ios",
      "url": "https://apps.apple.com/app/id0000000000",
      "category": "Health & Fitness",
      "campaigns": 2
    }
  ],
  "nextCursor": null,
  "hasMore": false
}

An example: fields that don't apply are null, and new fields can be added at any time, so ignore ones you don't know. Every response carries Request-Id and the RateLimit-* headers.

Errors

CodeStatusWhen
invalid_request400A field failed validation (see meta.issues), or an unknown query parameter.
unauthorized401No token, or it's wrong, expired, revoked or from the other environment.
insufficient_scope403The token doesn't have campaigns:read (or read).
forbidden403Only for brands, or the account can't do this yet (email not confirmed, paused).
rate_limited429Over the limit. Wait for Retry-After seconds.
internal500Our fault. Retry later, and send us the requestId if it keeps happening.

Every error has the same shape. See Errors for what to do about each one.