{
  "openapi": "3.1.0",
  "info": {
    "title": "Pocket: sponsors for creators",
    "version": "1.0.0",
    "summary": "Brands that sponsor creators like a YouTube, Instagram or TikTok channel, and sponsorship rates.",
    "description": "Read-only, rate-limited public API. No key needed. No contact details are ever returned. The same tools are an MCP server at https://pocketagents.in/mcp. Docs: https://pocketagents.in/developers",
    "contact": {
      "url": "https://pocketagents.in/developers"
    }
  },
  "servers": [
    {
      "url": "https://pocketagents.in"
    }
  ],
  "security": [],
  "paths": {
    "/api/public/find-sponsors": {
      "get": {
        "operationId": "find_sponsors",
        "summary": "Find sponsors for a channel",
        "description": "Finds brands that recently paid creators similar to a given YouTube, Instagram or TikTok channel, with links to the sponsored posts as evidence. Returns up to 3 brands and a claimUrl where the creator can see the full list. Never returns contact details. Uses a cached result when the channel was scanned in the last 14 days; otherwise it starts a scan that takes about 90 seconds, answers status \"scanning\", and the same call returns the result once it is ready. Evidence from YouTube posts is not returned.",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "required": true,
            "description": "The creator's YouTube, Instagram or TikTok profile link (best), or their @handle. Example: https://www.instagram.com/yourname",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sponsors, or status \"scanning\" with checkBackInSec",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindSponsors"
                }
              }
            }
          },
          "400": {
            "description": "Error with a sentence safe to show the user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error with a sentence safe to show the user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited; see Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/sponsors/{brand}": {
      "get": {
        "operationId": "sponsor_profile",
        "summary": "Sponsor profile",
        "description": "Looks up one brand in Pocket's public sponsorship data: how many creators it sponsored in the last year, on which platforms, the deal types (paid, affiliate, gifted), creator sizes, and example sponsored posts. Only brands with enough evidence (3+ creators, 5+ posts, one in the last 180 days). Never returns contact details.",
        "parameters": [
          {
            "name": "brand",
            "in": "path",
            "required": true,
            "description": "Brand name, website domain, or Pocket brand slug. Example: \"Notion\" or \"notion.so\"",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The brand's public sponsorship profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorProfile"
                }
              }
            }
          },
          "400": {
            "description": "Error with a sentence safe to show the user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error with a sentence safe to show the user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited; see Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/rate-estimate": {
      "get": {
        "operationId": "rate_estimate",
        "summary": "Estimate a sponsorship rate",
        "description": "Estimates what a creator could charge for one sponsored post from their average views, the post format and the audience's country, using the same model as Pocket's public rate calculator. Returns a low, typical and high price in USD, labelled as an estimate.",
        "parameters": [
          {
            "name": "views",
            "in": "query",
            "required": true,
            "description": "Average views per post of this format, not follower count. Example: 25000",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": true,
            "description": "The sponsored post: youtube_integration (a mention inside a video), youtube_dedicated (a whole video), youtube_short, instagram_reel, instagram_stories (3 frames) or tiktok_video",
            "schema": {
              "type": "string",
              "enum": [
                "youtube_integration",
                "youtube_dedicated",
                "youtube_short",
                "instagram_reel",
                "instagram_stories",
                "tiktok_video"
              ]
            }
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "ISO country code where most of the audience lives, like US or IN. Omit for the US, UK, Canada and Australia rate.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            }
          },
          {
            "name": "niche",
            "in": "query",
            "required": false,
            "description": "finance_business_tech, education, general (default) or beauty_fashion_gaming",
            "schema": {
              "type": "string",
              "enum": [
                "finance_business_tech",
                "education",
                "general",
                "beauty_fashion_gaming"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A price range in USD",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateEstimate"
                }
              }
            }
          },
          "400": {
            "description": "Error with a sentence safe to show the user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited; see Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "code"
        ]
      },
      "Sponsor": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "dealType": {
            "type": "string",
            "enum": [
              "paid",
              "affiliate",
              "gifted"
            ]
          },
          "fit": {
            "type": "string",
            "enum": [
              "strong",
              "good",
              "worth a try"
            ]
          },
          "lastSeen": {
            "type": "string",
            "format": "date"
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "instagram",
                    "tiktok"
                  ]
                },
                "creator": {
                  "type": "string",
                  "description": "The creator's @handle"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "The sponsored post"
                },
                "date": {
                  "type": "string",
                  "format": "date"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "paid",
                    "affiliate",
                    "gifted"
                  ]
                }
              },
              "required": [
                "platform",
                "creator",
                "url",
                "date",
                "type"
              ]
            },
            "maxItems": 3
          }
        },
        "required": [
          "name",
          "dealType",
          "fit",
          "lastSeen",
          "evidence"
        ]
      },
      "FindSponsors": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "scanning"
            ]
          },
          "channel": {
            "type": "object",
            "properties": {
              "platform": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "handle": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "sponsors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sponsor"
            },
            "maxItems": 3
          },
          "moreInApp": {
            "type": "boolean"
          },
          "scannedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "checkBackInSec": {
            "type": [
              "integer",
              "null"
            ]
          },
          "claimUrl": {
            "type": "string",
            "format": "uri",
            "description": "Where the creator saves these, sees the full list and who to email"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "sponsors",
          "moreInApp",
          "claimUrl",
          "message"
        ]
      },
      "SponsorProfile": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "creators": {
            "type": "integer"
          },
          "sponsoredPosts": {
            "type": "integer"
          },
          "firstSeen": {
            "type": "string",
            "format": "date"
          },
          "lastSeen": {
            "type": "string",
            "format": "date"
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dealTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "posts": {
                  "type": "integer"
                }
              }
            }
          },
          "creatorSizes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "creators": {
                  "type": "integer"
                }
              }
            }
          },
          "niches": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "examples": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "instagram",
                    "tiktok"
                  ]
                },
                "creator": {
                  "type": "string",
                  "description": "The creator's @handle"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "The sponsored post"
                },
                "date": {
                  "type": "string",
                  "format": "date"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "paid",
                    "affiliate",
                    "gifted"
                  ]
                }
              },
              "required": [
                "platform",
                "creator",
                "url",
                "date",
                "type"
              ]
            }
          },
          "pageUrl": {
            "type": "string",
            "format": "uri"
          },
          "period": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "creators",
          "sponsoredPosts",
          "examples",
          "pageUrl"
        ]
      },
      "RateEstimate": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string"
          },
          "formatLabel": {
            "type": "string"
          },
          "averageViews": {
            "type": "integer"
          },
          "market": {
            "type": [
              "string",
              "null"
            ]
          },
          "niche": {
            "type": "string"
          },
          "currency": {
            "const": "USD"
          },
          "low": {
            "type": "number"
          },
          "typical": {
            "type": "number"
          },
          "high": {
            "type": "number"
          },
          "perThousandViews": {
            "type": "number"
          },
          "label": {
            "const": "Pocket estimate"
          },
          "method": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "low",
          "typical",
          "high",
          "currency",
          "label"
        ]
      }
    }
  }
}