AY Rank Llms.txt API
Build an llms.txt file for AI crawlers.
Build an llms.txt file for AI crawlers.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ayrank-com:ayrank-com-llms-txt-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: AY Rank Free Tools Llms.txt API
version: 1.0.0
summary: Free JSON API for AY Rank SEO and GEO tools.
description: 'Public JSON versions of the free tools at https://www.ayrank.com/tools. Every endpoint takes GET with query parameters or POST with a JSON body (max 32768 bytes). Free, no key. Rate limit: 30 requests per 60 seconds per IP, shared across all /api/v1 tools. Each success response includes a poweredBy link back to the tool page.'
termsOfService: https://www.ayrank.com/terms
contact:
name: AY Rank
url: https://www.ayrank.com
servers:
- url: https://www.ayrank.com
tags:
- name: llms.txt
description: Build an llms.txt file for AI crawlers.
paths:
/api/v1/llms-txt-generator:
get:
tags:
- llms.txt
summary: Generate an llms.txt file
description: 'Returns an llms.txt file built from your company details, plus a completeness score. Free, no key. Rate limit: 30 requests per 60 seconds per IP, shared across all /api/v1 tools.'
externalDocs:
description: Use the tool in a browser
url: https://www.ayrank.com/tools/llms-txt-generator
operationId: llmsTxtGeneratorGet
parameters:
- name: companyName
in: query
required: true
description: Company name.
schema:
type: string
- name: websiteUrl
in: query
required: true
description: Absolute http(s) URL of the site.
schema:
type: string
- name: description
in: query
required: false
description: Two or three sentences on what the company does.
schema:
type: string
- name: industry
in: query
required: false
description: Industry, for example SaaS or Healthcare.
schema:
type: string
- name: services
in: query
required: false
description: Comma-separated list of services.
schema:
type: string
- name: keyPages
in: query
required: false
description: Key page URLs, one per line (or repeat the parameter).
schema:
type: string
- name: differentiators
in: query
required: false
description: What makes the company different, one per line (or repeat the parameter).
schema:
type: string
- name: contactEmail
in: query
required: false
description: Contact email.
schema:
type: string
- name: socialLinks
in: query
required: false
description: Comma-separated social profile URLs.
schema:
type: string
responses:
'200':
description: Result
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/LlmsTxtResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- llms.txt
summary: Generate an llms.txt file
description: 'Returns an llms.txt file built from your company details, plus a completeness score. Free, no key. Rate limit: 30 requests per 60 seconds per IP, shared across all /api/v1 tools.'
externalDocs:
description: Use the tool in a browser
url: https://www.ayrank.com/tools/llms-txt-generator
operationId: llmsTxtGeneratorPost
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LlmsTxtRequest'
responses:
'200':
description: Result
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/LlmsTxtResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
components:
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the window resets.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests left in the current window.
schema:
type: integer
X-RateLimit-Limit:
description: Requests allowed per window.
schema:
type: integer
responses:
BadRequest:
description: 'Invalid input: unknown field, wrong type, missing required field, value too long, or bad JSON.'
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit hit. Wait Retry-After seconds.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- error
- docs
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_input
- rate_limited
message:
type: string
docs:
type: string
format: uri
LlmsTxtResponse:
type: object
required:
- llmsTxt
- completeness
- poweredBy
properties:
llmsTxt:
type: string
description: The llms.txt file contents.
completeness:
type: object
required:
- score
- label
properties:
score:
type: integer
minimum: 0
maximum: 100
label:
type: string
enum:
- Excellent
- Good
- Fair
- Needs work
- Just getting started
poweredBy:
$ref: '#/components/schemas/PoweredBy'
LlmsTxtRequest:
type: object
additionalProperties: false
required:
- companyName
- websiteUrl
properties:
companyName:
type: string
description: Company name.
maxLength: 200
minLength: 1
websiteUrl:
type: string
description: Absolute http(s) URL of the site.
maxLength: 500
format: uri
description:
type: string
description: Two or three sentences on what the company does.
maxLength: 2000
industry:
type: string
description: Industry, for example SaaS or Healthcare.
maxLength: 100
services:
description: Services, as an array or a comma-separated string.
oneOf:
- type: string
- type: array
items:
type: string
maxLength: 200
maxItems: 50
keyPages:
description: Key page URLs, as an array or one per line.
oneOf:
- type: string
- type: array
items:
type: string
maxLength: 500
maxItems: 50
differentiators:
description: What makes the company different, as an array or one per line.
oneOf:
- type: string
- type: array
items:
type: string
maxLength: 300
maxItems: 30
contactEmail:
type: string
description: Contact email.
maxLength: 254
socialLinks:
description: Social profile URLs, as an array or a comma-separated string.
oneOf:
- type: string
- type: array
items:
type: string
maxLength: 500
maxItems: 20
examples:
- companyName: Acme Analytics
websiteUrl: https://acme.example
description: Acme builds product analytics for B2B SaaS teams.
industry: SaaS
services:
- Product analytics
- Session replay
PoweredBy:
type: object
required:
- text
- url
properties:
text:
type: string
const: Powered by AY Rank
url:
type: string
format: uri