# Structured Data Competitor Gap Prioritizer (`zinin/structured-data-competitor-gap-prioritizer`) Actor

Prioritize supplied structured-data competitor gaps with transparent impact, effort, confidence, and equal-domain coverage math.

- **URL**: https://apify.com/zinin/structured-data-competitor-gap-prioritizer.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** SEO tools, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $17.00 / 1,000 priority plan delivereds

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/actors/running/actors-in-store.md#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

## Structured Data Competitor Gap Prioritizer

Turn one marketer-supplied comparison into one deterministic, auditable implementation queue. The Actor performs no crawl and sends no domain to a network service.

### What you get

One default-Dataset row containing every supplied opportunity, equal-domain competitor medians, coverage gaps, all score components, decision bands, queue dispositions, ranks, fixed human-review actions, limitations, and billing identity.

### Who uses it

SEO leads, ecommerce teams, publishers, local-search teams, and agencies that already have comparable coverage estimates and need a transparent order of work. It is not a scanner or a substitute for validating visible facts and current search policies.

### How to run

Use the Console input form or the public Task `prioritize-structured-data-competitor-gaps` (**Structured Data Competitor Gap Priority Plan — Example**). Supply one canonical target domain, 1–10 canonical competitor domains, and 1–8 unique fixed opportunities. Each competitor coverage array must follow the declared domain order.

The public Task is bounded to 128 MB, 90 seconds, and a maximum total charge of `$0.025000`. Exact-build examples are bundled as `prefill-input.json`, `all-below-threshold-input.json`, `eight-candidate-cap-input.json`, and `invalid-positional-input.json`.

![From supplied coverage estimates to one deterministic priority plan](https://api.apify.com/v2/key-value-stores/nk3HaYUtc9EOY79qR/records/structured-data-competitor-gap-prioritizer-priority-plan.webp)

### Pricing

The paid unit is one complete delivered plan, not one candidate. Exact event prices are:

| Tier | Start | Complete plan | Maximum successful run |
| --- | ---: | ---: | ---: |
| FREE | `$0.005000` | `$0.020000` | `$0.025000` |
| BRONZE | `$0.004750` | `$0.019000` | `$0.023750` |
| SILVER | `$0.004500` | `$0.018000` | `$0.022500` |
| GOLD | `$0.004250` | `$0.017000` | `$0.021250` |
| PLATINUM | `$0.004100` | `$0.016400` | `$0.020500` |
| DIAMOND | `$0.004000` | `$0.016000` | `$0.020000` |

At 128 MB, the platform minimum is one Actor Start event. The Task's `$0.025000` charge cap therefore covers the maximum successful FREE run; every paid tier is lower. Invalid, budget-blocked, and storage-conflict runs do not emit `result-found`.

### Input contract

Input contains exactly seven keys after default insertion: `schemaVersion`, `assessmentId`, `targetDomain`, `competitorDomains`, `opportunities`, `minimumGapBps`, and `maxPriorities`. The last two default to 1,000 and 3. Domains must already be lowercase canonical registrable ASCII domains. Coverage is an integer from 0 to 10,000 basis points; business impact and effort are integers from 1 to 5; confidence is `LOW`, `MEDIUM`, or `HIGH`.

### Priority math

Every competitor domain has equal weight. For even competitor counts, the median is `floor((leftMiddle + rightMiddle + 1) / 2)`. The nonnegative gap is median minus target. The exact score is:

```text
impactBps        = businessImpact * 2000
effortEaseBps    = (6 - implementationEffort) * 2000
confidenceBps    = LOW:4000, MEDIUM:7000, HIGH:10000
weightedSum      = 40*gap + 30*impact + 15*confidence + 15*ease
priorityScoreBps = floor((2*weightedSum + 100) / 200)
```

Eligible decisions sort by score descending, then gap descending, then the fixed opportunity order. Ineligible decisions follow in fixed opportunity order.

### Real output

The bundled prefill yields four decisions in this exact order:

```json
[
  {"opportunityCode":"PRODUCT_OFFER","competitorMedianCoverageBps":8000,"gapBps":5500,"priorityScoreBps":7600,"scoreBand":"NOW","queueDisposition":"SELECTED","queueRank":1},
  {"opportunityCode":"ORGANIZATION_IDENTITY","competitorMedianCoverageBps":8500,"gapBps":4500,"priorityScoreBps":7500,"scoreBand":"NOW","queueDisposition":"SELECTED","queueRank":2},
  {"opportunityCode":"ARTICLE_PROVENANCE","competitorMedianCoverageBps":7500,"gapBps":1500,"priorityScoreBps":5250,"scoreBand":"NEXT","queueDisposition":"SELECTED","queueRank":3},
  {"opportunityCode":"BREADCRUMB_NAVIGATION","competitorMedianCoverageBps":8500,"gapBps":0,"priorityScoreBps":4050,"scoreBand":"NO_MATERIAL_GAP","queueDisposition":"BELOW_MINIMUM_GAP","queueRank":null}
]
```

### Field dictionary

The 15 top-level fields identify the plan, repeat its native target/assessment identity, preserve sorted competitors, reconcile candidate/eligible/selected counts, record the queue settings, contain every decision and disposition count, state four fixed limitations, and identify the one billable result unit. Each decision exposes raw buyer inputs, median/gap, four score components, eligibility/band/disposition/rank, one fixed action, and domain-paired competitor values.

### Decision bands and actions

Eligible scores of at least 7,500 are `NOW`; scores of at least 5,000 are `NEXT`; lower eligible scores are `LATER`. Ineligible rows are always `NO_MATERIAL_GAP`. Selected rows are capped by `maxPriorities`; other eligible rows are `DEFERRED_BY_CAP`. All fixed actions require human review and every row has `safeToAutomate:false`.

### Evidence and limitations

Coverage, impact, effort, confidence, and page counts are buyer declarations. The Actor does not observe websites, reconstruct samples, or verify comparability. A gap does not establish search eligibility, visibility, citation, ranking, traffic, conversion, revenue, or causation. Apply markup only for truthful visible facts under current policies.

You must own or be authorized to use the supplied assessment inputs. The Actor transfers no input outside Apify and grants no rights to the underlying measurements or website facts.

### Integration recipes

Use `{{links.apiDefaultDatasetUrl}}/items` to fetch the one plan after a successful run. The API, Python, and JavaScript clients can start the Actor with the same seven-key JSON object and then read the run's default Dataset. The Apify CLI can call the Actor with a file containing that object. Through Apify MCP, invoke the Actor tool and inspect its Dataset resource. In n8n and Make, use the authenticated Apify Actor module, map only the seven accepted keys, wait for completion, and read the default Dataset item. Keep platform credentials in each integration's credential store—never in Actor Input.

Route `SELECTED` rows into a ticketing review, retain score components for approval notes, and preserve `competitorDomainValues` so each estimate remains attached to its owner. Treat the default Dataset plus the named `result-found` count as delivery truth.

### Operating guide

Use one comparable sampling and measurement method for every supplied domain. Keep `assessmentId` stable for the assessment, revise it for a materially new measurement, and review every action against visible page facts. A restart that finds a nonempty default Dataset stops instead of appending or charging a replacement.

![Equal-domain competitor median and priority scoring flow](https://api.apify.com/v2/key-value-stores/nk3HaYUtc9EOY79qR/records/structured-data-competitor-gap-prioritizer-coverage-median.webp)

### FAQ

**Does it crawl sites?** No. **Does it call an LLM, OpenRouter, search engine, browser, DNS, proxy, child Actor, or webhook?** No. **Can an all-below-threshold assessment succeed?** Yes; its complete negative plan is still the purchased result. **Will it repair malformed input?** No; it rejects the whole assessment.

### Other public tools

Use a dedicated audit or benchmark Actor when you need site observation or Schema.org extraction. This product begins only after a marketer has prepared comparable coverage estimates; it is materially separate from audit-row source adapters and per-gap benchmark rows.

# Actor input Schema

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

Use version 1.0 for this prioritization contract.

## `assessmentId` (type: `string`):

Enter a stable identifier for this planning assessment, such as q3-2026.

## `targetDomain` (type: `string`):

Enter the canonical registrable domain whose structured-data opportunities you want to prioritize.

## `competitorDomains` (type: `array`):

Enter 1 to 10 canonical registrable competitor domains in the same order used by every competitor coverage array.

## `opportunities` (type: `array`):

Supply 1 to 8 unique fixed opportunities with target coverage, one position-paired competitor value per declared domain, and your explicit planning weights.

## `minimumGapBps` (type: `integer`):

Require at least this target-below-competitor median gap before a candidate can enter the selected queue.

## `maxPriorities` (type: `integer`):

Select the first 1 to 8 eligible candidates after deterministic ordering; every supplied candidate still appears in the plan.

## Actor input object example

```json
{
  "schemaVersion": "1.0",
  "assessmentId": "q3-2026",
  "targetDomain": "example.com",
  "competitorDomains": [
    "example.net",
    "example.org"
  ],
  "opportunities": [
    {
      "opportunityCode": "ORGANIZATION_IDENTITY",
      "targetCoverageBps": 4000,
      "competitorCoverageBps": [
        9000,
        8000
      ],
      "businessImpact": 5,
      "implementationEffort": 2,
      "evidenceConfidence": "HIGH",
      "affectedTargetPages": 25
    },
    {
      "opportunityCode": "PRODUCT_OFFER",
      "targetCoverageBps": 2500,
      "competitorCoverageBps": [
        7500,
        8500
      ],
      "businessImpact": 5,
      "implementationEffort": 3,
      "evidenceConfidence": "HIGH",
      "affectedTargetPages": 120
    },
    {
      "opportunityCode": "ARTICLE_PROVENANCE",
      "targetCoverageBps": 6000,
      "competitorCoverageBps": [
        8000,
        7000
      ],
      "businessImpact": 4,
      "implementationEffort": 2,
      "evidenceConfidence": "MEDIUM",
      "affectedTargetPages": 40
    },
    {
      "opportunityCode": "BREADCRUMB_NAVIGATION",
      "targetCoverageBps": 9000,
      "competitorCoverageBps": [
        8000,
        9000
      ],
      "businessImpact": 3,
      "implementationEffort": 2,
      "evidenceConfidence": "MEDIUM",
      "affectedTargetPages": 200
    }
  ],
  "minimumGapBps": 1000,
  "maxPriorities": 3
}
```

# Actor output Schema

## `priorityPlan` (type: `string`):

One supplied-assessment plan containing every candidate, transparent score components, queue dispositions, and fixed actions.

# 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",
    "assessmentId": "q3-2026",
    "targetDomain": "example.com",
    "competitorDomains": [
        "example.net",
        "example.org"
    ],
    "opportunities": [
        {
            "opportunityCode": "ORGANIZATION_IDENTITY",
            "targetCoverageBps": 4000,
            "competitorCoverageBps": [
                9000,
                8000
            ],
            "businessImpact": 5,
            "implementationEffort": 2,
            "evidenceConfidence": "HIGH",
            "affectedTargetPages": 25
        },
        {
            "opportunityCode": "PRODUCT_OFFER",
            "targetCoverageBps": 2500,
            "competitorCoverageBps": [
                7500,
                8500
            ],
            "businessImpact": 5,
            "implementationEffort": 3,
            "evidenceConfidence": "HIGH",
            "affectedTargetPages": 120
        },
        {
            "opportunityCode": "ARTICLE_PROVENANCE",
            "targetCoverageBps": 6000,
            "competitorCoverageBps": [
                8000,
                7000
            ],
            "businessImpact": 4,
            "implementationEffort": 2,
            "evidenceConfidence": "MEDIUM",
            "affectedTargetPages": 40
        },
        {
            "opportunityCode": "BREADCRUMB_NAVIGATION",
            "targetCoverageBps": 9000,
            "competitorCoverageBps": [
                8000,
                9000
            ],
            "businessImpact": 3,
            "implementationEffort": 2,
            "evidenceConfidence": "MEDIUM",
            "affectedTargetPages": 200
        }
    ],
    "minimumGapBps": 1000,
    "maxPriorities": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/structured-data-competitor-gap-prioritizer").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",
    "assessmentId": "q3-2026",
    "targetDomain": "example.com",
    "competitorDomains": [
        "example.net",
        "example.org",
    ],
    "opportunities": [
        {
            "opportunityCode": "ORGANIZATION_IDENTITY",
            "targetCoverageBps": 4000,
            "competitorCoverageBps": [
                9000,
                8000,
            ],
            "businessImpact": 5,
            "implementationEffort": 2,
            "evidenceConfidence": "HIGH",
            "affectedTargetPages": 25,
        },
        {
            "opportunityCode": "PRODUCT_OFFER",
            "targetCoverageBps": 2500,
            "competitorCoverageBps": [
                7500,
                8500,
            ],
            "businessImpact": 5,
            "implementationEffort": 3,
            "evidenceConfidence": "HIGH",
            "affectedTargetPages": 120,
        },
        {
            "opportunityCode": "ARTICLE_PROVENANCE",
            "targetCoverageBps": 6000,
            "competitorCoverageBps": [
                8000,
                7000,
            ],
            "businessImpact": 4,
            "implementationEffort": 2,
            "evidenceConfidence": "MEDIUM",
            "affectedTargetPages": 40,
        },
        {
            "opportunityCode": "BREADCRUMB_NAVIGATION",
            "targetCoverageBps": 9000,
            "competitorCoverageBps": [
                8000,
                9000,
            ],
            "businessImpact": 3,
            "implementationEffort": 2,
            "evidenceConfidence": "MEDIUM",
            "affectedTargetPages": 200,
        },
    ],
    "minimumGapBps": 1000,
    "maxPriorities": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/structured-data-competitor-gap-prioritizer").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 '{
  "schemaVersion": "1.0",
  "assessmentId": "q3-2026",
  "targetDomain": "example.com",
  "competitorDomains": [
    "example.net",
    "example.org"
  ],
  "opportunities": [
    {
      "opportunityCode": "ORGANIZATION_IDENTITY",
      "targetCoverageBps": 4000,
      "competitorCoverageBps": [
        9000,
        8000
      ],
      "businessImpact": 5,
      "implementationEffort": 2,
      "evidenceConfidence": "HIGH",
      "affectedTargetPages": 25
    },
    {
      "opportunityCode": "PRODUCT_OFFER",
      "targetCoverageBps": 2500,
      "competitorCoverageBps": [
        7500,
        8500
      ],
      "businessImpact": 5,
      "implementationEffort": 3,
      "evidenceConfidence": "HIGH",
      "affectedTargetPages": 120
    },
    {
      "opportunityCode": "ARTICLE_PROVENANCE",
      "targetCoverageBps": 6000,
      "competitorCoverageBps": [
        8000,
        7000
      ],
      "businessImpact": 4,
      "implementationEffort": 2,
      "evidenceConfidence": "MEDIUM",
      "affectedTargetPages": 40
    },
    {
      "opportunityCode": "BREADCRUMB_NAVIGATION",
      "targetCoverageBps": 9000,
      "competitorCoverageBps": [
        8000,
        9000
      ],
      "businessImpact": 3,
      "implementationEffort": 2,
      "evidenceConfidence": "MEDIUM",
      "affectedTargetPages": 200
    }
  ],
  "minimumGapBps": 1000,
  "maxPriorities": 3
}' |
apify call zinin/structured-data-competitor-gap-prioritizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinin/structured-data-competitor-gap-prioritizer"
        }
    }
}

```

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/MDHGBhnmQQ6lwEfPA/builds/LafQ4S6rCR9AjRSUl/openapi.json
