API
Whatever you can add in the browser, a script or your AI assistant can add for you. Reading is open to everyone; adding and changing needs a token.
Let your assistant add your work
1
Create a tokenSign in, open My stuff and make one under API tokens
2
Give your assistant the prompt belowPut in your token and a link to your GitHub repository, product page or article
3
It reads the instructions and adds the listingYour first listing is checked by an admin before it shows; after that your listings go live at once
Read https://ax-library.com/llms.txt and follow it. Add my work to Ax Library through its API. My API token: PASTE-YOUR-TOKEN My work: PASTE-A-LINK (GitHub repository, product page or article) Read the link, write the title, a one-sentence summary and a description, choose the fitting type, kind and category, and show me the listing before you send it.
Endpoints
GET /api/v1/schemaEvery field, the listing types it belongs to and the values it accepts
GET /api/v1/listingsSearch published listings: q, type, category, kind, pricing, sort (updated, popular, rated; newest first when left out), limit, offset
GET /api/v1/listings/{slug}One listing
GET /api/v1/meWho the token belongs to, who they may publish for, and all their listings with status · needs a token
POST /api/v1/listingsAdd a listing · needs a token
PATCH /api/v1/listings/{slug}Change a listing: send only the fields that change · needs a token
DELETE /api/v1/listings/{slug}Remove a listing · needs a token
Example
curl -X POST https://ax-library.com/api/v1/listings \
-H "Authorization: Bearer PASTE-YOUR-TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "project",
"kind": "acap",
"title": "Door counter",
"summary": "Counts people passing a door and publishes the number over MQTT.",
"category": "Analytics & AI",
"link": "https://github.com/you/door-counter",
"pricing": "open source",
"maturity": "proof of concept",
"tags": ["mqtt", "people counting"]
}'Good to know
Answers are JSONWhen something is wrong you get a message and, per field, what to fix. Send the request again with the fix.
Fields and allowed values/api/v1/schema lists every field, which listing types it belongs to and the values it accepts.
Instructions for AI assistants/llms.txt explains the whole API in plain text, written for a language model.
Limits20 new listings per day and person. Up to 5 tokens each; revoke one any time under My stuff.
PicturesA cover and screenshots can only be added in the form on the website, not through the API.