Betclear API documentation

Public Betclear endpoints for developers and AI agents: the gambling domain blocklist, the MCP server, reporting a gambling site, and Markdown versions of every content page.

Base URL: https://www.betclear.app

Authentication

  • Every endpoint on this page is public: no API key, no account and no sign-in. There is no key to request. Use HTTPS.
  • Requests are rate-limited per IP address. Over the limit an endpoint answers 429 Too Many Requests with a Retry-After header in seconds.
  • Account, billing and device endpoints under /api serve only Betclear's own website and apps. They need a signed-in Betclear session (a session cookie on the web, a Bearer access token in the Authorization header in the mobile app), are not a supported public API, and can change without notice.

Endpoints

Gambling domain blocklist

GET /api/blocklist

The full list of gambling, betting, casino, lottery and poker domains Betclear blocks, in AdGuard filter syntax. A rule blocks the domain and every subdomain.

  • Authentication: none.
  • Response: text/plain; charset=utf-8, one ||domain^ rule per line, 500,000+ lines (tens of MB). Not cached (Cache-Control: no-store), so fetch it at most a few times a day.
  • Errors: 500 with a plain-text message when the list cannot be built.

Example request

curl -s https://www.betclear.app/api/blocklist | head -n 3

Example response

||0-10-7.casino^
||0-2-0-7.casino^
||0-30-7.casino^

MCP server

POST /api/mcp

A remote Model Context Protocol server (Streamable HTTP, JSON-RPC 2.0, stateless). Tools: block_gambling_sites, check_gambling_site, gambling_cost_calculator, urge_support and explain_betclear. All are read-only and return text.

  • Authentication: none. Send Accept: application/json, text/event-stream on every request.
  • Rate limit: 600 requests per minute per IP address.
  • Every tool takes an optional locale (en, uk, ca, ng, br, es, de, fr, nl, sv, no, ja). check_gambling_site takes domain; block_gambling_sites takes platform (ios, android, macos or windows); gambling_cost_calculator takes weekly_spend and optional years and currency.
  • Responses arrive as a server-sent event: the JSON-RPC result is on the data: line.

Example request

curl -s -X POST https://www.betclear.app/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_gambling_site","arguments":{"domain":"bet365.com"}}}'

Example response

event: message
data: {"result":{"content":[{"type":"text","text":"bet365.com is on the Betclear gambling blocklist. With Betclear active on a device, it can't be opened there.…"}]},"jsonrpc":"2.0","id":1}

Report a gambling site

POST /api/domain-submissions

Suggests a gambling site that is not blocked yet. Submissions are reviewed by hand before anything is added to the blocklist.

  • Authentication: none.
  • Body: JSON {"url": "<website link or domain>"}, at most 500 characters.
  • Rate limit: 5 submissions per hour per IP address.
  • Errors: JSON {"error": "...", "code": "..."}. 400 for a missing or invalid link, 409 with code already_blocked or already_pending, 429 over the limit.

Example request

curl -s -X POST https://www.betclear.app/api/domain-submissions \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example-casino.com"}'

Example response

{"submission":{"id":"5d1c8e2a-…","hostname":"example-casino.com","status":"pending","created_at":"2026-11-19T10:00:00.000Z"}}

Pages as Markdown

GET /{locale}/{page}

Every public content page (home, about, guides, blog, support, privacy, terms, this page) returns Markdown on its own URL when asked for it.

  • Authentication: none.
  • Send Accept: text/markdown. The response is text/markdown; charset=utf-8 with Vary: Accept. Browsers and */* still get HTML.
  • An unknown page answers 404 in Markdown; a client that accepts neither HTML nor Markdown gets 406.
  • Every page URL is in https://www.betclear.app/sitemap.xml, and https://www.betclear.app/llms.txt lists them for agents.

Example request

curl -s -H "Accept: text/markdown" https://www.betclear.app/en/guides

Example response

# How to stop gambling and block betting sites: free guides

…

- [How to stop gambling](https://www.betclear.app/en/guides/how-to-stop-gambling): …

More

Connecting the MCP server to ChatGPT or Claude, with an example prompt for each tool: MCP server guide. Questions, or need a higher limit? Email hello@betclear.app.