HOME | SEARCH | API | ADMIN
← BACK

📡 API Documentation

Overview

llms-docs-hub provides a RESTful API for AI agents to discover and search aggregated technical documents. All endpoints return JSON.

Base URL: https://your-domain.com

Endpoints

1. Search Documents

GET /api/search

Search across all indexed documents.

Parameters:

q # (required) search query limit # (optional) max results, default 20

Example:

curl 'https://your-domain.com/api/search?q=stable+diffusion&limit=10'

Response:

{ "results": [ { "site_name": "ComfyUI", "official_url": "https://docs.comfy.org", "title": "ComfyUI Documentation", "content": "ComfyUI is a node-based GUI...", "site_id": 1 } ], "total": 1 }

2. Site List

GET /api/sitemap

Get a list of all indexed sites.

curl 'https://your-domain.com/api/sitemap'

3. Document Detail

GET /api/docs/{site_id}

Get full document content for a specific site.

curl 'https://your-domain.com/api/docs/1'

Rate Limiting

Currently no rate limiting is enforced. Free to use.

For AI Agents

The most efficient way to interact with this site is via the /api/search endpoint. Simply send a GET request with your query and receive structured JSON results.

You can also access /llms.txt for a machine-readable index of all available documents.