Geoapify Map Marker API
Render customizable map marker images.
Operations 2
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Render customizable map marker images.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/geoapify:geoapify-map-marker-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Geoapify Map Marker API
version: 2.2.0
description: Generate customizable PNG map marker images with a background shape, icon or text content, colors, and resolution scaling, and read their layout from response headers.
contact:
name: Geoapify
url: https://geoapify.com
email: info@geoapify.com
servers:
- url: https://api.geoapify.com/v2
description: Default API endpoint.
- url: https://api-eu.geoapify.com/v2
description: EU-focused endpoint. Geoapify service processing uses EU infrastructure.
security:
- ApiKeyInQuery: []
- ApiKeyInHeader: []
tags:
- name: Map Marker
description: Render customizable map marker images.
paths:
/icon:
get:
tags:
- Map Marker
operationId: getMapMarker
summary: Generate a PNG map marker
description: 'Generates a customizable PNG marker. The response headers describe the marker layout and its Static Maps equivalent; send a `HEAD` request with the same parameters to get only the headers.
- Background: `type`
- Content: `icon` + `iconType`, or `text`
- Sizing: `contentSize` and `size`
- Style: colors, `shadowType`, `strokeWidth`
**Example:** `type=material`, `iconType=material`, `icon=favorite`, `contentSize=20`, `color=#ff5050`, `noWhiteCircle=true`, `noShadow=true`
**Placing the marker:** the `Icon-*` headers give the displayed size (`width`, `height`) and anchor (`anchorX`, `anchorY`) in CSS pixels for any `scaleFactor`. Display the PNG at that size, then:
- Leaflet: `L.icon({ iconUrl, iconSize: [width, height], iconAnchor: [anchorX, anchorY] })`
- MapLibre GL / Mapbox GL: `new Marker({ element, anchor: ''top-left'', offset: [-anchorX, -anchorY] })` with the element sized to width × height
- Google Maps: `{ url, scaledSize: new google.maps.Size(width, height), anchor: new google.maps.Point(anchorX, anchorY) }`
**Icons:** Material Icons · Font Awesome 6 Free · Lucide · Tabler Icons · Phosphor Icons · Material Design Icons · Material Symbols
**Docs:** Marker Icon API documentation
> Follow the selected icon library''s license and attribution requirements.'
parameters:
- name: type
in: query
required: false
description: Marker background shape. `material` uses a Material-style pin, `awesome` uses a Font Awesome-style pin, `circle` uses a circular background, and `plain` renders only the icon or text without a background shape. `tabler`, `phosphor`, `lucide`, `material-symbols`, and `material-symbols-rounded` use the map-pin shape of the corresponding icon library.
schema:
type: string
enum:
- material
- awesome
- circle
- plain
- tabler
- phosphor
- lucide
- material-symbols
- material-symbols-rounded
default: material
example: material
- name: iconType
in: query
required: false
description: 'Icon library used to resolve the `icon` name. When omitted, the default depends on the marker `type`: `material` for material, circle, and plain markers, `awesome` for awesome markers, and the library of the same name for tabler, phosphor, lucide, material-symbols, and material-symbols-rounded markers. `mdi` is Material Design Icons; `material-symbols` and `material-symbols-rounded` are the Outlined and Rounded styles of Material Symbols.
**Icons:** [Material Icons](https://fonts.google.com/icons) · [Font Awesome 6 Free](https://fontawesome.com/v6/search?m=free&o=r) · [Lucide](https://lucide.dev/icons/) · [Tabler Icons](https://tabler.io/icons) · [Phosphor Icons](https://phosphoricons.com/) · [Material Design Icons](https://pictogrammers.com/library/mdi/) · [Material Symbols](https://fonts.google.com/icons?icon.set=Material+Symbols)'
schema:
type: string
enum:
- material
- awesome
- lucide
- tabler
- phosphor
- mdi
- material-symbols
- material-symbols-rounded
example: material
- name: icon
in: query
required: false
description: 'Icon name from the library selected by `iconType`. When `text` is also provided, text is rendered instead of the icon.
**Icons:** [Material Icons](https://fonts.google.com/icons) · [Font Awesome 6 Free](https://fontawesome.com/v6/search?m=free&o=r) · [Lucide](https://lucide.dev/icons/) · [Tabler Icons](https://tabler.io/icons) · [Phosphor Icons](https://phosphoricons.com/) · [Material Design Icons](https://pictogrammers.com/library/mdi/) · [Material Symbols](https://fonts.google.com/icons?icon.set=Material+Symbols)'
schema:
type: string
pattern: ^[\w-]{1,100}$
minLength: 1
maxLength: 100
example: favorite
- name: text
in: query
required: false
description: Text rendered inside the marker instead of an icon. When both `text` and `icon` are provided, `text` takes precedence.
schema:
type: string
maxLength: 100
- name: size
in: query
required: false
description: Intended marker image height in CSS pixels. Use `scaleFactor` to increase output resolution without changing the intended display size.
schema:
type: number
exclusiveMinimum: 0
example: 48
- name: contentSize
in: query
required: false
description: Height of the icon or text content in CSS pixels. When omitted, a fixed default content size is used that does not grow with the marker size; set contentSize together with size for larger markers.
schema:
type: number
exclusiveMinimum: 0
example: 20
- name: scaleFactor
in: query
required: false
description: Output pixel-density multiplier from 0.5 to 10. For example, use `2` for a double-resolution image and display it at its logical `size` for sharper rendering.
schema:
type: number
minimum: 0.5
maximum: 10
example: 2
- name: shadowType
in: query
required: false
description: Marker shadow style. `ellipse` is the default ground shadow; `ellipse-dark` and `ellipse-soft` are darker and softer variants; `floating` is a detached ground shadow that makes the marker look lifted; `drop` is a blurred drop shadow under the whole shape; `glow` is a blurred halo around the shape. Ignored when `noShadow=true` or `type=plain`. `circle` markers have no shadow by default; set `shadowType` to add one.
schema:
type: string
enum:
- ellipse
- ellipse-dark
- ellipse-soft
- floating
- drop
- glow
default: ellipse
example: drop
- name: strokeWidth
in: query
required: false
description: Width of the opaque marker outline in CSS pixels, drawn with `strokeColor`. The outline is drawn outside the shape and the marker shrinks so that the image keeps its `size`. Must be at most `size / 6`. When omitted, the default thin semi-transparent outline is used. Ignored when `type=plain`.
schema:
type: number
minimum: 0
maximum: 10
example: 2
- name: color
in: query
required: false
description: Marker background color. Ignored when `type=plain`.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#ff5050'
- name: strokeColor
in: query
required: false
description: Marker background-shape outline color. Ignored when `type=plain`. Use `strokeWidth` to set the outline width.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#ffffff'
- name: shadowColor
in: query
required: false
description: Marker shadow color. Ignored when `noShadow=true`.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#000000'
- name: contentColor
in: query
required: false
description: Color of the icon or text rendered inside the marker.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#ffffff'
- name: noWhiteCircle
in: query
required: false
description: Set to `true` to remove the white circle behind marker content.
schema:
type: boolean
enum:
- true
example: true
- name: noShadow
in: query
required: false
description: Set to `true` to remove the marker shadow.
schema:
type: boolean
enum:
- true
example: true
responses:
'200':
description: PNG marker image. The `Icon-*` headers describe its layout.
headers:
Icon-Width:
description: 'Displayed marker width in CSS pixels, including shadow: the PNG width divided by `scaleFactor`. Can be fractional.'
schema:
type: number
exclusiveMinimum: 0
example: 30
Icon-Height:
description: 'Displayed marker height in CSS pixels, including shadow: the PNG height divided by `scaleFactor`. Can be fractional.'
schema:
type: number
exclusiveMinimum: 0
example: 45.5
Icon-Anchor-X:
description: Horizontal position of the point that touches the map location, from the left edge of the displayed marker, in CSS pixels.
schema:
type: number
minimum: 0
example: 15
Icon-Anchor-Y:
description: Vertical position of the point that touches the map location, from the top edge of the displayed marker, in CSS pixels.
schema:
type: number
minimum: 0
example: 40.5
Icon-Marker-Style:
description: Coordinate-free Static Maps marker options with non-ASCII characters percent-encoded. Prefix with `lonlat:<longitude>,<latitude>;` to use in a Static Maps `marker` parameter. Omitted when the marker has a color, text, or size that Static Maps cannot represent exactly.
schema:
type: string
example: type:material;size:42;icontype:material;icon:home
content:
image/png:
schema:
type: string
format: binary
'400':
description: Invalid marker parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 400
error: Bad Request
message: size should be a positive number
'401':
description: Missing or invalid Geoapify API key.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 401
error: Unauthorized
message: Invalid apiKey
'429':
description: Rate limit or quota exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 429
error: Too Many Requests
message: Quota exceeded
'500':
description: Internal gateway error.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 500
error: Internal Server Error
message: Request failed, please try again later
head:
tags:
- Map Marker
operationId: getMapMarkerLayout
summary: Get map marker layout headers
description: Returns the same `Icon-*` headers as `GET /icon` without the PNG body. Use it to size and anchor a marker before displaying it.
parameters:
- name: type
in: query
required: false
description: Marker background shape. `material` uses a Material-style pin, `awesome` uses a Font Awesome-style pin, `circle` uses a circular background, and `plain` renders only the icon or text without a background shape. `tabler`, `phosphor`, `lucide`, `material-symbols`, and `material-symbols-rounded` use the map-pin shape of the corresponding icon library.
schema:
type: string
enum:
- material
- awesome
- circle
- plain
- tabler
- phosphor
- lucide
- material-symbols
- material-symbols-rounded
default: material
example: material
- name: iconType
in: query
required: false
description: 'Icon library used to resolve the `icon` name. When omitted, the default depends on the marker `type`: `material` for material, circle, and plain markers, `awesome` for awesome markers, and the library of the same name for tabler, phosphor, lucide, material-symbols, and material-symbols-rounded markers. `mdi` is Material Design Icons; `material-symbols` and `material-symbols-rounded` are the Outlined and Rounded styles of Material Symbols.
**Icons:** [Material Icons](https://fonts.google.com/icons) · [Font Awesome 6 Free](https://fontawesome.com/v6/search?m=free&o=r) · [Lucide](https://lucide.dev/icons/) · [Tabler Icons](https://tabler.io/icons) · [Phosphor Icons](https://phosphoricons.com/) · [Material Design Icons](https://pictogrammers.com/library/mdi/) · [Material Symbols](https://fonts.google.com/icons?icon.set=Material+Symbols)'
schema:
type: string
enum:
- material
- awesome
- lucide
- tabler
- phosphor
- mdi
- material-symbols
- material-symbols-rounded
example: material
- name: icon
in: query
required: false
description: 'Icon name from the library selected by `iconType`. When `text` is also provided, text is rendered instead of the icon.
**Icons:** [Material Icons](https://fonts.google.com/icons) · [Font Awesome 6 Free](https://fontawesome.com/v6/search?m=free&o=r) · [Lucide](https://lucide.dev/icons/) · [Tabler Icons](https://tabler.io/icons) · [Phosphor Icons](https://phosphoricons.com/) · [Material Design Icons](https://pictogrammers.com/library/mdi/) · [Material Symbols](https://fonts.google.com/icons?icon.set=Material+Symbols)'
schema:
type: string
pattern: ^[\w-]{1,100}$
minLength: 1
maxLength: 100
example: favorite
- name: text
in: query
required: false
description: Text rendered inside the marker instead of an icon. When both `text` and `icon` are provided, `text` takes precedence.
schema:
type: string
maxLength: 100
- name: size
in: query
required: false
description: Intended marker image height in CSS pixels. Use `scaleFactor` to increase output resolution without changing the intended display size.
schema:
type: number
exclusiveMinimum: 0
example: 48
- name: contentSize
in: query
required: false
description: Height of the icon or text content in CSS pixels. When omitted, a fixed default content size is used that does not grow with the marker size; set contentSize together with size for larger markers.
schema:
type: number
exclusiveMinimum: 0
example: 20
- name: scaleFactor
in: query
required: false
description: Output pixel-density multiplier from 0.5 to 10. For example, use `2` for a double-resolution image and display it at its logical `size` for sharper rendering.
schema:
type: number
minimum: 0.5
maximum: 10
example: 2
- name: shadowType
in: query
required: false
description: Marker shadow style. `ellipse` is the default ground shadow; `ellipse-dark` and `ellipse-soft` are darker and softer variants; `floating` is a detached ground shadow that makes the marker look lifted; `drop` is a blurred drop shadow under the whole shape; `glow` is a blurred halo around the shape. Ignored when `noShadow=true` or `type=plain`. `circle` markers have no shadow by default; set `shadowType` to add one.
schema:
type: string
enum:
- ellipse
- ellipse-dark
- ellipse-soft
- floating
- drop
- glow
default: ellipse
example: drop
- name: strokeWidth
in: query
required: false
description: Width of the opaque marker outline in CSS pixels, drawn with `strokeColor`. The outline is drawn outside the shape and the marker shrinks so that the image keeps its `size`. Must be at most `size / 6`. When omitted, the default thin semi-transparent outline is used. Ignored when `type=plain`.
schema:
type: number
minimum: 0
maximum: 10
example: 2
- name: color
in: query
required: false
description: Marker background color. Ignored when `type=plain`.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#ff5050'
- name: strokeColor
in: query
required: false
description: Marker background-shape outline color. Ignored when `type=plain`. Use `strokeWidth` to set the outline width.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#ffffff'
- name: shadowColor
in: query
required: false
description: Marker shadow color. Ignored when `noShadow=true`.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#000000'
- name: contentColor
in: query
required: false
description: Color of the icon or text rendered inside the marker.
schema:
$ref: '#/components/schemas/ColorValue'
example: '#ffffff'
- name: noWhiteCircle
in: query
required: false
description: Set to `true` to remove the white circle behind marker content.
schema:
type: boolean
enum:
- true
example: true
- name: noShadow
in: query
required: false
description: Set to `true` to remove the marker shadow.
schema:
type: boolean
enum:
- true
example: true
responses:
'200':
description: Marker layout headers without the image body.
headers:
Icon-Width:
description: 'Displayed marker width in CSS pixels, including shadow: the PNG width divided by `scaleFactor`. Can be fractional.'
schema:
type: number
exclusiveMinimum: 0
example: 30
Icon-Height:
description: 'Displayed marker height in CSS pixels, including shadow: the PNG height divided by `scaleFactor`. Can be fractional.'
schema:
type: number
exclusiveMinimum: 0
example: 45.5
Icon-Anchor-X:
description: Horizontal position of the point that touches the map location, from the left edge of the displayed marker, in CSS pixels.
schema:
type: number
minimum: 0
example: 15
Icon-Anchor-Y:
description: Vertical position of the point that touches the map location, from the top edge of the displayed marker, in CSS pixels.
schema:
type: number
minimum: 0
example: 40.5
Icon-Marker-Style:
description: Coordinate-free Static Maps marker options with non-ASCII characters percent-encoded. Prefix with `lonlat:<longitude>,<latitude>;` to use in a Static Maps `marker` parameter. Omitted when the marker has a color, text, or size that Static Maps cannot represent exactly.
schema:
type: string
example: type:material;size:42;icontype:material;icon:home
'400':
description: Invalid marker parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 400
error: Bad Request
message: size should be a positive number
'401':
description: Missing or invalid Geoapify API key.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 401
error: Unauthorized
message: Invalid apiKey
'429':
description: Rate limit or quota exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 429
error: Too Many Requests
message: Quota exceeded
'500':
description: Internal gateway error.
content:
application/json:
schema:
$ref: '#/components/schemas/GatewayError'
example:
statusCode: 500
error: Internal Server Error
message: Request failed, please try again later
components:
schemas:
ColorValue:
type: string
maxLength: 100
description: CSS-like color value. Hex, named colors, `rgb()`, and `rgba()` are accepted. HTTP clients must URL-encode reserved characters such as `#`; OpenAPI clients such as Swagger UI do this automatically.
pattern: ^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,32}|rgba?\([^)]{1,64}\))$
examples:
- '#ff5050'
- red
- rgb(255,80,80)
- rgba(255,80,80,0.8)
GatewayError:
type: object
required:
- statusCode
- error
- message
properties:
statusCode:
type: integer
description: HTTP status code returned by the gateway.
error:
type: string
description: Standard HTTP error name.
message:
type: string
description: Human-readable explanation of the error.
securitySchemes:
ApiKeyInQuery:
type: apiKey
in: query
name: apiKey
description: Geoapify API key query parameter. Recommended authentication method for public APIs. API keys in URLs can be logged; use x-api-key for server-to-server clients.
ApiKeyInHeader:
type: apiKey
in: header
name: x-api-key
description: Geoapify API key header. Supported as an alternative authentication method for public APIs.
x-provenance:
method: harvested
publisher: Geoapify
source: https://apidocs.geoapify.com/assets/openapi/specs/map-marker/map-marker-api-openapi-specs.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)