posts.design API
Search posts.design from your own code and get the same results your agent gets
Your key
Send your personal key with every request. It's the key your agent uses, in Settings. Keep it on your server, never in a web page or an app people download.
Get your keySearch
Find Posts, OG images and Headers. Each result has a key.id to open it with.
curl -H "Authorization: Bearer $POSTS_KEY" \ "https://posts.design/api/v1/search?q=pricing+page&collection=og-images"
- q. What to look for. Leave it empty with a filter to list what matches.
- collection.
posts(the default),og-imagesorheaders. - sort.
relevance(the default) orrecent, newest first. - limit. 1 to 25 results a page; 10 by default.
- cursor. The
nextCursorfrom the page before. A search returns its first 100 results. - Filters.
format,category,tone,shape,style,colour,brand, andpageTypefor OG images. - also. Up to two more queries in the same request, for one credit:
also=hero&also=launch.
Open a reference
Open any result by its key.id for its source, attribution, dates, classification, Subjects and media links.
curl -H "Authorization: Bearer $POSTS_KEY" \ https://posts.design/api/v1/references/REFERENCE_ID
Credits and limits
- One credit a request. A page of results or a reference. The same request again within a day is free, and so is a search that finds nothing.
- Shared with your agent. Free has 100 credits a month and Pro 1,000. They refill on the 1st (UTC).
- Errors. JSON with an
errorcode and an HTTP status. On 429, wait theRetry-Afterseconds; out of credits says when they refill inrefillsAt. - OpenAPI. /api/v1/openapi.json describes both requests.