Mapbox

Mapbox powers navigation for people, packages, and vehicles everywhere.

Go to site
Explore
/
Apps
/
Mapbox

Mapbox API Integrations

Build and run workflows using the Mapbox API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

Mapbox is a powerful mapping platform that enables developers to create interactive maps for a variety of purposes. Here are some examples of what you can build with the Mapbox API:

  • A web map with zoom and pan controls
  • A map with markers and popups
  • A map with geolocation
  • A heatmap
  • A choropleth map
  • A map with custom tiles
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mapbox: {
      type: "app",
      app: "mapbox",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.mapbox.com/directions/v5/mapbox/driving/41.41338%2C2.27403%3B41.40338%2C2.17403`,
      params: {
        access_token: `${this.mapbox.$auth.access_token}`,
        alternatives: `true`,
        geometries: `geojson`,
        language: `en`,
        overview: `simplified`,
        steps: `true`,
      },
    })
  },
})

Authentication

Mapbox uses API keys for authentication. When you connect your Mapbox account, Pipedream securely stores the keys so you can easily authenticate to Mapbox APIs in both code and no-code steps.

Generate and copy your Access Toke from your Mapbox dashboard.