Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

New Relic Hosts API

The Hosts API from New Relic — 4 operation(s) for hosts.

New Relic Hosts API is one of 41 APIs that New Relic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 111 JSON Schema definitions.

Tagged areas include Hosts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, a JSON-LD context, rate-limit docs, and 111 JSON Schemas.

This API exposes 4 operations across 4 paths, and defines 11 schemas. It is described by OpenAPI 3.1.0, at version 1.

Requests are made against 2 base URLs: https://insights-collector.newrelic.com, https://insights-collector.eu01.nr-data.net.

4 operations 4 paths 11 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1
Base URL
https://api.newrelic.com/v2/
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

New Relic Hosts API declares 1 security scheme for authenticating requests. An API key is passed in the header as Api-Key (apiKey). By default, every request must be authenticated.

  • apiKey — New Relic License Key or Ingest API Key

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Hosts 4
GET
/applications/{application_id}/hosts.json
New Relic Get Applications Hosts
getApplicationsIdHosts 4 params → 200
GET
/applications/{application_id}/hosts/{host_id}/metrics.json
New Relic Get Applications Hosts Host Metrics
getApplicationsIdHostsHostIdMetrics 5 params → 200
GET
/applications/{application_id}/hosts/{host_id}/metrics/data.json
New Relic Get Applications Hosts Host Metrics Data
getApplicationsIdHostsHostIdMetricsData 9 params → 200
GET
/applications/{application_id}/hosts/{id}.json
New Relic Get Applications Hosts
getApplicationsIdHostsId 2 params → 200

Schemas 11

The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are ApplicationHostResponseType (8 properties), AppSummaryDataResponse (5 properties), MetricDataResponseType (5 properties), TimesliceResponse (3 properties). Each schema is shown below with its type and property counts.

MetricParserResponseType
object
2 properties
MetricListResponse
object
1 property
MetricDataResponse
object
1 property
ApplicationHostLinksResponse
object
3 properties
TimesliceResponse
object
3 properties
MetricDataResponseType
object
5 properties
ApplicationHostResponseType
object
8 properties
MetricResponse
object
2 properties
EndUserSummaryDataResponse
object
3 properties
AppSummaryDataResponse
object
5 properties
ApplicationHostResponse
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

new-relic-hosts-api-openapi.yml Raw ↑

Other APIs New Relic publishes across the network.

New Relic NerdGraph API
New Relic Alerts API
New Relic Synthetics API
New Relic Infrastructure Alerts API
New Relic Browser API
New Relic Partnership API
New Relic Telemetry SDKs
New Relic OpenTelemetry OTLP Endpoint
New Relic Control
New Relic NRQL Lookups API
New Relic Security Data API
New Relic Mobile SDK