API Reference

API Reference

The Datadog API is an HTTP REST API. The API uses resource-oriented URLs to call the API, uses status codes to indicate the success or failure of requests, returns JSON from all requests, and uses standard HTTP response codes. Use the Datadog API to access the Datadog platform programmatically.

Getting started

Authenticate to the API with an API key, and depending on the endpoint, an Application key.

To try out the API Run in Postman

Using the API is a guide to the endpoints.

Note: cURL code examples assume usage of BASH and GNU coreutils. On macOS, you can install coreutils via the Homebrew package manager: brew install coreutils

Client libraries

By default, the Datadog API Docs show examples in cURL. Select one of our official client libraries languages in each endpoint to see code examples from that library. To install each library:

Maven - Add this dependency to your project’s POM:


Gradle - Add this dependency to your project’s build file:

compile "com.datadoghq:datadog-api-client:1.0.0-beta10"
pip install datadog
gem install dogapi
import "github.com/DataDog/datadog-api-client-go/api/<VERSION>/datadog"

Note: Replace <VERSION> with v1 or v2, depending on which endpoints you want to use.

Or check out the libraries directly:

Trying to get started with the application instead? Check out our general Getting Started docs.

Further Reading

Additional helpful documentation, links, and articles: