Harness community-driven datasets with our API
The Mozilla Data Collective API gives developers access to community-created datasets while empowering contributors to maintain control over their data.
Mozilla Data Collective API at a glance
Create access credentials
Manage your API credentials by going to Profile > API
Secure your key
Store your access credentials in a secret key
Authentication
Provide your API key in your request header to authenticate
Select your dataset
Choose from over 1000 global datasets to use
Agree to dataset terms
You will only be able to download datasets after accepting terms
Download
Use our REST endpoint or the MDC python library to get started
Create API credentials
API Overview
Power your projects with diverse, ethically-created datasets that are just one REST call away.
# Test code for connecting to Mozilla Data Collective API
from datacollective import download_dataset
from datacollective import load_dataset
# Download a dataset to your computer
dataset_path = download_dataset("your-dataset-id")
# Or load it directly in a Pandas DataFrame
# (if supported)
dataset = load_dataset("your-dataset-id")Give it a try
Get up and running with datacollective-python, a Python library for authenticating and interacting with the MDC API.
Bring MDC to your AI assistant
The Mozilla Data Collective also speaks the Model Context Protocol, so AI assistants such as Claude, ChatGPT and Cursor can search the catalog directly from your conversation.
{
"mcpServers": {
"mozilla-data-collective": {
"url": "https://mozilladatacollective.com/api/mcp"
}
}
}