Search library
Keyword search across the library. Start here to turn a product, brand or idea into slugs for List ads, or ad ids for Get ad and Get ads. Each hit has a type and page URL; an ad hit's description is its copy. On Pro and Agency, a call counts one per 10 results asked for. Without a plan, you get the first 10.
/api/v1/searchAuthentication
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
qstringrequiredKeywords, such as "protein powder". At least 2 characters. Past 64 it is cut, not refused.
limitintegerHow many results: 1 to 25. Default 10. Default
10.
Response fields
querystringThe query as searched: trimmed, lower-cased.
corrected_querystringPresent when the query found nothing as written. Misspelt words are corrected to the closest ones the library uses, and the results are for this query.
resultsarray of objectEach with
type,id,slug,title,partial,description,url.
Responses
- 200
Matches, best first. Body:
SearchResponse. - 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.detailsays which limit and when it resets.resolutionsays 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.