Troubleshooting

Migrating to the modern Static Images API

If you are using a Studio classic style template or a custom classic style and need to migrate to the modern Static Images API, follow the guidance on this page. There are many benefits to migrating, including:

Studio classic style templates

If you are using a Studio Classic template style (for example, mapbox.outdoors), use the modern equivalent template style with the Mapbox Static Images API.

curl "https://api.mapbox.com/styles/v1/mapbox/outdoors-v11/static/-115.84178,37.21776,12/500x500@2x?access_token=YOUR_MAPBOX_ACCESS_TOKEN"

Custom classic styles

If you are using the Legacy Static Images API with a custom classic style that you created in Mapbox Studio Classic, you will need to create a new custom style with Mapbox Studio so you can use your custom style ID with the Mapbox Static Images API.

curl "https://api.mapbox.com/styles/v1/{account}/{custom-style-id}/static/-115.84178,37.21776,12/500x500@2x?access_token=YOUR_MAPBOX_ACCESS_TOKEN"
Was this page helpful?