Skip to main content

xyzservices - Source of XYZ tiles providers

xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles. The repository is provided via Python API and as a compressed JSON file.

XYZ tiles can be used as background for your maps to provide necessary spatial context. xyzservices offer specifications of many tile services and provide an easy-to-use tools to plug them into your work, no matter if interactive or static.

Tests codecov PyPi

Quick Start

Using xyzservices is simple and in most cases does not involve more than a line of code.

Installation

You can install xyzservices from conda or pip:

conda install xyzservices -c conda-forge
pip install xyzservices

The package does not depend on any other apart from those built-in in Python.

Providers API

The key part of xyzservices are providers:

>>> import xyzservices.providers as xyz

xyzservices.providers or just xyz for short is a Bunch of providers, an enhanced dict. If you are in Jupyter-like environment, xyz will offer collapsible inventory of available XYZ tile sources. You can also explore it as a standard dict using xyz.keys(). Once you have picked your provider, you get its details as a TileProvider object with all the details you may need:

>>> xyz.OpenStreetMap.Mapnik.url
'https://tile.openstreetmap.org/{z}/{x}/{y}.png'

>>> xyz.OpenStreetMap.Mapnik.attribution
'(C) OpenStreetMap contributors'

You can also check if the TileProvider needs API token and pass it to the object if needed.

>>> xyz.MapBox.requires_token()
True

>>> xyz.MapBox["accessToken"] = "my_personal_token"
>>> xyz.MapBox.requires_token()
False

Providers JSON

After the installation, you will find the JSON used as a database of providers in share/xyzservices/providers.json if you want to use it outside of a Python ecosystem.

Contributors

xyzservices is developed by a community of enthusiastic volunteers and lives under geopandas GitHub organization. You can see a full list of contributors here.

The main group of providers is retrieved from the leaflet-providers project that contains both openly accessible providers as well as those requiring registration. All of them are considered free.

If you would like to contribute to the project, have a look at the list of open issues, particularly those labeled as good first issue.

License

BSD 3-Clause License

Resources coming from the leaflet-providers project are licensed under BSD 2-Clause License (© 2013 Leaflet Providers)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xyzservices-2026.9.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xyzservices-2026.9.0-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

Details for the file xyzservices-2026.9.0.tar.gz.

File metadata

  • Download URL: xyzservices-2026.9.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xyzservices-2026.9.0.tar.gz
Algorithm Hash digest
SHA256 8aa46be0097451d187858e5e4ab64fdeaa854c7d730e5c929d82df4cf45eae1c
MD5 4b4433d476e66f7916009ac95c0b5c87
BLAKE2b-256 34a450b321c409602f4a3a7349b8570c98cc98c8645cb36f5d47e078ea3f064e

See more details on using hashes here.

File details

Details for the file xyzservices-2026.9.0-py3-none-any.whl.

File metadata

  • Download URL: xyzservices-2026.9.0-py3-none-any.whl
  • Upload date:
  • Size: 98.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xyzservices-2026.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0be6b40b7cc188187b8d5c6d8e560eacc9cb380e01270abf5b0ae04dad839a2d
MD5 8fb8475399696d7ccb38960fa0bd4d84
BLAKE2b-256 5cb6d6e005175ccf1cbf5903fb3d0a5e4e0762b57043790347d2885c42df4bc7

See more details on using hashes here.

Release history Release notifications | RSS feed

2026.9.1

2 files

This release

2026.9.0 This release

2 files

2026.3.0

2 files

2025.11.0

2 files

2025.10.0

2 files

2025.4.0

2 files

2025.1.0

2 files

2024.9.0

2 files

2024.6.0

2 files

2024.4.0

2 files

2023.10.1

2 files

2023.10.0

2 files

2023.7.0

2 files

2023.5.0

2 files

2023.2.0

2 files

2022.9.0

2 files

2022.6.0

2 files

2022.4.0

2 files

2022.3.0

2 files

2022.2.0

2 files

2022.1.1

2 files

2022.1.0

2 files

2021.11.0

2 files

2021.10.0

2 files

2021.9.1

2 files

2021.9.0

2 files

2021.8.1

2 files

2021.8.0

2 files

2021.7.2

2 files

2021.7.1

2 files

2021.7

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page