Datadog APM Traces API

The Traces API from Datadog APM — 1 operation(s) for traces.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/datadog-apm-traces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

datadog-apm-traces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Datadog APM Traces API
  description: Datadog APM REST API for traces, services, service definitions, and SLOs. Provides endpoints for searching and retrieving distributed traces, managing service catalog entries, and configuring service level objectives.
  version: 1.0.0
  contact:
    name: Datadog
    url: https://www.datadoghq.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api.datadoghq.com
  description: Datadog US1 site
- url: https://api.datadoghq.eu
  description: Datadog EU site
- url: https://api.us3.datadoghq.com
  description: Datadog US3 site
- url: https://api.us5.datadoghq.com
  description: Datadog US5 site
security:
- apiKeyAuth: []
  appKeyAuth: []
tags:
- name: Traces
paths:
  /api/v1/traces:
    get:
      operationId: listTraces
      summary: List traces
      description: Search and retrieve traces. Returns a list of traces matching the given search criteria.
      tags:
      - Traces
      parameters:
      - name: query
        in: query
        description: Search query for traces
        schema:
          type: string
      - name: start
        in: query
        description: Start of the time range in epoch seconds
        schema:
          type: integer
      - name: end
        in: query
        description: End of the time range in epoch seconds
        schema:
          type: integer
      - name: limit
        in: query
        description: Maximum number of traces to return
        schema:
          type: integer
          default: 50
      responses:
        '200':
          description: A list of traces
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Trace'
        '400':
          description: Bad request
        '403':
          description: Forbidden
components:
  schemas:
    Trace:
      type: object
      properties:
        traceId:
          type: string
        spans:
          type: array
          items:
            $ref: '#/components/schemas/APMSpan'
    APMSpan:
      type: object
      properties:
        traceId:
          type: string
          description: 64-bit trace ID
        spanId:
          type: string
          description: 64-bit span ID
        parentId:
          type: string
          description: 64-bit parent span ID
        name:
          type: string
          description: Operation name
        service:
          type: string
          description: Service name
        resource:
          type: string
          description: Resource name (e.g., URL, query)
        type:
          type: string
          description: Span type (web, db, cache, custom)
        start:
          type: integer
          description: Start time in nanoseconds since epoch
        duration:
          type: integer
          description: Duration in nanoseconds
        error:
          type: integer
          description: Error flag (0 or 1)
        meta:
          type: object
          description: String key-value tags
          additionalProperties:
            type: string
        metrics:
          type: object
          description: Numeric key-value metrics
          additionalProperties:
            type: number
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: DD-API-KEY
    appKeyAuth:
      type: apiKey
      in: header
      name: DD-APPLICATION-KEY