API & MCP

Everything a person can do on Cartograph Flag Finder (find a flag by its colours and layout), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Cartograph Flag Finder (find a flag by its colours and layout)

Finds the flags of 197 countries by their colours (red, dark red, orange, yellow, green, blue, light blue, white, black), their layout (horizontal, vertical or diagonal stripes, cross, saltire, canton, hoist triangle, border) and their symbols (disc, star, crescent, sun, coat of arms, writing, map, Union Jack, animal, plant, weapon), optionally with the number of stripes and a region. Every flag gets a score from 0 to 100; the best matches are shown with their flags. It is the flag-finder engine of the Cartograph app.

Inputs of Cartograph Flag Finder (find a flag by its colours and layout)
FieldTypeDefaultDescription
coloursmultiselect (red, maroon, orange, yellow, green, blue, lightblue, white, black)["red","white","blue"]Colours in the flag
featuresmultiselect (hstripes, vstripes, diagonal, cross, saltire, canton, triangle, border, plain, disc, star, crescent, sun, emblem, text, map, unionjack, animal, plant, weapon)[]Layout and symbols
bandsinteger0Number of stripes (0 = any)
excludemultiselect (red, maroon, orange, yellow, green, blue, lightblue, white, black)[]Colours that are NOT in the flag
regionselect (world, africa, asia, europe, north-america, south-america, oceania)"world"Region
onlyColoursbooleanfalseOnly these colours (penalise flags with more colours)
limitinteger12Results

Example request

Red, white and blue in three vertical stripes

curl -X POST https://cartographflagfinder.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"colours":["red","white","blue"],"features":["vstripes"],"bands":3}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "cartograph-flag-finder": { "type": "http", "url": "https://cartographflagfinder.usefulweb.site/mcp" }
  }
}