Integrate code churn analysis into your workflow. GraphQL and REST APIs, webhooks, and SDKs for your favorite languages.
Flexible queries with our GraphQL endpoint. Get exactly the data you need.
🔗Classic REST endpoints for simple integrations. Full OpenAPI spec available.
🔔Real-time notifications when analyses complete or hotspots are detected.
📦Official SDKs for JavaScript, Python, Go, and more languages.
🔐API keys with granular permissions. OAuth2 for user-facing integrations.
⚡Generous limits with clear headers. Request increases when needed.
query GetHotspots {
hotspots(repositoryId: "repo_123", limit: 5) {
filePath
metrics {
churnScore
changeCount
uniqueAuthors
}
trend
}
}curl -X GET \
"https://api.diffscan.dev/v2/repos/repo_123/hotspots?limit=5" \
-H "Authorization: Bearer ds_your_api_key" \
-H "Accept: application/json"All systems operational