apyhub
Back
▣ RETRIEVAL KIT

Generate LLMs Text API

What it does

LLMs Txt Generator builds an llms.txt file for a website. Send a domain such as example.com; the endpoint reads the site and returns a ready-to-edit llms.txt as plain text (Markdown) — a # <site name> heading, a short note, and the site's pages listed under ## Pages.

Its one endpoint, Generate an llms.txt for a domain, takes just domain. The output is a starting point: review it, trim it to the pages that matter, then publish it at https://<your-domain>/llms.txt so AI assistants and agents can find your key content.

LLMs Txt Generator is a good fit when you need an llms.txt for one or many sites — in a CMS, a static-site build or an SEO tool — without writing each file by hand.

GET
Generate an llms.txt for a domain
https://api.eu.apyhub.com/seoscoreapi/generate-llms-txt

QUICKSTART

GUIDE

Quickstart

Generate an llms.txt file for a domain by passing the domain as a query parameter.

curl -X GET "https://api.eu.apyhub.com/seoscoreapi/generate-llms-txt?domain=apyhub.com" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

A real response to the request above — plain text, not JSON:

# Example Domain

Generated by SEO Score API · https://api.eu.apyhub.com/seoscoreapi/generate-llms-txt
Edit before deploying — review for accuracy and trim to what matters most for LLM grounding.

## Pages
TRY ITLIVE · 40 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Domain to generate llms.txt for (e.g. example.com)

About this endpoint

What it does

Generates an llms.txt file for the domain provided in the query string and returns it as a binary response.

Query Parameter(s)

AttributeTypeMandatoryDescription
domainStringYesDomain to generate llms.txt for (e.g. apyhub.com)

Response

Returns a binary response containing the generated llms.txt file.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.