Query legacy Datadog timeseries metric data with the Metrics API v1 query endpoint

domain: docs.datadoghq.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call GET /api/v1/query with from and to as Unix epoch seconds and a query string in Datadog's metric query syntax.
  2. Authenticate with the DD-API-KEY header.
  3. Use the regional API host that matches your Datadog site (e.g. api.datadoghq.com, api.datadoghq.eu, api.us3.datadoghq.com), since metric data doesn't cross site boundaries.
  4. Read the returned series' pointlist for the timestamp/value pairs Datadog computed for the requested window.
  5. Combine with GET /api/v1/metrics/{metric_name} to check a metric's metadata (unit, type, description) alongside its queried values.

Known gotchas

Related routes

Query timeseries or scalar data across multiple Datadog products via the v2 query API
docs.datadoghq.com · 5 steps · unrated
Submit custom metrics to the Datadog API from an application
docs.datadoghq.com · 5 steps · unrated
Configure a MetricFlow time spine in YAML (dbt v1.9+ format) to support time-series metric queries
docs.getdbt.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans