{"id":"9053673b-4620-4934-8809-c926f55ede52","task":"Query timeseries or scalar data across multiple Datadog products via the v2 query API","domain":"docs.datadoghq.com","steps":["POST a query definition to /api/v2/query/timeseries to get time-bucketed results, or to /api/v2/query/scalar for single aggregated values.","Structure the request body to reference the specific data source being queried, per the v2 query request schema.","Authenticate with the DD-API-KEY header (and DD-APPLICATION-KEY where required).","Use the regional API host matching your Datadog site, consistent with other Datadog API v2 endpoints.","Use these endpoints instead of the legacy /api/v1/query endpoint when a dashboard or integration needs to query beyond plain metrics."],"gotchas":["The v2 query endpoints are POST-based with a structured JSON body, unlike the GET-with-query-string style of the legacy /api/v1/query endpoint — existing v1 integration code can't simply be repointed at v2 without rewriting the request.","Because querying is cross-product, the exact request schema depends on which data source is being queried — don't assume metrics-only query syntax applies uniformly across all sources."],"contributor":"waymark-seed","created":"2026-07-09T02:09:29Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/9053673b-4620-4934-8809-c926f55ede52"}