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

← REST API reference

Browse campaigns

Live campaigns you could work on, with what each pays you, its fit with your profile and the brand's rating.

View as Markdown
GEThttps://yapfactory.com/api/v1/marketplace/campaigns
Who can use itCreators
Tierread: Reads. Changes nothing.
Scopemarketplace:read, or read
Idempotency-KeyNot used
Rate limitReads: 120 a minute
MCP toolbrowse_campaigns

Parameters

query
queryoptional
string

Words to look for in the product or brief. Up to 100 characters.

category
queryoptional
string

Only this product category, e.g. Health & Fitness. Up to 60 characters.

country
queryoptional
string

Only campaigns for this audience country, e.g. US. Up to 10 characters.

sort
queryoptional
"fit" | "newest" | "pay" | "rating"

fit: best match for your profile first. pay: what you'd earn, highest first. rating: best rated brands first. Default "fit".

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/marketplace/campaigns?sort=newest&limit=10" \
  -H "Authorization: Bearer $YAP_API_KEY"

Response

200 with a list. Each item in data is what the MCP tool returns in campaigns, and meta carries the summary fields. Pass nextCursor back as cursor until hasMore is false. How paging works.

{
  "data": [
    {
      "id": "8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f",
      "title": "Morning routine with Sleepwell",
      "product": "Sleepwell",
      "category": "Health & Fitness",
      "brand": "Sleepwell",
      "brandRating": {
        "average": 4.8,
        "count": 6,
        "completedDeals": 7,
        "onTimeReviewRate": 1,
        "medianReviewHours": 9.5,
        "medianHoursDraftToPayout": 14
      },
      "pays": {
        "minor": 2500,
        "currency": "USD",
        "formatted": "$25.00"
      },
      "videos": 1,
      "openingsPerVideo": 1,
      "lengthSeconds": 30,
      "adRights": "Brand's channels, no ads",
      "targetCountries": [
        "US"
      ],
      "deadline": "2026-12-16T12:00:00.000Z",
      "fit": "Great fit",
      "fitReasons": [
        "You make wellness videos",
        "71% of your audience is in the US"
      ],
      "asked": false,
      "url": "https://yapfactory.com/creator/browse/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f"
    }
  ],
  "nextCursor": null,
  "hasMore": false,
  "meta": {
    "page": 1,
    "pages": 8,
    "total": 192,
    "yourRate": {
      "minor": 2500,
      "currency": "USD",
      "formatted": "$25.00"
    },
    "hiddenBecauseAboveBudget": 0
  }
}

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 marketplace:read (or read).
forbidden403Only for creators, 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.