# Cross-Platform Social KPI Delta & Anomaly Monitor (`ursog/cross-platform-social-kpi-delta-anomaly-monitor`) Actor

- **URL**: https://apify.com/ursog/cross-platform-social-kpi-delta-anomaly-monitor.md
- **Developed by:** [andre donda de sa](https://apify.com/ursog) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1,050.00 / 1,000 dataset batch processeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Cross-Platform Social KPI Delta & Anomaly Monitor

Turn recurring Instagram, TikTok, and YouTube profile Datasets into platform-correct KPI changes and deterministic anomalies. This is a downstream monitoring product for analysts and automation teams, not a social scraper.

Nine frozen upstream contracts are supported. Exact platform/profile identity is preserved; followers, following, likes, posts/videos, subscribers, and views are retained only where that platform/schema exposes them. The first run creates a free baseline. Later comparable runs emit previous/current values. Anomalies use explicit numeric thresholds (at least 100 absolute and 5%) and explain the arithmeticÃ¢â‚¬â€no AI.

Platforms are never forced into fabricated equivalent metrics, rounded source values remain rounded, and absence never means a profile disappeared. Upstream Actor/build evidence is part of comparability. Use scheduling or webhooks to chain a supported collector to this Actor. The provisional `profile-comparison-completed` hook is implemented but disabled.

### Who this Actor is for

Operations, monitoring, research, and data teams that need compare approved upstream social dataset schemas and emit deterministic kpi changes/anomalies. It is designed for scheduled Apify, API, webhook, integration, and MCP-compatible workflowsÃ¢â‚¬â€not for unsupported professional conclusions.

### Input reference

- `sourceDatasetId`: Configure Source Dataset ID for this monitoring workflow.
- `schema` (required): Configure Approved upstream schema for this monitoring workflow.
- `sourceActorId`: Configure Upstream Actor ID for this monitoring workflow.
- `sourceBuildId`: Configure Upstream build ID for this monitoring workflow.
- `sourceRunStatus`: Configure Upstream run status for this monitoring workflow.
- `monitorKey` (required): Configure Monitor key for this monitoring workflow.
- `coverage`: Configure Coverage for this monitoring workflow.
- `maxRows`: Configure Maximum profiles for this monitoring workflow.
- `enableBilling`: Configure Enable billing hook for this monitoring workflow.

Representative input (replace placeholders and use only sources you are authorized to access):

```json
{
  "schema": "example",
  "monitorKey": "default",
  "sourceRunStatus": "SUCCEEDED",
  "coverage": "PARTIAL",
  "maxRows": 10000,
  "enableBilling": false
}
```

### Output reference

- `recordType`: Structured output field.
- `eventId`: Structured output field.
- `eventType`: Structured output field.
- `entityId`: Structured output field.
- `observedAt`: Structured output field.
- `previous`: Structured output field.
- `current`: Structured output field.
- `changedFields`: Structured output field.
- `coverage`: Structured output field.
- `severity`: Structured output field.
- `whySurfaced`: Structured output field.
- `code`: Structured output field.
- `message`: Structured output field.

The first complete run creates an expected baseline where the product uses state. Later comparable runs emit only the documented observations or changes. Dataset records retain deterministic identity and source evidence where the contract requires it.

### Limitations and known semantics

- Only the documented source, input forms, fields, identities, and completeness rules are supported.
- An empty, partial, blocked, timed-out, or malformed upstream response is never silently reported as a successful empty result.
- Absence or removal is reported only with the exact observational wording and completeness evidence documented by this Actor; it is not proof of a real-world deletion or status unless the source explicitly says so.
- Upstream publication schedules, schemas, coverage, terms, and availability can change.

### Errors and troubleshooting

Check the run status and OUTPUT summary before consuming Dataset rows. For invalid input, correct the named field. For retryable source failures, preserve the monitor key/state and retry later. For schema or completeness failures, do not reset state or infer changes; report the run ID and non-secret diagnostics to support.

### API, integrations, and MCP

Run the Actor through the Apify API, Schedule, webhook, or supported integration. Read structured records from the default Dataset and the run summary from the default Key-value store. MCP/agent consumers must preserve source, status, uncertainty, and limitation fields and must not convert observational outputs into unsupported claims.

### Privacy and legal notes

Submit only data necessary for the documented workflow and only sources you are authorized to access. Do not include credentials, sensitive personal data, or private URLs unless the Actor explicitly documents secure support for them. Outputs are factual automation evidence, not legal, financial, safety, employment, regulatory, or compliance advice. You remain responsible for source rights, downstream use, retention, and professional review.

### Supported-use boundary

This Actor accepts only public URLs or caller-controlled Apify data that you own or are authorized to process. `sourceRightsConfirmed` must be `true`. The Actor does not grant rights to source material, bypass authentication or access controls, or make an otherwise prohibited collection lawful. Submit the minimum data needed and comply with source terms, privacy duties, retention rules, and applicable law.

# Actor input Schema

## `sourceDatasetId` (type: `string`):

Configure Source Dataset ID for this monitoring workflow.

## `schema` (type: `string`):

Configure Approved upstream schema for this monitoring workflow.

## `sourceActorId` (type: `string`):

Configure Upstream Actor ID for this monitoring workflow.

## `sourceBuildId` (type: `string`):

Configure Upstream build ID for this monitoring workflow.

## `sourceRunStatus` (type: `string`):

Configure Upstream run status for this monitoring workflow.

## `monitorKey` (type: `string`):

Configure Monitor key for this monitoring workflow.

## `coverage` (type: `string`):

Configure Coverage for this monitoring workflow.

## `maxRows` (type: `integer`):

Configure Maximum profiles for this monitoring workflow.

## `enableBilling` (type: `boolean`):

Configure Enable billing hook for this monitoring workflow.

## `sourceRightsConfirmed` (type: `boolean`):

Required. Confirm that you own or are authorized to process the supplied Dataset/records and to use the normalized outputs under applicable source terms and law.

## Actor input object example

```json
{
  "sourceRunStatus": "SUCCEEDED",
  "monitorKey": "default",
  "coverage": "PARTIAL",
  "maxRows": 10000,
  "enableBilling": false
}
```

# Actor output Schema

## `events` (type: `string`):

No description

## `diagnostics` (type: `string`):

No description

## `runSummary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("ursog/cross-platform-social-kpi-delta-anomaly-monitor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("ursog/cross-platform-social-kpi-delta-anomaly-monitor").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 '{}' |
apify call ursog/cross-platform-social-kpi-delta-anomaly-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ursog/cross-platform-social-kpi-delta-anomaly-monitor"
        }
    }
}
```

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/SJmeMgF2VCodsVNhl/builds/HdDYuMEZrAoP8bY4t/openapi.json
