API Overview
Quickstart
Make your first DTPR API call in under a minute.
Quickstart
The DTPR API is a public, read-only REST API. No authentication is required. All endpoints support CORS.
Base URL
https://dtpr.io/api/dtpr/v1
Get all elements
Fetch every element in the DTPR taxonomy:
curl https://dtpr.io/api/dtpr/v1/elements
const response = await fetch('https://dtpr.io/api/dtpr/v1/elements')
const elements = await response.json()
console.log(elements)
Get elements for a datachain type
Fetch elements filtered to a specific datachain type (e.g., device or ai):
curl https://dtpr.io/api/dtpr/v1/elements/device
const response = await fetch('https://dtpr.io/api/dtpr/v1/elements/device')
const elements = await response.json()
console.log(elements)
Filter by locale
Add the ?locales= query parameter to receive only specific languages:
curl "https://dtpr.io/api/dtpr/v1/elements?locales=en"
const response = await fetch('https://dtpr.io/api/dtpr/v1/elements?locales=en,fr')
const elements = await response.json()
console.log(elements)
Get categories for a datachain type
curl https://dtpr.io/api/dtpr/v1/categories/device
Next steps
- API overview — Versioning, base URLs, and conventions
- Elements reference — Full element schema documentation
- Categories reference — Full category schema documentation
- Concepts: Taxonomy — Understand elements, categories, and datachains
- About DTPR — Learn what DTPR is and who's behind it