Manage your API credentials by going to Profile > API
Store your access credentials in a secret key
Provide your API key in your request header to authenticate
Choose from over 300 global datasets to use
You will only be able to download datasets after accepting terms
Use our REST endpoint or the MDC python library to get started
Create API credentials
# Test code for connecting to Mozilla Data Collective API
from datacollective import save_dataset_to_disk
from datacollective import load_dataset
# Download a dataset to your computer
dataset_path = save_dataset_to_disk("your-dataset-id")
# Or load it directly in a Pandas DataFrame
# (if supported)
dataset = load_dataset("your-dataset-id")