# US Brand Signal Brand Summary (`zinin/us-brand-signal-brand-summary`) Actor

Summarize 1-60 submitted normalized signal rows into stable summaries for up to 15 explicit brands without external access.

- **URL**: https://apify.com/zinin/us-brand-signal-brand-summary.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** MCP servers, Automation, Marketing
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## US Brand Signal Brand Summary

Deterministic per-brand summaries for 1-60 normalized signal rows covering at
most 15 explicit brands. Submit the facts you already have; this Actor counts
them without deciding what a brand is, whether a signal is true, or whether a
source is live.

### What you get

- One stable summary per explicit `brandName`, sorted by brand name.
- Exact closed counts for event type, severity, and status, including zeroes.
- Unique canonical HTTPS source URLs, unique source hostnames, and sorted signal IDs.
- Lowercase SHA-256 input, per-brand summary, and result digests.
- One bounded Dataset report and a durable terminal `OUTPUT` receipt.

### Freshness and limits

Freshness is buyer-supplied through `observedAt`; the Actor does not read the
runtime clock or verify recency. `brandName` is explicit and is never inferred
from a URL, signal ID, or text. Input is 1-60 rows, at most 15 unique brands,
64 KiB serialized input, 48 KiB serialized report, and 64 KiB for any complete
terminal receipt. Signal IDs are at most 64 ASCII characters, brand names 48,
and source URLs 180. Source URLs must be HTTPS with no credentials. The default
run is 512 MB and 90 seconds with
`LIMITED_PERMISSIONS` and Standby disabled.

### Pricing

Successful delivery has exactly one `apify-actor-start` and one `result-found`
event. There is no per-row, per-brand, source, or network fee.

| Tier | Discount | `apify-actor-start` | `result-found` |
|---|---:|---:|---:|
| FREE | 0% | $0.005000 | $0.010000 |
| BRONZE | 5% | $0.004750 | $0.009500 |
| SILVER | 10% | $0.004500 | $0.009000 |
| GOLD | 15% | $0.004250 | $0.008500 |
| PLATINUM | 18% | $0.004100 | $0.008200 |
| DIAMOND | 20% | $0.004000 | $0.008000 |

The Actor checks the exact integer micro-USD cap before work, requires a zero
`result-found` counter, performs one Dataset write, confirms the counter moved
from 0 to 1, and never retries an uncertain paid write.

### Input

```json
{
  "schemaVersion": "1.0",
  "rows": [
    {"signalId":"nike-1","brandName":"Nike","eventType":"product_launch","severity":"high","status":"active","observedAt":"2024-02-29T12:00:00Z","sourceUrl":"https://example.com/nike-1"}
  ]
}
```

Closed event types are `product_launch`, `price_change`, `promotion`,
`inventory`, `ad_campaign`, `review`, `risk`, `regulatory`, `hiring`, and
`other`. Severities are `low`, `medium`, `high`, and `critical`; statuses are
`active` and `resolved`.

### Related Actors

These are the five currently public related Actor URLs used by this package:

- [US Brand Signal Metrics Aggregator](https://apify.com/zinin/us-brand-signal-metrics-aggregator)
- [US Brand Signal Brief Composer](https://apify.com/zinin/us-brand-signal-brief-composer)
- [US Brand Evidence Snapshot Diff](https://apify.com/zinin/us-brand-evidence-snapshot-diff)
- [US Brand Action Queue](https://apify.com/zinin/us-brand-action-queue)
- [US Brand Federal Award Snapshot](https://apify.com/zinin/us-brand-federal-award-snapshot)

### FAQ

**Does it identify brands?** No. Every row carries the buyer-supplied explicit
`brandName`; rows are only grouped by exact string.

**Does it verify truth, freshness, or sources?** No. It validates syntax and
counts submitted values. `submitted_unverified` is always returned.

**Does it fetch URLs or accept a Dataset, proxy, BYOK key, or child Actor?** No.
The contract is inline-only and has no network, state, clock, queue, or cron.

**What happens when delivery is uncertain?** The report push is not retried.
`OUTPUT` records the bounded known delivery state and the run fails honestly.

**Can I send more than 15 brands or 60 rows?** No. The input is rejected before
the useful Dataset write.

# Actor input Schema

## `schemaVersion` (type: `string`):

Required closed V1 contract.

## `rows` (type: `array`):

One to 60 unique signal rows. brandName is explicit and input order is ignored.

## Actor input object example

```json
{
  "schemaVersion": "1.0",
  "rows": [
    {
      "signalId": "nike-launch-001",
      "brandName": "Nike",
      "eventType": "product_launch",
      "severity": "high",
      "status": "active",
      "observedAt": "2024-02-29T12:00:00Z",
      "sourceUrl": "https://example.com/nike-launch"
    },
    {
      "signalId": "nike-price-001",
      "brandName": "Nike",
      "eventType": "price_change",
      "severity": "medium",
      "status": "resolved",
      "observedAt": "2024-03-01T12:00:00Z",
      "sourceUrl": "https://example.com/retail/nike-price"
    },
    {
      "signalId": "apple-risk-001",
      "brandName": "Apple",
      "eventType": "risk",
      "severity": "critical",
      "status": "active",
      "observedAt": "2024-03-02T12:00:00Z",
      "sourceUrl": "https://example.org/apple-risk"
    },
    {
      "signalId": "apple-review-001",
      "brandName": "Apple",
      "eventType": "review",
      "severity": "low",
      "status": "active",
      "observedAt": "2024-03-03T12:00:00Z",
      "sourceUrl": "https://example.org/apple-review"
    }
  ]
}
```

# Actor output Schema

## `OUTPUT` (type: `string`):

No description

## `report` (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 = {
    "schemaVersion": "1.0",
    "rows": [
        {
            "signalId": "nike-launch-001",
            "brandName": "Nike",
            "eventType": "product_launch",
            "severity": "high",
            "status": "active",
            "observedAt": "2024-02-29T12:00:00Z",
            "sourceUrl": "https://example.com/nike-launch"
        },
        {
            "signalId": "nike-price-001",
            "brandName": "Nike",
            "eventType": "price_change",
            "severity": "medium",
            "status": "resolved",
            "observedAt": "2024-03-01T12:00:00Z",
            "sourceUrl": "https://example.com/retail/nike-price"
        },
        {
            "signalId": "apple-risk-001",
            "brandName": "Apple",
            "eventType": "risk",
            "severity": "critical",
            "status": "active",
            "observedAt": "2024-03-02T12:00:00Z",
            "sourceUrl": "https://example.org/apple-risk"
        },
        {
            "signalId": "apple-review-001",
            "brandName": "Apple",
            "eventType": "review",
            "severity": "low",
            "status": "active",
            "observedAt": "2024-03-03T12:00:00Z",
            "sourceUrl": "https://example.org/apple-review"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/us-brand-signal-brand-summary").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 = {
    "schemaVersion": "1.0",
    "rows": [
        {
            "signalId": "nike-launch-001",
            "brandName": "Nike",
            "eventType": "product_launch",
            "severity": "high",
            "status": "active",
            "observedAt": "2024-02-29T12:00:00Z",
            "sourceUrl": "https://example.com/nike-launch",
        },
        {
            "signalId": "nike-price-001",
            "brandName": "Nike",
            "eventType": "price_change",
            "severity": "medium",
            "status": "resolved",
            "observedAt": "2024-03-01T12:00:00Z",
            "sourceUrl": "https://example.com/retail/nike-price",
        },
        {
            "signalId": "apple-risk-001",
            "brandName": "Apple",
            "eventType": "risk",
            "severity": "critical",
            "status": "active",
            "observedAt": "2024-03-02T12:00:00Z",
            "sourceUrl": "https://example.org/apple-risk",
        },
        {
            "signalId": "apple-review-001",
            "brandName": "Apple",
            "eventType": "review",
            "severity": "low",
            "status": "active",
            "observedAt": "2024-03-03T12:00:00Z",
            "sourceUrl": "https://example.org/apple-review",
        },
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/us-brand-signal-brand-summary").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "schemaVersion": "1.0",
  "rows": [
    {
      "signalId": "nike-launch-001",
      "brandName": "Nike",
      "eventType": "product_launch",
      "severity": "high",
      "status": "active",
      "observedAt": "2024-02-29T12:00:00Z",
      "sourceUrl": "https://example.com/nike-launch"
    },
    {
      "signalId": "nike-price-001",
      "brandName": "Nike",
      "eventType": "price_change",
      "severity": "medium",
      "status": "resolved",
      "observedAt": "2024-03-01T12:00:00Z",
      "sourceUrl": "https://example.com/retail/nike-price"
    },
    {
      "signalId": "apple-risk-001",
      "brandName": "Apple",
      "eventType": "risk",
      "severity": "critical",
      "status": "active",
      "observedAt": "2024-03-02T12:00:00Z",
      "sourceUrl": "https://example.org/apple-risk"
    },
    {
      "signalId": "apple-review-001",
      "brandName": "Apple",
      "eventType": "review",
      "severity": "low",
      "status": "active",
      "observedAt": "2024-03-03T12:00:00Z",
      "sourceUrl": "https://example.org/apple-review"
    }
  ]
}' |
apify call zinin/us-brand-signal-brand-summary --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=zinin/us-brand-signal-brand-summary",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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