Library for Devs
Programmatic access to explore, discover, and integrate Carbon Arc data assets into your applications and workflows.
API Reference
Available Methods
| Method | Description |
|---|---|
client.data.get_datasets() | List all available data assets (paginated) |
client.data.get_dataset_information() | Get details for a specific data asset |
client.data.get_data_dictionary() | Get column definitions and metadata |
client.data.get_data_sample() | Preview sample data rows |
client.data.get_library_version_changes() | Check for updates and changes |
Quick Start
1. Install the SDK
pip install carbonarc python-dotenv pandas
2. Initialize the Client
from carbonarc import CarbonArcClient
client = CarbonArcClient(
host="https://api.carbonarc.co",
token="YOUR_API_TOKEN"
)
3. Explore Datasets
# List all datasets
response = client.data.get_datasets()
datasets = response.get('datasources', [])
# Get info for a specific dataset
info = client.data.get_dataset_information(dataset_id="CA0056")
# Preview sample data
sample = client.data.get_data_sample(dataset_id="CA0056")
Related Resources
| Resource | Description |
|---|---|
| API Authentication | Get your API key and authenticate |
| Python SDK on PyPI | Install the official Carbon Arc package |
| Library Guide | Overview of all available data assets |
| Ontology for Devs | Explore entities and insights programmatically |
Need Help?
- Email: support@carbonarc.co
- GitHub: Carbon Arc Tutorials