New Relic offers a variety of APIs and SDKs you can use to:
- Retrieve data from New Relic.
- Send data to New Relic.
- Adjust settings.
This document provides examples and reference information for our API endpoints. For developer-focused content on how to use and customize New Relic, see developer.newrelic.com.
Tip
To use APIs and SDKs, as well as the rest of our observability platform, join the New Relic family! Sign up to create your free account in only a few seconds. Then ingest up to 100GB of data for free each month. Forever.
NerdGraph (GraphQL)
NerdGraph is New Relic's GraphQL-format API, an efficient and flexible query language that lets you request exactly the data you need, without over-fetching or under-fetching. NerdGraph is the preferred API for querying New Relic data and making a range of feature configurations.
To get started, see Introduction to NerdGraph.
REST APIs by capability
New Relic capabilities, like APM, infrastructure monitoring, or alerts, are often used together, and sometimes they overlap in functionality. This is why multiple APIs may be relevant to each area. Some API functionality will depend on your access to features and data.
Tip
To learn more about different API key types, see Understand New Relic API keys.
Telemetry APIs for core data types
We offer several APIs that allow you to get our core data types (metrics, logs, traces, and events) into New Relic without the use of an installed agent.
Data type | Description |
---|---|
Send distributed tracing data to New Relic. | |
Send event data to New Relic. | |
Send metrics to New Relic from any source (including other telemetry monitoring services). | |
Send your log data to New Relic. |
Account management, admin, and usage APIs
Like any other New Relic product or service, you want to be confident that your APIs protect you and your customers' data privacy. The following are API resources related to New Relic account administration and usage.
For more information about API capabilities, see the specific New Relic API. For more information about New Relic's security measures, see our security and privacy documentation, or visit the New Relic security website.
Resource | Details |
---|---|
REST API | REST API features include:
|
Subscription usage | You can use the Query API to retrieve subscription usage data. This can be helpful to see how usage compares to your current subscription level, or for doing departmental chargebacks. |
Partner API | To retrieve information about your New Relic partner account, sub-accounts, and users, use the Partner API. |
Other APIs
See APIs in action
For more on how you as a developer can optimize your ability to solve problems using New Relic, go to developer.newrelic.com.
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.