# Enriching your usage data using the API
Source: https://greenpixie.com/docs/guides/enrich-api

How to join Greenpixie factors onto your own usage data.

The Greenpixie API lets you enrich your own cloud usage report in your own environment. You pull the rate card, join it onto your usage data, and multiply, so your usage data stays in your own environment. This is the same enrichment Greenpixie's managed service performs, done on your side.

Before you start, you need an API key (see [Getting started with the Greenpixie API](/guides/getting-started-api)) and your exported usage data (see [Getting your usage data](/guides/usage-data)).

## How enrichment works [#how-enrichment-works]

Pull the rate card at rate-code granularity, where each row is a single rate code with its exact per-unit factors. Join those rows onto your usage report on the rate code, then multiply each factor by the usage quantity on the line to get energy, carbon and water for it.

## Platform guides [#platform-guides]

Each platform names its rate codes and quantities differently, so the join is covered per platform.

- [Enrich an AWS cloud usage report](https://greenpixie.com/docs/guides/enrich-cur-api): Join the rate card onto a CUR 2.0 export on the rate code and multiply by usage quantity.
- [Enrich an Azure cost export](https://greenpixie.com/docs/guides/enrich-azure-export-api): Join the rate card onto a Cost Management export in FOCUS format.
- [Enrich a GCP billing export](https://greenpixie.com/docs/guides/enrich-gcp-export-api): Join the rate card onto the detailed usage cost export from BigQuery.

## If you would rather Greenpixie did it [#if-you-would-rather-greenpixie-did-it]

If you do not want to run the enrichment yourself, grant Greenpixie read access to the bucket or container holding your export and the managed service returns the same enriched dataset to you.

- [Connect your data for Greenpixie to enrich it](https://greenpixie.com/docs/guides/connect-data): Grant Greenpixie access to your bucket or container for managed enrichment.