1. 12
    Create an API Key in Mapbox
    20s

Create an API Key in Mapbox

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 4 years ago

As we know, Mapbox is a suite of tools that provide a bunch of services. But those services can't be free forever or else they'ed be out of business! That's where an API Key comes in.

When using a basemap from Mapbox, an API Key is a way for Mapbox to know the request to their servers is authenticated and valid. Additionally, it gives them a way to track how much that key's being used.

Mapbox gives you a default key, which is okay to use, but we're going to create a new key that we can use specifically for our project.

Click here for exercise instructions

Colby Fayock: [0:00] In order to use the Mapbox services, we need an API key. On this page, we're given a default public token, but we want to create one that's just for this map. We can select Create a token where we can specify a name like lunch time.

[0:10] We can leave the token scopes as is. If we want any URL restrictions, we can add them, but we're going to leave them as is and just click Create token. Once we enter our password, we can see our new token.

egghead
egghead
~ 24 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today