# AWS CUR Tag Coverage Audit by Account and Service (`natstandridge/aws-cur-tag-coverage-audit`) Actor

Find untagged AWS costs in a batch of legacy CUR records for one billing month. Returns usageAccountId, productCode, unallocatedUsageUnblendedCost, tagCoveragePercent and resourceEvidence. $0.05 per account and service with qualifying untagged usage.

- **URL**: https://apify.com/natstandridge/aws-cur-tag-coverage-audit.md
- **Developed by:** [Nathaniel Standridge](https://apify.com/natstandridge) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$50.00 / 1,000 account and service tag allocation findings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AWS CUR Tag Coverage Audit

Batch AWS CUR 1.0 line items for one billing month and one activated tag to get `usageAccountId`, `productCode`, `unallocatedUsageUnblendedCost`, `tagCoveragePercent`, `resourceEvidence`, and `unallocatedWithoutResourceIdCost`. Each delivered account/service finding costs **$0.05**. Use the resource evidence and the amount without resource IDs to assign monthly FinOps reviews.

The Actor reads the CUR data you supply. It makes no AWS API calls, asks for no AWS credentials, and uses no proxy, AI, or external data service. Source code is private. The pasted billing data and derived results are stored in your Apify run input and storages, so use Apify's access controls and retention settings appropriate for your data.

### Why use it

AWS Cost Explorer and a spreadsheet can show tag allocation, but a repeatable account/service queue with resource-ID evidence and an explicit no-resource-ID bucket takes manual filtering. This Actor makes that monthly review deterministic and easy to export as dataset rows. It does not discover resources outside the pasted CSV or decide that every blank cell is fixable.

### Input and first run

1. In AWS Billing, apply resource tags and **activate the desired user-defined cost allocation tag**. Export one legacy CUR 1.0 CSV for your billing month. Include resource IDs if you want resource evidence. Tag activation and tag coverage can lag, and a tag added partway through a month will leave earlier costs blank.
2. Supply up to **3,000 rows / 256,000 encoded CSV bytes** as a `records` array, or paste a CSV excerpt into `curCsv`. Each array record uses original CUR headers and string values. Include the selected tag on every record, using an empty string for an unallocated value. Project the same required and optional fields for all records. The exact required headers are `lineItem/UnblendedCost`, `lineItem/LineItemType`, `lineItem/UsageAccountId`, `lineItem/ProductCode`, and `resourceTags/user:<tagKey>`. `lineItem/ResourceId`, `lineItem/CurrencyCode`, and `bill/BillingPeriodStartDate` improve interpretation but are optional. Supply one monthly CUR 1.0 excerpt per run.
3. Enter the exact, case-sensitive tag key without the `resourceTags/user:` prefix, then enter the billing month. The Actor checks the month against `bill/BillingPeriodStartDate` when that column exists. Without it, the month is only your label.
4. Set `minUnallocatedCost` if you only want material gaps. The default is `1.00` in the CUR currency. The Actor rejects more than `maxFindings` qualifying account/service pairs before writing any paid rows. It does not silently truncate the queue.

For a first run, set `billingMonth` to `2026-10`, `tagKey` to `CostCenter`, and paste this synthetic CSV into `curCsv`. The account and resource IDs are invented:

```csv
bill/BillingPeriodStartDate,lineItem/LineItemType,lineItem/UsageAccountId,lineItem/ProductCode,lineItem/UnblendedCost,lineItem/ResourceId,lineItem/CurrencyCode,resourceTags/user:CostCenter
2026-10-01T00:00:00Z,Usage,111111111111,AmazonEC2,80.00,i-example-prod,USD,Platform
2026-10-01T00:00:00Z,Usage,111111111111,AmazonEC2,20.00,i-example-review,USD,
2026-10-01T00:00:00Z,Usage,111111111111,AmazonEC2,10.00,,USD,
2026-10-01T00:00:00Z,Usage,222222222222,AmazonS3,5.00,bucket-example,USD,
2026-10-01T00:00:00Z,Usage,222222222222,AmazonS3,1.00,bucket-tagged,USD,Data
```

The default settings produce two findings: one for AmazonEC2 and one for AmazonS3.

### Output and billing

Each dataset row is **one account/service finding**. It contains the chosen tag, positive `Usage` unblended cost totals, row counts, percentage of that scoped cost with a nonblank tag, resource IDs ranked by blank-tag cost, and a separate blank-tag amount with no resource ID. Resource evidence is capped to `maxEvidenceIds` IDs; `distinctResourceIdCount` and `resourceEvidenceTruncated` disclose the remainder. `OUTPUT` is a free run summary with included/excluded counts, total scoped amounts, and completion status.

Selected fields from the first finding in the synthetic run:

```json
{
  "billingMonth": "2026-10",
  "usageAccountId": "111111111111",
  "productCode": "AmazonEC2",
  "currencyCode": "USD",
  "eligibleUsageUnblendedCost": "110.00",
  "taggedUsageUnblendedCost": "80.00",
  "unallocatedUsageUnblendedCost": "30.00",
  "tagCoveragePercent": 72.73,
  "unallocatedWithResourceIdCost": "20.00",
  "unallocatedWithoutResourceIdCost": "10.00",
  "resourceEvidence": [{"resourceId": "i-example-review", "unallocatedUnblendedCost": "20.00", "usageRowCount": 1}]
}
```

**Price:** $0.05 per delivered dataset finding, with platform usage paid by the Actor author. No startup event. Empty, invalid, and budget-blocked runs deliver no paid findings. The example has two findings and would cost $0.10 in event charges if the run's spending limit allows both. The Actor requires enough remaining event budget for the complete queue before delivery; it does not charge for a partial queue by choice.

### What the amounts mean

The cost denominator is **positive `lineItem/UnblendedCost` on rows whose `lineItem/LineItemType` is exactly `Usage`**, within the pasted CSV. Other charge types, including Savings Plans covered/negation entries, Reserved Instance fees and discounts, credits, taxes, refunds, and nonpositive `Usage` rows are excluded and counted in the summary. This avoids calling Savings Plans' offset on-demand amounts allocatable spend. It is **not** an invoice total, amortized cost, net cost, complete cost allocation report, or savings estimate. A CSV excerpt is not a whole-month audit.

A blank tag cell is a review signal. Possible reasons include an untagged resource, a tag activated or applied after the charge, a service/charge that cannot be tagged, and a missing resource ID. A resource ID can also be absent because the report was exported without IDs or the usage type has no instantiated resource. The Actor does not infer the reason. It keeps no-resource-ID cost separate so you can investigate it without treating it as a list of taggable resources.

Rows with the same CSV content are counted separately. AWS can have distinct line items with identical selected fields, so the Actor does not remove apparent duplicates. Paste only one report slice once. Currency appears only when the CSV has a consistent `lineItem/CurrencyCode`; otherwise `currencyCode` is `null` and cost strings carry no assumed currency.

### Limits and repeat workflow

The Actor supports **legacy CUR 1.0 flat CSV headers** only. CUR 2.0 uses a tags map and needs a different parser. Maximum input is 3,000 rows, 256,000 bytes, 200 columns, 50 findings, and 50 displayed resource IDs per finding. It rejects malformed, mixed-currency, or over-limit input before delivering findings. For a larger CUR, use an existing authorized query or spreadsheet workflow to select a bounded monthly slice and keep its scope visible; do not merge independent slices and call the combined output an invoice reconciliation.

For a monthly workflow, export the same billing scope each month, run this Actor with the month and tag key, download the findings, and assign review owners for each account/service pair. Compare coverage only when the slices and tag activation status are comparable. The free summary exposes the denominator and exclusions for that check.

### Source notes

- [AWS CUR line item column definitions](https://docs.aws.amazon.com/cur/latest/userguide/Lineitem-columns.html) describe `Usage`, unblended cost, account, product code, and optional resource IDs.
- [AWS resource tag columns](https://docs.aws.amazon.com/cur/latest/userguide/resource-tags-columns.html) show the legacy `resourceTags/user:<key>` form.
- [AWS cost allocation tags](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) explains activation and report inclusion.
- [AWS monthly cost allocation report](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/configurecostallocreport.html) explains unallocated charges and part-month tagging.
- [AWS Savings Plans CUR examples](https://docs.aws.amazon.com/cur/latest/userguide/cur-sp.html) explain covered usage and offsetting negation lines.

### Connect a workflow

For MCP, connect to `https://mcp.apify.com/?actors=natstandridge/aws-cur-tag-coverage-audit` and send the billing month, tag key, and projected line items in the `records` array.

In an n8n HTTP Request node, use POST with an Apify Bearer credential, the following URL, and a JSON body. The response is the findings array. The example uses synthetic CUR values.

```text
https://api.apify.com/v2/actors/natstandridge~aws-cur-tag-coverage-audit/run-sync-get-dataset-items
```

```json
{"tagKey":"CostCenter","billingMonth":"2026-10","records":[{"lineItem/UnblendedCost":"5.00","lineItem/LineItemType":"Usage","lineItem/UsageAccountId":"111111111111","lineItem/ProductCode":"AmazonS3","resourceTags/user:CostCenter":""}]}
```

In Make, put the same JSON into **Apify → Run an Actor**, wait for completion, then pass the run’s `defaultDatasetId` to **Get Dataset Items**.

# Actor input Schema

## `records` (type: `array`):

Batch of 1–3,000 projected CUR 1.0 objects with string values. Each object needs lineItem/UnblendedCost, lineItem/LineItemType, lineItem/UsageAccountId, lineItem/ProductCode and resourceTags/user:<tagKey>. Use an empty tag string for unallocated cost. Optional fields are lineItem/ResourceId, lineItem/CurrencyCode and bill/BillingPeriodStartDate. Choose records or curCsv.

## `curCsv` (type: `string`):

Alternative for legacy workflows. Paste a CUR 1.0 CSV header and up to 3,000 rows, with the four required lineItem columns and resourceTags/user:<tagKey>. Supply either curCsv or records.

## `tagKey` (type: `string`):

Exact case-sensitive key, such as CostCenter. The input CSV must contain resourceTags/user:CostCenter. Activate the cost allocation tag in AWS Billing before exporting the report.

## `billingMonth` (type: `string`):

Month label supplied by you. When bill/BillingPeriodStartDate exists, every data row must match this month; otherwise the label cannot be verified from the CSV.

## `minUnallocatedCost` (type: `string`):

Only deliver a paid finding when blank-tag positive Usage cost for an account/service reaches this amount, in the CUR currency. Use 0 to include every positive gap.

## `maxFindings` (type: `integer`):

Hard cap. If more groups qualify, the run rejects the CSV before writing paid findings. Narrow the CSV or raise the cap.

## `maxEvidenceIds` (type: `integer`):

Show the highest-cost resource IDs per finding. Counts and total costs still include every resource ID in the pasted CSV.

## `maxRunSeconds` (type: `integer`):

Bounds CSV parsing, checkpointing, and paid dataset delivery.

## Actor input object example

```json
{
  "records": [
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "80.00",
      "lineItem/ResourceId": "i-example-prod",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": "Platform"
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "20.00",
      "lineItem/ResourceId": "i-example-review",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "10.00",
      "lineItem/ResourceId": "",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "222222222222",
      "lineItem/ProductCode": "AmazonS3",
      "lineItem/UnblendedCost": "5.00",
      "lineItem/ResourceId": "bucket-example",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "222222222222",
      "lineItem/ProductCode": "AmazonS3",
      "lineItem/UnblendedCost": "1.00",
      "lineItem/ResourceId": "bucket-tagged",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": "Data"
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "SavingsPlanCoveredUsage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "40.00",
      "lineItem/ResourceId": "i-sp-covered",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "333333333333",
      "lineItem/ProductCode": "AmazonRDS",
      "lineItem/UnblendedCost": "2.00",
      "lineItem/ResourceId": "db-tagged",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": "Team"
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "0.00",
      "lineItem/ResourceId": "i-zero",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    }
  ],
  "tagKey": "CostCenter",
  "billingMonth": "2026-10",
  "minUnallocatedCost": "1.00",
  "maxFindings": 25,
  "maxEvidenceIds": 20,
  "maxRunSeconds": 120
}
```

# Actor output Schema

## `findings` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "records": [
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "80.00",
            "lineItem/ResourceId": "i-example-prod",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "Platform"
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "20.00",
            "lineItem/ResourceId": "i-example-review",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": ""
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "10.00",
            "lineItem/ResourceId": "",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": ""
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "222222222222",
            "lineItem/ProductCode": "AmazonS3",
            "lineItem/UnblendedCost": "5.00",
            "lineItem/ResourceId": "bucket-example",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": ""
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "222222222222",
            "lineItem/ProductCode": "AmazonS3",
            "lineItem/UnblendedCost": "1.00",
            "lineItem/ResourceId": "bucket-tagged",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "Data"
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "SavingsPlanCoveredUsage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "40.00",
            "lineItem/ResourceId": "i-sp-covered",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": ""
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "333333333333",
            "lineItem/ProductCode": "AmazonRDS",
            "lineItem/UnblendedCost": "2.00",
            "lineItem/ResourceId": "db-tagged",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "Team"
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "0.00",
            "lineItem/ResourceId": "i-zero",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": ""
        }
    ],
    "tagKey": "CostCenter",
    "billingMonth": "2026-10"
};

// Run the Actor and wait for it to finish
const run = await client.actor("natstandridge/aws-cur-tag-coverage-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "records": [
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "80.00",
            "lineItem/ResourceId": "i-example-prod",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "Platform",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "20.00",
            "lineItem/ResourceId": "i-example-review",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "10.00",
            "lineItem/ResourceId": "",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "222222222222",
            "lineItem/ProductCode": "AmazonS3",
            "lineItem/UnblendedCost": "5.00",
            "lineItem/ResourceId": "bucket-example",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "222222222222",
            "lineItem/ProductCode": "AmazonS3",
            "lineItem/UnblendedCost": "1.00",
            "lineItem/ResourceId": "bucket-tagged",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "Data",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "SavingsPlanCoveredUsage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "40.00",
            "lineItem/ResourceId": "i-sp-covered",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "333333333333",
            "lineItem/ProductCode": "AmazonRDS",
            "lineItem/UnblendedCost": "2.00",
            "lineItem/ResourceId": "db-tagged",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "Team",
        },
        {
            "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
            "lineItem/LineItemType": "Usage",
            "lineItem/UsageAccountId": "111111111111",
            "lineItem/ProductCode": "AmazonEC2",
            "lineItem/UnblendedCost": "0.00",
            "lineItem/ResourceId": "i-zero",
            "lineItem/CurrencyCode": "USD",
            "resourceTags/user:CostCenter": "",
        },
    ],
    "tagKey": "CostCenter",
    "billingMonth": "2026-10",
}

# Run the Actor and wait for it to finish
run = client.actor("natstandridge/aws-cur-tag-coverage-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "records": [
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "80.00",
      "lineItem/ResourceId": "i-example-prod",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": "Platform"
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "20.00",
      "lineItem/ResourceId": "i-example-review",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "10.00",
      "lineItem/ResourceId": "",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "222222222222",
      "lineItem/ProductCode": "AmazonS3",
      "lineItem/UnblendedCost": "5.00",
      "lineItem/ResourceId": "bucket-example",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "222222222222",
      "lineItem/ProductCode": "AmazonS3",
      "lineItem/UnblendedCost": "1.00",
      "lineItem/ResourceId": "bucket-tagged",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": "Data"
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "SavingsPlanCoveredUsage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "40.00",
      "lineItem/ResourceId": "i-sp-covered",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "333333333333",
      "lineItem/ProductCode": "AmazonRDS",
      "lineItem/UnblendedCost": "2.00",
      "lineItem/ResourceId": "db-tagged",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": "Team"
    },
    {
      "bill/BillingPeriodStartDate": "2026-10-01T00:00:00Z",
      "lineItem/LineItemType": "Usage",
      "lineItem/UsageAccountId": "111111111111",
      "lineItem/ProductCode": "AmazonEC2",
      "lineItem/UnblendedCost": "0.00",
      "lineItem/ResourceId": "i-zero",
      "lineItem/CurrencyCode": "USD",
      "resourceTags/user:CostCenter": ""
    }
  ],
  "tagKey": "CostCenter",
  "billingMonth": "2026-10"
}' |
apify call natstandridge/aws-cur-tag-coverage-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,natstandridge/aws-cur-tag-coverage-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LrXenQ5igWoVbLs0Y/builds/DsfSHstlxCG4g2imW/openapi.json
