Parameters

Request Parameters

Send as JSON body with Content-Type: application/json.

Core Parameters

ParameterTypeRequiredDescription
brandstringYesBrand name, stock ticker, or alias (e.g. "Starbucks", "SBUX", "McDonalds")
countrystringNoISO 3166-1 alpha-2 code (e.g. "US", "GB"). Default: all countries
statestringNoState/province code (e.g. "CA", "TX")
citystringNoCity name filter
postcodestringNoZip/postal code filter (e.g. "07020", "SW1A 1AA")
radius_kmnumberNoRadius in km from city center. Requires city to be set
formatstringNo"json" | "csv" | "geojson" | "png" | "jpeg". Default: "json"
💡

The brand parameter accepts brand names, stock tickers (e.g. SBUX, MCD, WMT), and common name variations (e.g. McDonalds, HomeDepot). See Available Brands for the full alias list.

Format options

FormatContent-TypeDescription
jsonapplication/jsonStructured location data (default)
csvtext/csvComma-separated values with auto-download header
geojsonapplication/geo+jsonRFC 7946 GeoJSON FeatureCollection
pngimage/pngRendered map image
jpegimage/jpegRendered map image (smaller file size)

Map Rendering Parameters

These parameters only apply when format is "png" or "jpeg".

ParameterTypeRequiredDescription
widthnumberNoImage width in pixels. Default: 1200, max: 4096
heightnumberNoImage height in pixels. Default: 800, max: 4096
stylestringNoMap theme. Default: "light"
marker_colorstringNoHex color for markers (e.g. "#FF0000"). Default: "#FF0000"
include_legendbooleanNoShow brand name + count overlay. Default: false
heatmapbooleanNoRender a density heatmap instead of pin markers. Default: false

Available map styles

StyleDescription
lightClean, warm. Default.
darkDark background
voyagerDetailed, CartoDB Voyager
pitchbookFinance-style blues and grays
slateMuted, neutral
warmEarthy tones

Viewport Control

Control the map's zoom level, center point, or visible area. All optional — when omitted, the map auto-fits to show all returned locations.

ParameterTypeRequiredDescription
zoomnumberNoFixed zoom level (0–20). Use with center.
center[lat, lng]NoMap center point. Use with zoom. Example: [40.7, -74.0]
bounds[[sw_lat, sw_lng], [ne_lat, ne_lng]]NoExplicit bounding box. Example: [[24, -125], [50, -66]] for continental US
paddingnumberNoPixels of padding inside bounds. Default: 40, max: 200

Priority: center + zoom overrides bounds, which overrides auto-fit.

// Auto-fit (default) — zoom to show all locations
{"brand": "Starbucks", "format": "png"}
 
// Full US view
{"brand": "Starbucks", "format": "png", "bounds": [[24, -125], [50, -66]]}
 
// Zoom into NYC
{"brand": "Starbucks", "format": "png", "center": [40.7, -74.0], "zoom": 11}

Focus Mode Parameters

Focus Mode isolates a single country on the rendered map. See the dedicated Focus Mode page for details.

ParameterTypeRequiredDescription
focus_countrystringNoISO alpha-2 code. Masks everything outside this country
focus_regionstringNo"conus" | "alaska" | "hawaii". US only. Requires focus_country="US"
show_neighborsbooleanNoShow faint gray neighboring countries. Default: true