llms.txt is a proposed standard for making website content accessible to
large language models. Similar to robots.txt for web crawlers, llms.txt tells AI tools what
documentation is available and how to access it.
Full content â complete documentation in a single file
Format
llms.txt (Summary)
The summary file contains a structured list of all documentation pages with titles, descriptions,
and URLs:
Code
# Binance Web3 API> On-chain data & trading services for developers.## Market API- [Introduction](/market-api/introduction): Market API overview- [Get Price](/market-api/api-reference/get-price): Real-time token price## Trading API- [Introduction](/trading-api/introduction): DEX aggregator overview- [Swap](/trading-api/api-reference/swap): Execute token swap- [Quote](/trading-api/api-reference/quote): Get swap quote- [Approve Transaction](/trading-api/api-reference/approve-transaction): Token approval## Transaction API- [Introduction](/transaction-api/introduction): Transaction broadcasting- [Broadcast](/transaction-api/api-reference/broadcast-transactions): Submit signed tx
llms-full.txt (Full Content)
The full file includes the complete markdown content of every documentation page, separated by
headers. This is useful for loading the entire documentation into an LLM's context window.
Usage Examples
Feed into any LLM
Code
# Download and use as contextcurl -s https://web3.binance.com/en/dev-docs/llms.txt# Full documentation for comprehensive contextcurl -s https://web3.binance.com/en/dev-docs/llms-full.txt
Use with Claude
Code
Please read https://web3.binance.com/en/dev-docs/llms.txt and help meunderstand how to execute a token swap using the Binance Web3 Trading API.
Use in a Python script
Code
import requests# Fetch the documentation indexresponse = requests.get("https://web3.binance.com/en/dev-docs/llms.txt")docs_index = response.text# Feed into your LLM as contextmessages = [ {"role": "system", "content": f"Binance Web3 API docs:\n{docs_index}"}, {"role": "user", "content": "How do I get a swap quote?"}]
Use with LangChain
Code
from langchain_community.document_loaders import WebBaseLoaderloader = WebBaseLoader("https://web3.binance.com/en/dev-docs/llms-full.txt")docs = loader.load()
When to Use llms.txt
llms.txt â You want to quickly give an LLM awareness of all available documentation
llms-full.txt â You want to load the entire documentation set into an LLM's context window