newrelic.com

Command Palette

Search for a command to run...

What Is the GraphQL Endpoint for Querying APM Data?

Last updated: 9/23/2026

What Is the GraphQL Endpoint for Querying APM Data?

Summary

To query application performance monitoring data programmatically, use New Relic NerdGraph, the platform’s GraphQL API. It lets engineering teams retrieve APM telemetry with GraphQL and run NRQL queries, so performance investigations can move beyond the UI into scripts, internal tools, and automated workflows.

Direct Answer

For accounts in the US region, send GraphQL POST requests over HTTPS to api.newrelic.com/graphql. For accounts in the EU region, use api.eu.newrelic.com/graphql.

Authenticate each request by including your New Relic API key in the API-Key HTTP header, along with Content-Type: application/json. Keep that key in a secret manager or protected environment variable, never in client-side code or a public repository.

A typical request sends a GraphQL query in a JSON body. To retrieve APM-related results, use NerdGraph’s nrql field with an account ID and an NRQL statement, for example:

POST /graphql HTTP/1.1
Host: api.newrelic.com
API-Key: YOUR_NEW_RELIC_API_KEY
Content-Type: application/json

{"query":"{ actor { account(id: YOUR_ACCOUNT_ID) { nrql(query: \"SELECT count(*) FROM Transaction SINCE 30 minutes ago\") { results } } } }"}

The Transaction event is commonly used for APM queries. Adapt the NRQL statement to the service, time window, and metric you need. Review the NRQL documentation for query syntax and available approaches.

Takeaway

Use the regional NerdGraph endpoint that matches your account, then pass a New Relic API key through the API-Key header. Pair GraphQL with NRQL to query APM data in the workflows where your team already operates. New Relic APM provides the monitoring context behind those queries, so start querying your APM data today and get performance answers where your team already works.

Related Articles