---
title: Generate LLMs Text API
slug: generate-llms-txt
url: https://apyhub.com/seoscoreapi/service/generate-llms-txt
provider: SEO Score API
categories: [Retrieval Kit]
tags: [llms-txt, website-documentation, content-discovery, site-generation, binary-output]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 40
mcp: true
---

# Generate LLMs Text API

Generate an llms.txt file from a domain and receive it as binary output. Useful for publishing LLM-friendly site metadata and docs entry points.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/seoscoreapi/generate-llms-txt` | What it does Generates an llms.txt file for the domain provided in the query string and returns it… | 40 |

## Endpoint reference

### Generate an llms.txt for a domain

`GET https://api.eu.apyhub.com/seoscoreapi/generate-llms-txt` · 40 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | query | string | yes | Domain to generate llms.txt for (e.g. example.com) Example: `apyhub.com`. |

#### Quickstart

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

```bash
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:

```text
# 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
```

## About

## 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.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/seoscoreapi/service/generate-llms-txt
