Skip to content
mango

Developers

The Mango website answers programs as well as people: a JSON API described in OpenAPI, an MCP server for AI agents, and every page as Markdown. All of it is public and read-only: no keys to request, nothing to sign in to.

Quick start

Each interface serves the website's published content, in Serbian (sr, the default) or English (en). Try them from a terminal:

# The insurers whose offers Mango reads
curl https://mango-presentation.vercel.app/api/v1/insurers

# The latest news, in English
curl "https://mango-presentation.vercel.app/api/v1/news?language=en&limit=3"

# Any page as Markdown
curl -H "Accept: text/markdown" https://mango-presentation.vercel.app/en/for-brokers

# The MCP server's tools
curl https://mango-presentation.vercel.app/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

JSON API

The base address is /api/v1, and every answer is JSON. The OpenAPI 3.1 description has a schema for every answer and error: import it into Postman or Insomnia, generate a client, or hand it to a language model as tools.

EndpointParametersReturns
GET /api/v1noneThis API's endpoints and where it is described
GET /api/v1/pageslanguageEvery page of the site, with its address and a short description
GET /api/v1/pagepath (required)One page's content as Markdown
GET /api/v1/insurersnoneThe insurers, and which of them Mango reads offers from by itself
GET /api/v1/newslimit, languageThe latest news, newest first
GET /api/v1/contactlanguageContact details and the demo form's address

Parameters go in the query string, e.g. ?language=en&limit=3. Answers carry an ETag: send it back in If-None-Match and an unchanged answer comes back as 304 Not Modified.

MCP server for AI agents

/mcp speaks the Model Context Protocol over Streamable HTTP: read-only, no sign-in. Add it to an MCP client (Claude, ChatGPT, Cursor, VS Code) as a remote server; its Server Card describes it to clients that haven't connected yet. The tools are the API's operations:

  • list_pages: Every page of the site, with its address and a short description
  • get_page: One page's content as Markdown
  • list_insurers: The insurers, and which of them Mango reads offers from by itself
  • list_news: The latest news, newest first
  • get_contact_info: Contact details and the demo form's address

Browsers that support WebMCP get the same tools on every page of the site.

Markdown and discovery

Every address on the site also answers in Markdown when asked for it with Accept: text/markdown, without the menus and animations. An address that doesn't exist answers 404 with a short note on where to go. The rest is here:

Errors

Errors come as application/problem+json (RFC 9457), with a stable code for programs to act on and a resolution that says how to fix the request:

{
  "type": "https://mango-presentation.vercel.app/en/developers#error-page-not-found",
  "title": "Page not found",
  "status": 404,
  "detail": "No page at \"/en/nothing-here\". Use list_pages to see the pages there are.",
  "instance": "/api/v1/page?path=/en/nothing-here",
  "code": "page_not_found",
  "resolution": "List the pages with https://mango-presentation.vercel.app/api/v1/pages, or see https://mango-presentation.vercel.app/sitemap.xml."
}
CodeStatusWhen
invalid_parameter400A parameter is missing, repeated or has a value the endpoint doesn't accept.
page_not_found404/api/v1/page was asked for an address where the site has no page.
not_found404The address isn't one of this API's endpoints.
method_not_allowed405Anything but GET (or HEAD, OPTIONS): the API is read-only.
internal_error500The content could not be read just now. Try again shortly.

Access and use

  • No keys, no sign-in and no separate sandbox: every interface only reads what the website publishes, so you can try anything against it.
  • API answers may be cached for five minutes (Cache-Control).
  • The content may be shown in search results and quoted in AI answers, but not used to train models (Content-Signal in robots.txt).
  • Nothing can be booked or sent through these interfaces. To reach Mango, use the demo form or the details from /api/v1/contact.
  • The insurers in the site's illustrations (Hrast, Lipa, Breza, Javor, Jasen) are invented; /api/v1/insurers names the real ones.