Using with AI

Using with AI

Use this page to give Claude Code, Codex or another coding assistant what it needs to write code against the API. We publish three files, and every example in these docs has a tab with a prompt for an assistant.

1. Know the three files

We publish these files as plain text next to the documentation.

File What it is
llms.txt An index of the documentation: a title, a one-line summary and a link to each page.
llms-full.txt Every page in one file, with the code examples for all four languages.
AGENTS.md Short instructions for coding agents: base URL, authentication, paging, abilities and the rules for live data.

They are at:

Code
https://odds-feed.on-forge.com/docs/llms.txt
https://odds-feed.on-forge.com/docs/llms-full.txt
https://odds-feed.on-forge.com/docs/AGENTS.md

Every page is also available as Markdown at /docs/{page}.md, and the Copy page for AI button on a page copies it.

2. Point your assistant at them

Most assistants can read a URL. Give it llms.txt to let it pick pages, or llms-full.txt when it should read everything. To keep the rules in a project, save AGENTS.md in the root of your repository, where coding agents look for it.

Code
curl -o AGENTS.md https://odds-feed.on-forge.com/docs/AGENTS.md

3. Use the Claude Code / Codex tab

The last tab of every example is a prompt for that step. It names the request, links the page and the full documentation, and tells the assistant to read the key from an environment variable. Copy it into Claude Code or Codex.

4. Paste a starting prompt

Use this prompt as a starting point. Replace the values in brackets.

Code
You are writing code against the OddsYorkie API.

Read https://odds-feed.on-forge.com/docs/llms-full.txt before you write any code.

Rules:
- The base URL is https://odds-feed.on-forge.com/api/v2.
- Authenticate with the header "Authorization: Bearer <key>". Read the key from the ODDSYORKIE_KEY environment variable. Never put it in code.
- Page lists with the cursor in meta.next_cursor until meta.has_more is false.
- Prices are objects with decimal and fractional. A null price is suspended or not offered. Never round a price.
- For live data use the WebSocket described in the live updates pages instead of polling.
- Handle the error codes on the error codes page. Retry a 429 after the Retry-After header.

Task: [describe what you want to build]

Reference

What AGENTS.md covers.

Section Contents
Base URL and authentication The /api/v2 base and the bearer header.
Paging Cursor and has_more.
Abilities Which ability each group of endpoints needs.
Live updates How to apply snapshot, patch, removed and refetch, and how to resume.
Prices Never round, null means suspended.
Odds Yorkie

Prices are shown as bet365 offers them. OddsYorkie supplies data only and does not take bets. 18+ only. BeGambleAware.org