# Compare US Brand Evidence Snapshots

**Use case:** 

Compare two small normalized US brand evidence snapshots and return deterministic added, removed, changed, and unchanged rows.

## Input

```json
{
  "schemaVersion": "1.0",
  "primarySide": "before",
  "primary": [
    {
      "dedupeKey": "acme|offer|001",
      "brandName": "Acme Northstar Labs",
      "country": "US",
      "eventType": "offer",
      "observedAt": "2026-08-04T12:00:00Z",
      "sourceKind": "official_site",
      "sourceUrl": "https://example.com/acme/offer",
      "evidence": {
        "facts": {
          "priceUsd": "24.00"
        },
        "excerpt": "Synthetic fixture only.",
        "contentDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "contentBytes": 1200
      },
      "demoFixture": true,
      "fixtureAsOf": "2026-08-05T00:00:00Z"
    },
    {
      "dedupeKey": "acme|award|001",
      "brandName": "Acme Northstar Labs",
      "country": "US",
      "eventType": "award",
      "observedAt": "2026-08-03T12:00:00Z",
      "severity": "medium",
      "sourceKind": "official_site",
      "sourceUrl": "https://example.com/acme/award",
      "demoFixture": true,
      "fixtureAsOf": "2026-08-05T00:00:00Z"
    },
    {
      "dedupeKey": "unchanged|news|001",
      "brandName": "Example Federal Tools",
      "country": "US",
      "eventType": "news",
      "observedAt": "2026-08-04T12:00:00Z",
      "sourceKind": "official_site",
      "sourceUrl": "https://example.com/example/news",
      "demoFixture": true,
      "fixtureAsOf": "2026-08-05T00:00:00Z"
    }
  ],
  "counterpart": [
    {
      "dedupeKey": "acme|offer|001",
      "brandName": "Acme Northstar Labs",
      "country": "US",
      "eventType": "offer",
      "observedAt": "2026-08-04T12:00:00Z",
      "sourceKind": "official_site",
      "sourceUrl": "https://example.com/acme/offer",
      "evidence": {
        "facts": {
          "priceUsd": "19.00"
        },
        "excerpt": "Synthetic fixture only.",
        "contentDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
        "contentBytes": 1200
      },
      "demoFixture": true,
      "fixtureAsOf": "2026-08-05T00:00:00Z"
    },
    {
      "dedupeKey": "unchanged|news|001",
      "brandName": "Example Federal Tools",
      "country": "US",
      "eventType": "news",
      "observedAt": "2026-08-04T12:00:00Z",
      "sourceKind": "official_site",
      "sourceUrl": "https://example.com/example/news",
      "demoFixture": true,
      "fixtureAsOf": "2026-08-05T00:00:00Z"
    },
    {
      "dedupeKey": "new|launch|001",
      "brandName": "New Example Brand",
      "country": "US",
      "eventType": "news",
      "observedAt": "2026-08-04T13:00:00Z",
      "sourceKind": "official_site",
      "sourceUrl": "https://example.com/new/launch",
      "demoFixture": true,
      "fixtureAsOf": "2026-08-05T00:00:00Z"
    }
  ]
}
```

## Output

```json
{
  "kind": {
    "label": "Result",
    "format": "text"
  },
  "counts": {
    "label": "Counts",
    "format": "object"
  },
  "added": {
    "label": "Added",
    "format": "object"
  },
  "removed": {
    "label": "Removed",
    "format": "object"
  },
  "changed": {
    "label": "Changed",
    "format": "object"
  },
  "unchanged": {
    "label": "Unchanged",
    "format": "object"
  },
  "reportDigest": {
    "label": "Report digest",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [US Brand Evidence Snapshot Diff](https://apify.com/zinin/us-brand-evidence-snapshot-diff) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zinin/us-brand-evidence-snapshot-diff) to learn more, explore other use cases, and run it yourself.