Most sites that offer data do it in one of two ways: a "contact us for API access" form, or nothing at all. I recently read through the setup on ainsfw.tools, a review directory of AI chat platforms for adults (18+). It's a compact example of the opposite: four static files that together describe the whole data offering. None of them needs a server-side framework.
1. The data itself
Two endpoints, both plain GETs with no authentication:
GET /data/platforms.json
GET /data/{table}/csv # table ∈ prices | features | payments | tested
platforms.json returns an envelope with source, license, updated and count, then an array of platform objects (rank, name, slug, score, free_plan, paid_from, lowest_price, billing, features[], tags[], tested, website, review_url). Putting the licence and update date in the payload is a nice touch, because they travel with every copy.
2. The contract: /data/openapi.json
An OpenAPI 3.1 document titled "ainsfw.tools data". It is short. The CSV route declares table as a path parameter with an enum, so a client generator knows the four valid values and that anything else is a 404. The info.license block points to CC BY 4.0.
What I'd add: a JSON Schema for the platform object. Right now the response is documented as application/json with no schema, so consumers infer the fields.
3. Discovery: /.well-known/api-catalog
This is the part most sites skip. RFC 9727 defines a well-known URI that returns a linkset (application/linkset+json) describing a publisher's APIs. Here it has a single entry: the anchor is platforms.json, service-desc points to the OpenAPI file, and service-doc points to the human documentation page. An agent that knows only the domain can find the spec with one request, and no HTML parsing.
4. Context for language models: /llms.txt
A Markdown file with a one-paragraph summary, key pages, the data links with their licence, and a ranked list of reviews with one-line facts. It's what an assistant would otherwise piece together from a dozen pages.
The human layer
All four files are tied together by a /developers page that states the terms in plain language: free, read-only, no key; "cache it and fetch it no more than once an hour"; link to the platform's review page when quoting; mention affiliate links when showing them; 18+ only. That page is noindex, follow, so it exists for people who need it, not for search traffic.
Takeaways for your own project
- Ship the catalog. A 200-byte
api-catalogfile makes your spec discoverable by tooling that already follows RFC 9727. - Put licence and timestamp in the payload, not only in the docs.
- Write the rate guidance as a request, with the refresh interval stated, so consumers can choose a sensible cache time.
- Keep llms.txt factual and current. It goes stale faster than anything else in the set.
The full write-up of the terms is on the site's developer page.
Top comments (0)