The `newrelic-api` library provides a Python interface to interact with the New Relic API v2. It allows users to fetch application data, monitor metrics, and manage various New Relic entities programmatically. Currently at version 1.0.6, it is a community-maintained client that sees infrequent releases, primarily for maintenance and minor enhancements.
pip install newrelic-apiVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes the New Relic API client using an API key from an environment variable and fetches a list of applications. It demonstrates basic API interaction and error handling.
Generate or locate the correct 'New Relic REST API Key (v2)' in your New Relic account settings. Do not confuse it with other key types.
Implement client-side rate limiting, exponential backoff, or introduce delays between API calls, especially when processing large datasets or making frequent requests.
Always use `from newrelic_api import NewRelicApi` for imports, regardless of how you installed it via `pip install newrelic-api`.
No dependency data recorded yet.