Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Credits: 1 per ad returned on ad endpoints (a page of 250 ads costs 250), 1 per call on brand endpoints whatever the count; empty and error responses are free; usage is free. X-Credits-Remaining is on every response.
- Ad lists page by cursor: pass metadata.cursor from the previous response.
- Each ad carries foreplay_url, the link to view it in Foreplay.
- Swipe file, boards and Spyder (your own saved and tracked brands) are not in this entry.
Endpoints
Search ads
- 1 credit per ad returned.
Get an ad
- 1 credit per successful lookup.
Search brands by name
- 1 credit per call. Ad-count filters apply after ranking, so fewer than limit may come back.
Find brands by domain
- 1 credit per call.
Get ads by brand
- 1 credit per ad returned. collect=true is a best-effort fallback and may still return nothing.
Get brand analytics
- 1 credit per call. Today’s row is computed live from the latest collected data.
Get credit usage
- Free.