Affordable maps and geocoding API

Geocoding, places, routing, IP lookup, and free map tiles. Everything you need to put location in your app, from $0.10 per 1,000 requests.

  • 250,000 free requests
  • No credit card required

    Pick a start and a destination in Portland. The suggestions, the route, and its directions come from the Mapricot API.

    Moving from another provider?

    Each comparison maps the provider's APIs to Mapricot's, compares prices, and says when to choose either one.

    See all comparisons

    Geocoding

    Turn what people type into a point on the map, and a point on the map back into an address. Where there is no street address, you get the town, county, or country instead of nothing.

    • Address forms that fill themselves in
    • Store locators and delivery zones
    • Readable labels for a dropped pin or GPS fix
    Explore the geocoding API
    A live address search. Typing a street address suggests matching addresses, and choosing one shows the address on a map.

    Places

    Suggest places as people type, and list the cafés, stations, or shops around any point. Every result has a Mapricot ID you can save and look up again later.

    • Search boxes that suggest as you type
    • "Near me" lists filtered by category
    • Saved places that stay linked to their details
    Explore the places API
    A live list of places near Pioneer Courthouse Square, filtered by category and sorted by distance.
    Near Pioneer Courthouse Square Distance

    Routing

    Get driving, cycling, and walking routes through up to 20 stops. Each response has the distance and travel time for every leg, plus a line to draw on your map.

    • Directions and arrival estimates
    • Multi-stop trips and delivery runs
    • Prices and limits based on real travel distance
    Explore the routing API
    A live route from Pioneer Courthouse Square to Stumptown Coffee Roasters to Tom McCall Waterfront Park, by car, on foot, or by bike, with the time and distance of each leg.

      IP geolocation

      Look up the country, region, and city of a visitor's IP address, so your page is useful before they type anything. Works with IPv4 and IPv6.

      • Default country, currency, and shipping options
      • Search results focused near the visitor
      • Regional content and analytics
      Explore the IP geolocation API
      A live IP address lookup, starting with your own address, with its approximate area circled on a map.
      City
      Region
      Country

      Free map tiles

      Show an interactive map with MapLibre, then draw your search results and routes on top. Mapricot's vector tiles come in six styles, free to use, with nothing to meter.

      Explore the free map tiles
      Default San Francisco. A general-purpose map in soft colors, with points of interest.
      Light Tokyo. A pale map in white and light gray, the opposite of Dark.
      Dark New York. Default at night, for dark apps and dashboards.
      Bright Paris. A colorful street map, with yellow and orange main roads.
      Grayscale London. A gray map that keeps your own data in front.
      Outdoors Zermatt. A hiking map, with trails, cliffs, rock, and peaks with their heights.

      Plain HTTPS and JSON

      Call the API from any language with your API key, and get JSON back. Official clients for JavaScript, Python, Ruby, PHP, and Go add types and retries.

      • Save results and look them up again by their ID
      • Show each response's data credits wherever you display its results
      Make your first request
      Request
      curl "https://api.mapricot.com/geocoding/v1/search?q=128+SW+3rd+Ave,+Portland&limit=1" \
        -H "Authorization: Bearer $MAPRICOT_KEY"
      Response
      {  "attribution": [    {      "source": "openaddresses",      "text": "OpenAddresses",      "url": "https://openaddresses.io"    }  ],  "results": [    {      "id": "mp_b3BlbmFkZHJlc3NlczphZGRyZXNzOnVzL29yL3N0YXRld2lkZS1hZGRyZXNzZXMtc3RhdGU6YzFmZTc1NGZhZTk4ZTQxYw",      "type": "address",      "name": "128 SW 3rd Avenue",      "label": "128 SW 3rd Avenue, Portland, OR, USA",      "lat": 45.521789,      "lon": -122.673448,      "address": {        "houseNumber": "128",        "street": "SW 3rd Avenue",        "postalCode": "97204",        "locality": "Portland",        "region": "Oregon",        "regionCode": "OR",        "country": "United States",        "countryCode": "US"      },      "source": "openaddresses"    }  ]}

      One price for every endpoint

      Mapricot's data is open and our hosting costs are low, so we can charge what we think is a fair price. A search, a route, and an IP lookup each cost the same.

      Start with 250,000 free requests

      Sign in with your email, create an API key, and make your first request in a few minutes. No credit card required.