# Rank-Drop Alerts: Predictive SEO Intelligence (`solutionssmart/predictive-seo-intelligence`) Actor

Rank-drop alerts from your OpenSEO (or any) rank history: find which keywords are falling and which pages to refresh first. Paste OpenSEO get_rank_history output directly.

- **URL**: https://apify.com/solutionssmart/predictive-seo-intelligence.md
- **Developed by:** [Solutions Smart](https://apify.com/solutionssmart) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 forecasted series

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

### What is Predictive SEO Intelligence?

**Rank-drop alerts from your OpenSEO (or any) rank history: find which keywords are falling and which pages to refresh first.**

Paste OpenSEO `get_rank_history` output straight into the **Records** field (or the `records` input over the API). Rows with `checkedAt` are read as timestamps automatically, and an optional `url` per row is carried through to every output row and action.

The example below is also the prefilled form input, so the Store "Try for free" run uses it: 5 keywords with 14 daily checks each (2 clear drops, 1 improver, 1 noisy, 1 stable). Only the 5 position series are charged, about $0.25; the constant searchVolume series are free.

#### Input example

```json
{
  "records": [
    {"keyword": "seo audit tool", "checkedAt": "2026-06-01T06:00:00Z", "position": 4, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-02T06:00:00Z", "position": 5, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-03T06:00:00Z", "position": 7, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-04T06:00:00Z", "position": 8, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-05T06:00:00Z", "position": 10, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-06T06:00:00Z", "position": 11, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-07T06:00:00Z", "position": 12, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-08T06:00:00Z", "position": 14, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-09T06:00:00Z", "position": 15, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-10T06:00:00Z", "position": 17, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-11T06:00:00Z", "position": 18, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-12T06:00:00Z", "position": 19, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-13T06:00:00Z", "position": 21, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "seo audit tool", "checkedAt": "2026-06-14T06:00:00Z", "position": 22, "searchVolume": 1000, "url": "https://example.com/seo-audit-tool"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-01T06:00:00Z", "position": 3, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-02T06:00:00Z", "position": 3, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-03T06:00:00Z", "position": 3, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-04T06:00:00Z", "position": 4, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-05T06:00:00Z", "position": 3, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-06T06:00:00Z", "position": 3, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-07T06:00:00Z", "position": 4, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-08T06:00:00Z", "position": 3, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-09T06:00:00Z", "position": 12, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-10T06:00:00Z", "position": 14, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-11T06:00:00Z", "position": 15, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-12T06:00:00Z", "position": 17, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-13T06:00:00Z", "position": 18, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "rank tracker api", "checkedAt": "2026-06-14T06:00:00Z", "position": 19, "searchVolume": 1100, "url": "https://example.com/rank-tracker-api"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-01T06:00:00Z", "position": 18, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-02T06:00:00Z", "position": 17, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-03T06:00:00Z", "position": 16, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-04T06:00:00Z", "position": 16, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-05T06:00:00Z", "position": 15, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-06T06:00:00Z", "position": 13, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-07T06:00:00Z", "position": 12, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-08T06:00:00Z", "position": 11, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-09T06:00:00Z", "position": 10, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-10T06:00:00Z", "position": 9, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-11T06:00:00Z", "position": 8, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-12T06:00:00Z", "position": 8, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-13T06:00:00Z", "position": 7, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "ai content optimization", "checkedAt": "2026-06-14T06:00:00Z", "position": 6, "searchVolume": 1700, "url": "https://example.com/ai-content-optimization"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-01T06:00:00Z", "position": 12, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-02T06:00:00Z", "position": 15, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-03T06:00:00Z", "position": 10, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-04T06:00:00Z", "position": 14, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-05T06:00:00Z", "position": 9, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-06T06:00:00Z", "position": 13, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-07T06:00:00Z", "position": 16, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-08T06:00:00Z", "position": 11, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-09T06:00:00Z", "position": 12, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-10T06:00:00Z", "position": 9, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-11T06:00:00Z", "position": 15, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-12T06:00:00Z", "position": 13, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-13T06:00:00Z", "position": 10, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "free backlink checker", "checkedAt": "2026-06-14T06:00:00Z", "position": 14, "searchVolume": 1400, "url": "https://example.com/free-backlink-checker"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-01T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-02T06:00:00Z", "position": 6, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-03T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-04T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-05T06:00:00Z", "position": 6, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-06T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-07T06:00:00Z", "position": 4, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-08T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-09T06:00:00Z", "position": 6, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-10T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-11T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-12T06:00:00Z", "position": 6, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-13T06:00:00Z", "position": 5, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"},
    {"keyword": "keyword research software", "checkedAt": "2026-06-14T06:00:00Z", "position": 6, "searchVolume": 1800, "url": "https://example.com/keyword-research-software"}
  ],
  "timestampField": "checkedAt",
  "groupBy": ["keyword"],
  "metrics": [
    {"field": "searchVolume", "type": "higher_is_better"},
    {"field": "position", "type": "lower_is_better", "lowerIsBetter": true}
  ],
  "forecastEngine": "baseline",
  "tasks": ["volatility_flagging", "anomaly_detection", "action_prioritization", "joint_demand_ranking"]
}
```

Send at least 7 checks per keyword. The run summary's `prioritizedActions` lists the falling keywords first, with the page to work on:

```json
[
  {"group": {"keyword": "seo audit tool"}, "metric": "position", "url": "https://example.com/seo-audit-tool",
   "action": "protect_ranking", "priority": "high", "expectedImpact": 100, "reason": "forecast_rank_deterioration"},
  {"group": {"keyword": "rank tracker api"}, "metric": "position", "url": "https://example.com/rank-tracker-api",
   "action": "protect_ranking", "priority": "high", "expectedImpact": 100, "reason": "forecast_rank_deterioration"}
]
```

Under the hood it forecasts **keyword demand and ranking trends** from your historical SEO data, so you know what to publish, refresh, protect, or monitor before the trend moves.

Upload past keyword rankings or search volumes, and get back which keywords to publish, refresh, or protect next. Give it a dataset of past search volumes or ranking positions — from a rank tracker, SEO scraper, or Search Console export — and it returns forecasts, **opportunity scores**, and **rank-risk alerts** for every keyword.

- 📈 **Forecast search demand** — predict search volume, traffic, and visibility per keyword.
- 🚨 **Predict rank drops** — position series are scored for deterioration risk (lower is better).
- 🎯 **Prioritize content work** — every series gets a deterministic action: `publish_content_now`, `refresh_content`, `protect_ranking`, `monitor`, or `low_priority`.
- 🔗 **Combine demand + ranking signals** — when both `searchVolume` and `position` exist, you get one joint priority per keyword. The two forecasts stay separate; the joint row is labelled as a combination of them.
- 📏 **Judge how far to trust each forecast** — every forecast has an 80% likely range, a data-sufficiency flag, last year's values for the same dates (when you have 12+ months), an in-run backtest, and a running tally of how earlier predictions turned out.
- 🧾 **Client-ready export** — a printable HTML report and a CSV, with search volume and ranking in separate sections and a plain explanation of where the data comes from.
- ⚙️ **Runs on the Apify platform** — run history, datasets, API access, scheduling, webhooks, and integrations with the rest of your pipeline come built in.

The Actor is provider-agnostic: it does not require a specific commercial SEO tool. Your dataset defines the timestamp, grouping fields, metric fields, and what "good" means for each metric.

### Tutorial: forecast your keywords in 5 steps

1. **Gather your keyword history.** Get at least 7 observations per keyword and metric — about 120 daily points, like the demo data, works well. Any source works: an Apify dataset, an HTTPS CSV/JSON file, or inline records.
2. **Test your file with the quick engine (baseline).** Run once with `forecastEngine: baseline` to confirm your field names, grouping, and metric meanings. The baseline runs instantly and needs no model download.
3. **Get production forecasts (timesfm).** Change `forecastEngine` to `timesfm` and re-run. A 20-series demo — 10 keywords × 2 metrics — takes about a minute, with progress logged per chunk of 8 series.
4. **Publish, refresh, or protect by priority.** Sort the opportunities dataset by `priority`, then `opportunityScore`/`riskScore`. Publish or refresh where demand grows, protect where rank risk rises, monitor the rest.
5. **Send the report.** Open `REPORT.html` in the run's key-value store (or download `REPORT.csv`). Run on a schedule with the same `historyStoreName` and the report starts showing past predictions next to what actually happened.

How it fits your pipeline:

```text
SEO scraper or rank tracker
        -> historical dataset
        -> Predictive SEO Intelligence
        -> forecast, opportunity, and risk datasets
        -> content, reporting, or alert workflow
```

### Input

#### Where can your historical data come from?

| Source | How to configure it |
|---|---|
| Apify dataset | `sourceType: dataset` + `datasetId` |
| HTTPS CSV file | `sourceType: csv` + `csvUrl` |
| HTTPS JSON array | `sourceType: json` + `jsonUrl` |
| Inline records | `source: { "type": "direct", "records": [...] }` |

Remote URLs must use HTTPS on the default port. Loopback, private-network, and reserved destinations are rejected, and redirects are not followed.

#### What must each record contain?

| Field | Meaning | Default |
|---|---|---|
| Timestamp field | ISO date/datetime or Unix timestamp | `date` |
| Group-by fields | Identify each series, e.g. `keyword`, or `keyword` + `domain` | `["keyword"]` |
| Metric fields | Numeric values to forecast, e.g. `searchVolume`, `position` | — |
| `url` (optional) | Landing page for the keyword; copied to every output row and action | — |

Each metric declares what "good" means: `higher_is_better` (demand, traffic), `lower_is_better` (ranking position), or `neutral`. You can write `"lowerIsBetter": true` instead of `"type": "lower_is_better"`; when both are set, `lowerIsBetter` wins. When neither is given, rank fields (`position`, `rank`, `ranking`, `avgPosition`, `averagePosition`, `rankPosition`, `serpPosition`, `googlePosition`, case-insensitive) default to `lower_is_better` and everything else to `higher_is_better`. Only those exact names count as ranks, so `rankedKeywords` or `pageRank` stay higher-is-better.

Rank-history exports such as OpenSEO's `get_rank_history` (`keyword`, `checkedAt`, `position`) work as is: set `timestampField` to `checkedAt`.

```json
{
  "timestampField": "date",
  "groupBy": ["keyword"],
  "metrics": [
    { "field": "searchVolume", "type": "higher_is_better" },
    { "field": "position", "type": "lower_is_better" }
  ],
  "forecastHorizon": 30,
  "forecastEngine": "timesfm"
}
```

#### Which settings matter most?

| Setting | Effect | Default |
|---|---|---|
| `forecastHorizon` | Future periods to predict (1–1000) | `30` |
| `frequency` | `auto` infers hourly/daily/weekly/monthly from timestamps | `auto` |
| `minHistoryPoints` | Minimum observations per series (3–1000) | `7` |
| `maxSeries` | Safety stop if input yields more series than this (1–50000) | `5000` |
| `forecastEngine` | `timesfm` for production, `baseline` for validation | `timesfm` |
| `allowFallback` | Fall back to baseline only if TimesFM cannot load | `false` |
| `maxTrackedPosition` | Deepest rank your tracker records (e.g. `100`); rank forecasts are capped at it | 100, or the deepest position in the history if larger |
| `backtest` | Hide the end of each series, forecast it from the earlier data, and score the result. Not charged. With TimesFM, only an evenly spread sample of up to 100 series per run is backtested, to limit the extra forecasting time | `true` |
| `saveHistory` | Save predictions so later runs can compare them with actual values | `true` |
| `historyStoreName` | Named key-value store that keeps that history. Use one name per client or project | `seo-predictor-history` |

Duplicate timestamps are averaged, missing intervals are counted (not invented), and unusable rows are skipped with reasons reported in the run summary. Constant series (one value repeated, such as a single current search volume) are skipped before forecasting: they carry no trend, are not charged, and never reach the action list.

### Output

#### What does a forecast record look like?

The `forecastResults` dataset holds one record per grouped metric series, with the full forward curve including prediction intervals (`p10`/`p50`/`p90`) when the model returns them:

```json
{
  "group": { "keyword": "agentic seo" },
  "metric": "searchVolume",
  "url": "https://example.com/agentic-seo",
  "lowerIsBetter": false,
  "history": { "points": 120, "missingIntervals": 0 },
  "currentValue": 1800,
  "forecastEndValue": 4300,
  "changePercent": 138.9,
  "trend": "rapid_growth",
  "confidence": "medium",
  "opportunityScore": 91,
  "riskScore": 0,
  "deteriorating": false,
  "noiseBand": 84.2,
  "recommendedAction": "publish_content_now",
  "volatility": { "flag": false, "level": "medium", "rangePercent": 22.4, "noiseBand": 84.2, "adjustedConfidence": "medium", "reasonCodes": [] },
  "anomalies": [
    { "timestamp": "2026-06-09T00:00:00+00:00", "value": 2400, "previousValue": 1600, "change": 800, "type": "spike", "impact": "favorable", "zScore": 6.1 }
  ],
  "forecast": [
    { "timestamp": "2026-07-30T00:00:00+00:00", "value": 1842, "p10": 1700, "p50": 1842, "p90": 1990 }
  ],
  "forecastType": "search_volume",
  "likelyRange": { "low": 3500, "high": 5100, "pointEstimate": 4300, "coveragePercent": 80, "timestamp": "2026-08-28T00:00:00+00:00" },
  "direction": "rising",
  "dataSufficiency": { "status": "sufficient", "reason": "120 observations over 119 days, 0 missing intervals; enough history for this horizon", "observations": 120, "spanDays": 119.0, "missingIntervals": 0 },
  "seasonalReference": { "available": false, "note": "seasonal pattern unknown (needs 12+ months of history)" },
  "backtest": { "available": true, "heldOutPoints": 30, "model": "timesfm-2.5-200m-pytorch", "insideRangePercent": 73.3, "mae": 212.5, "directionCorrect": true },
  "trackRecord": { "predictionsEvaluated": 3, "pointsEvaluated": 41, "insideRangePercent": 78.0, "mae": 190.2, "directionCorrectPercent": 66.7,
                   "pastPredictions": [ { "predictedFrom": "2026-05-31T00:00:00+00:00", "targetDate": "2026-06-15T00:00:00+00:00", "predicted": 1650, "low": 1480, "high": 1810, "actual": 1720, "insideRange": true } ] }
}
```

Search volume and ranking forecasts are always separate records. `forecastType` is `search_volume` for higher-is-better metrics (search volume, clicks, impressions) and `ranking` for lower-is-better metrics such as `position`. `trend` is the older label and is kept for existing integrations; `direction` is the range-aware label described in [How far can you trust a forecast?](#how-far-can-you-trust-a-forecast). Series too short for TimesFM carry an `engineNote` saying the baseline trend was used instead.

Rank forecasts (point values and intervals) never go below position 1, and never above `maxTrackedPosition` (default: 100, or the deepest position in the history if larger). `confidence` and `volatility` measure the scatter around the series' trend, not its raw range, so a clean one-way rank drop is high confidence while a series that jumps around is not. `anomalies` lists history points whose step change is far outside the series' usual step; `impact` says whether the move was good or bad for that metric.

#### What does an opportunity signal look like?

The `opportunities` dataset holds compact, priority-sorted signals (each with `url`, `volatility`, and `anomalies`), plus one joint record per keyword when ranking data is present alongside demand. If the keyword's search volume was constant, the joint record reports demand as `flat`:

```json
{
  "group": { "keyword": "agentic seo" },
  "url": "https://example.com/agentic-seo",
  "forecastType": "combined",
  "combinationOf": ["search_volume", "ranking"],
  "components": {
    "searchVolume": { "metric": "searchVolume", "direction": "rising", "likelyRange": { "low": 3500, "high": 5100, "pointEstimate": 4300, "coveragePercent": 80 }, "dataSufficiency": "sufficient" },
    "ranking": { "metric": "position", "direction": "worsening", "likelyRange": { "low": 9, "high": 16, "pointEstimate": 12, "coveragePercent": 80 }, "dataSufficiency": "limited" }
  },
  "directions": { "searchVolume": "rising", "ranking": "worsening" },
  "signals": { "searchDemand": "rapid_growth", "ranking": "declining" },
  "priority": "high",
  "recommendedAction": "protect_ranking",
  "reasonCodes": ["forecast_demand_growth", "forecast_rank_deterioration"]
}
```

Rising demand plus a falling rank means protect the ranking first — demand you can't hold doesn't convert. A critical or `rapid_decline` rank drop is `high` priority even when demand is flat. The joint row is a combination of the two separate forecasts, not a third forecast; `components` repeats each one's direction, range, and data-sufficiency flag so you can check them, and `directions` gives the two range-aware directions on their own (the client report shows these). Priority and action only follow a forecast whose range-aware direction agrees (`rising` demand, `worsening` rank): when a forecast says `no clear change` or `not enough data`, it does not raise the priority, and an insufficient forecast adds the reason code `insufficient_data`. `signals` holds the older point-estimate labels and is kept only for existing integrations; it shows `insufficient_data` for a forecast with too little history.

#### Where is the run summary?

The default dataset receives a `run_summary` record, and the `SUMMARY` key-value record repeats it: series processed, charged, constant, and skipped (with reasons), models used, fallback status, horizon, the top 20 opportunities, and the top 20 prioritized actions (each with its `url`). The action list keeps one entry per keyword and action. `trackRecord` totals the backtest and the past-prediction tally, separately for search volume and ranking (their errors are in different units, so they are never mixed).

#### Where is the client report?

Each run writes two files to its default key-value store, linked from the run's Output tab:

- `REPORT.html` — a printable page (use your browser's Print to save a PDF) with separate search volume and ranking sections, the likely range, direction, data-sufficiency flag, last year's values, the backtest, past predictions next to actual values, and a "Where this data comes from" section.
- `REPORT.csv` — the same per-series rows for a spreadsheet. Text cells that start with `=`, `+`, `-`, or `@` get a leading `'` so spreadsheet apps don't run them as formulas.

For a `csvUrl` or `jsonUrl` source, both files name only the host (for example `docs.google.com`), never the full link, so access tokens or sheet keys in the URL are not passed on to your client. The "Combined signals" section shows each forecast's range-aware direction and data-sufficiency flag, not the older point-estimate labels.

### How far can you trust a forecast?

Short SEO histories get pushed around by algorithm updates and seasonality, so the Actor shows its uncertainty instead of a bare "growing" or "dropping" label.

- **Likely range.** `likelyRange` gives the forecast for the last day of the horizon plus a low and high value. The range runs from the 10th to the 90th percentile, so if the model is well calibrated about 80% of actual values should land inside it. The per-day curve is in `forecast` (`p10` to `p90`).
- **Range-aware direction.** `direction` says `rising` or `falling` (for rankings: `improving` or `worsening`, where a lower position number is better) only when the whole range sits above or below today's value. Otherwise it says `no clear change`.
- **Data sufficiency.** `dataSufficiency.status` is `sufficient`, `limited`, or `insufficient`, with a reason that gives the number of observations, the time span, and missing intervals. Fewer than 10 observations, or more than half the intervals missing, is `insufficient`, and those series get `not enough data` instead of a direction. Fewer observations than 30 (or than the horizon, if longer) is `limited`.
- **Seasonal reference.** With at least about 13 months of history, `seasonalReference` shows the values from the same dates last year and says whether the forecast is in line with last year's move (a change under 10%, or under 2 positions for rankings, counts as flat). With less history it says "seasonal pattern unknown (needs 12+ months of history)".
- **Backtest (this run).** For each series with enough data, the Actor hides the last part (up to the horizon, at most a third of the history), forecasts it from the earlier data with the same engine as the full series (a series long enough for TimesFM is backtested with TimesFM even when its shortened history is under 32 points), and reports how many hidden points fell inside the range, the mean absolute error (MAE, in the metric's own units), and whether the direction was right. A change under 1 position, or under 2% for search volume, counts as flat when scoring direction. With TimesFM, only up to 100 series per run (spread evenly through the input) are backtested, because each backtest is a second TimesFM forecast; the others say so in `backtest.reason`. Baseline backtests are cheap and always run.
- **Past predictions vs actual.** With `saveHistory` on, each run stores a compact copy of its predictions (up to 30 points per prediction, the last 24 predictions per series) in the named key-value store `historyStoreName`. Later runs check those predictions against actual values that have arrived since and show the rows in `trackRecord.pastPredictions`, plus a running tally: predictions checked, % inside the range, MAE, and direction accuracy. Re-running on the same data replaces that day's stored prediction rather than counting it twice. The tally only grows if you keep using the same store name and keep sending newer data. History is kept per keyword group and metric, plus the site (host name of the row's `url`) when your rows have one, so two clients tracking the same keyword for different sites do not mix. Without a `url` field, the same keyword in the same store is treated as one series, so use a separate `historyStoreName` per client.

If the backtest or the tally shows far fewer than 80% of actual values inside the range, the ranges are too narrow for that data, and you should read the forecasts as rougher than they look. This is common with the baseline engine on short, very smooth histories.

### How to predict keyword rank drops and demand growth

Scores are transparent, bounded 0–100, and meant for sorting work — not calibrated probabilities:

- Growth direction: up to 50 points
- Trend consistency: up to 20 points
- Forecast uncertainty: up to 15 points
- Current stability: up to 15 points

Higher-is-better metrics earn opportunity points; ranking metrics (lower is better) get a risk score only when they deteriorate. The noise band is twice a series' usual wobble around its trend, and never less than 2 positions for ranks. Deterioration (position number going up) needs one of three things:

- a recent level shift beyond the noise of the points before it;
- a clear adverse trend in the history that has already moved more than the band (1.5 bands for ranks), with the forecast also moving past the band;
- a forecast move more than three bands out, such as a model-predicted drop on a flat history.

A ±1–2 position wobble, a slow 2-position drift, or a noisy keyword with no direction stays at `low` risk, and an improving rank never gets a risk score. Rank risk counts positions lost relative to the current rank, capped at one results page (10 positions), so falling a full page is critical at any depth.

Risk labels are `low`, `medium`, `high`, and `critical`. Trend labels are `rapid_growth`, `growth`, `stable`, `declining`, `rapid_decline`, and `volatile`; ranking metrics say `improving` and `rapid_improvement` instead of growth. These `trend` labels drive the scores and actions and are kept for existing integrations, but they do not take the likely range into account; for reading a single forecast, use `direction` and `dataSufficiency` instead.

### Which forecast model should you choose?

| Engine | Best for | Notes |
|---|---|---|
| `timesfm` | Production forecasts | Google TimesFM 2.5 (200M). Baked into the image; CPU inference in chunks of 8 with live progress logs. |
| `baseline` | Validating input and grouping | Instant deterministic linear trend. Not equivalent to TimesFM. |

Series with fewer than 32 points (one TimesFM input patch) use the baseline trend even when `timesfm` is selected, and say so in `engineNote`: on such short histories TimesFM mostly sees padding and adds little, while costing far more CPU time. If every series in a run is that short, TimesFM is not loaded at all, so the run starts in seconds instead of loading an 800 MB model. Set the `TIMESFM_MIN_POINTS` environment variable (for example to `1`) to change the cutoff.

TimesFM needs about 800 MB of disk and about 1.5 GB of RAM. The Actor defaults to 2 GB of memory, the minimum for TimesFM. Runs that only use the baseline (`forecastEngine: baseline`, or every series shorter than 32 points) never load TimesFM and work at 1 GB. On Apify, more memory also gives more CPU, so a large TimesFM run may finish faster at 4 GB; we have not measured how much. The image installs the CPU-only PyTorch build, because the default build bundles several GB of GPU libraries this Actor never uses. The Actor compiles the model for your actual workload (context capped at 512 points, horizon rounded to the next 128-step patch) and truncates very long histories to their most recent points. Advanced tuning is available via `TIMESFM_MAX_CONTEXT` and `TIMESFM_BATCH_CHUNK`. If TimesFM cannot load, the run fails unless `allowFallback` is `true`. The checkpoint is the public [TimesFM project](https://github.com/google-research/timesfm) release; the container pins its official source because the public PyPI package may expose an older API.

### How do faster classification and tasks work?

- **Fast by default:** every series gets an offline heuristic intent label (`informational`, `transactional`, `navigational`, `commercial`) at ~400k keywords/sec with zero extra dependencies.
- **More accurate on demand:** set `classificationMode: auto` + `enableJev: true` and add `TYPESAFE_API_KEY` to refine intent/action with TypeSafe Jev (`jev-latest`). Jev runs one batched request per 8 series (intent Choice + action Choice + urgency Score + risk Noul in parallel) and only overrides the deterministic action when confidence >= `jevConfidenceThreshold` (default 0.6). Guardrails never invent demand and never downgrade `protect_ranking`. Without a key, or on any error/overload, the run falls back to heuristic automatically.
- **Many tasks:** set `tasks` to any subset of `intent_classification`, `volatility_flagging`, `anomaly_detection`, `opportunity_refinement`, `joint_demand_ranking`, `group_summary`, `action_prioritization`. Empty keeps the legacy default. Tasks run in canonical order, never fail the run (skipped with reason), and enrich `SUMMARY` with `taskStatuses`, `groupSummaries`, and `prioritizedActions`. Cap Jev cost with `maxJevGroups` (default 200).

### How much does it cost to forecast SEO keywords?

Pricing has two parts:

1. **Pay-per-event:** a small Actor start event, plus one `forecasted-series` event per successfully forecasted series, listed at **$0.05**. Skipped, invalid, and constant series are never charged. Example: a weekly check of 100 keywords from OpenSEO has 100 position series (the single current search volume per keyword is constant, so it is free), which is about **$5 a run**. If the run's maximum cost covers fewer series than the input has, the Actor forecasts only as many as the budget pays for, logs how many it skipped, and reports them as `seriesSkippedForBudget` in the summary.
2. **Platform compute:** included, not billed. You pay only the event price — no separate compute-unit charges on top. A 20-series TimesFM run typically completes in about a minute; the backtest adds a second TimesFM forecast for up to 100 series per run but is not charged (turn it off with `backtest: false` for faster runs).

Prediction history is kept in a named key-value store in your own Apify account (compact JSON text, up to about 30 KB per series once 24 predictions are stored). Named stores are kept until you delete them and count toward your account's storage like any other store.

### FAQ

#### Can I forecast Google Search Console data?

Yes — and DataForSEO, Semrush, Ahrefs, or rank-tracker exports too. Export their historical records into the generic shape (timestamp + keyword + numeric metric) and feed it via dataset, CSV, JSON, or inline records. No provider credentials are needed; this Actor doesn't connect to those tools directly.

#### Can I call the Actor through an API or on a schedule?

Yes. Like every Apify Actor, it supports the [Apify API](https://docs.apify.com/api/v2), schedules, webhooks, and integrations. A common setup is a scheduled rank-tracker run whose dataset ID feeds this Actor, whose opportunities dataset feeds a report or alert.

#### Why does my ranking risk look backwards?

Ranking metrics must use `lower_is_better` (or `"lowerIsBetter": true`). A move from position 5 to 11 is deterioration (risk up); 20 to 5 is improvement. Check the `type` on your `position` metric; a field named `position` or `rank` with no type is treated as lower-is-better.

#### Why were series skipped?

Open the `SUMMARY` record: it lists skip counts and reasons. Usual causes are missing timestamps, missing group fields, non-numeric values, or fewer than `minHistoryPoints` observations.

#### The run says TimesFM could not be loaded — what now?

Run once with `forecastEngine: baseline` to validate your input. For TimesFM, check the Actor's memory allocation and Python 3.11 runtime. Enable `allowFallback` only if a baseline result is acceptable to you.

#### Is the forecast a guarantee?

No. Forecasts are planning estimates. The model knows nothing about SERP competition, algorithm updates, content quality, or business value, and scores should be checked against your own thresholds. Don't create thin pages from a signal alone — each page still needs distinct intent and useful content.

### Limitations

- History is never fabricated: gaps are counted, short series are skipped, and interpolation stays conservative.
- Very long histories are truncated to the most recent 512 points for CPU inference.
- Ranges are model estimates, not guarantees. The baseline engine's ranges come from the scatter around a straight line and are often too narrow on short, smooth histories; check the backtest and the past-prediction tally before relying on them.
- The backtest scores a single hold-out window per series, so with a handful of keywords its percentages move a lot from run to run.
- The seasonal reference compares just one earlier year, which may itself have been unusual (for example an algorithm update).
- No LLM, no competitor metrics, no attribution modeling — SEO metric forecasting only.

# Actor input Schema

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

Paste OpenSEO get_rank_history output (or any JSON array of rows with a date, keyword, and position) directly. Rows with checkedAt are read as timestamps automatically, and an optional url per row is carried through to the action list. When set, the data source fields below are ignored.

## `sourceType` (type: `string`):

Where your rank history comes from when Records is empty: an Apify dataset, a CSV URL, or a JSON URL.

## `datasetId` (type: `string`):

The Apify Dataset ID containing your historical SEO records. Leave empty to run the built-in demo history.

## `csvUrl` (type: `string`):

An HTTPS URL for a CSV file containing historical SEO records.

## `jsonUrl` (type: `string`):

An HTTPS URL for a JSON array of historical SEO records.

## `timestampField` (type: `string`):

The record field containing an ISO date, datetime, or Unix timestamp. For OpenSEO get_rank_history output pasted directly, use checkedAt (also picked automatically when the field set here is missing).

## `groupBy` (type: `array`):

Add fields that identify each series, for example keyword or keyword and domain. For OpenSEO get_rank_history output pasted directly, use keyword.

## `metrics` (type: `array`):

Add one row for each numeric metric. Choose whether higher or lower values are better. For OpenSEO get_rank_history output pasted directly, forecast position (lower is better); its single current searchVolume is constant and never charged. Records may also carry an optional url (landing page) field, which is copied to every output row and action.

## `forecastHorizon` (type: `integer`):

How many future observations to forecast.

## `frequency` (type: `string`):

Choose Auto to infer the interval from your timestamps.

## `forecastEngine` (type: `string`):

TimesFM is the production model. Baseline runs instantly with no model download; the example input uses it for a fast first run. Series with fewer than 32 points use the baseline even when TimesFM is selected (noted in engineNote), and TimesFM is not loaded at all if every series is that short.

## `allowFallback` (type: `boolean`):

Use the baseline only when TimesFM cannot load.

## `maxTrackedPosition` (type: `integer`):

Optional. The deepest position your rank tracker records. Rank forecasts and intervals are capped at it and never go below 1. When empty, the cap is 100 or the deepest position seen in the history, whichever is larger.

## `maxSeries` (type: `integer`):

Stop the run if the input contains more valid grouped metric series than this limit.

## `minHistoryPoints` (type: `integer`):

Minimum valid observations required for each grouped metric series. Seven points is the default; more history usually improves reliability.

## `tasks` (type: `array`):

Optional task names, one per line. Valid: intent_classification, volatility_flagging, anomaly_detection, opportunity_refinement, joint_demand_ranking, group_summary, action_prioritization. Canonical order applies regardless of selection order. Empty keeps legacy default (forecast + joint demand/ranking signal).

## `classificationMode` (type: `string`):

Heuristic is free/offline regex. Jev uses TypeSafe Jev judgments. Auto tries Jev, falls back to heuristic.

## `enableJev` (type: `boolean`):

Allow Jev-backed refinement of intent/action. Off means heuristic only, no API key needed.

## `jevModel` (type: `string`):

TypeSafe Jev model id used when enableJev is on.

## `jevConfidenceThreshold` (type: `number`):

Keep the Jev label only at/above this confidence (0-1); otherwise keep heuristic.

## `maxJevGroups` (type: `integer`):

Cap on series sent to Jev per run (cost control). Remaining series use heuristic.

## `maxActions` (type: `integer`):

Top-N actions emitted by action_prioritization.

## `backtest` (type: `boolean`):

Hide the last part of each series (up to the forecast horizon, at most a third of the history), forecast it from the earlier data, and report how often the actual values fell inside the predicted range. Free. With TimesFM, each backtest is a second forecast, so only an evenly spread sample of up to 100 series per run is backtested.

## `saveHistory` (type: `boolean`):

Save this run's predictions to a named key-value store so later runs can show past predictions next to the actual values and keep a running tally of how they turned out. Use the same store name for the same client or project.

## `historyStoreName` (type: `string`):

Name of the key-value store that keeps prediction history across runs (letters, digits and hyphens). History is kept per keyword and metric, plus the site's host name when your rows have a url field. Without a url field, use a different name per client to keep their track records apart.

## Actor input object example

```json
{
  "records": [
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 4,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 5,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 7,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 8,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 10,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 11,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 12,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 14,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 15,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 17,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 18,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 19,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 21,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 22,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 4,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 4,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 12,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 14,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 15,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 17,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 18,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 19,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 18,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 17,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 16,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 16,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 15,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 13,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 12,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 11,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 10,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 9,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 8,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 8,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 7,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 6,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 12,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 15,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 10,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 14,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 9,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 13,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 16,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 11,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 12,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 9,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 15,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 13,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 10,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 14,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 4,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    }
  ],
  "sourceType": "dataset",
  "timestampField": "checkedAt",
  "groupBy": [
    "keyword"
  ],
  "metrics": [
    {
      "field": "searchVolume",
      "type": "higher_is_better"
    },
    {
      "field": "position",
      "type": "lower_is_better",
      "lowerIsBetter": true
    }
  ],
  "forecastHorizon": 30,
  "frequency": "auto",
  "forecastEngine": "baseline",
  "allowFallback": false,
  "maxSeries": 5000,
  "minHistoryPoints": 7,
  "tasks": [
    "volatility_flagging",
    "anomaly_detection",
    "action_prioritization",
    "joint_demand_ranking"
  ],
  "classificationMode": "heuristic",
  "enableJev": false,
  "jevModel": "jev-latest",
  "jevConfidenceThreshold": 0.6,
  "maxJevGroups": 200,
  "maxActions": 50,
  "backtest": true,
  "saveHistory": true,
  "historyStoreName": "seo-predictor-history"
}
```

# Actor output Schema

## `results` (type: `string`):

Summary metadata for the completed run.

## `forecastResults` (type: `string`):

One forecast record for each grouped metric series.

## `opportunities` (type: `string`):

Ranked demand opportunities, ranking risks, and combined signals.

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

Structured run metadata stored under SUMMARY.

## `reportHtml` (type: `string`):

Printable report: search volume and ranking forecasts in separate sections, likely ranges, seasonal reference, track record, and where the data comes from.

## `reportCsv` (type: `string`):

The same report as a CSV for spreadsheets.

# 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": [
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 4,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 5,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 7,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 8,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 10,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 11,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 12,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 14,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 15,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 17,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 18,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 19,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 21,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 22,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 4,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 4,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 12,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 14,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 15,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 17,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 18,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 19,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 18,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 17,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 16,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 16,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 15,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 13,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 12,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 11,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 10,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 9,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 8,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 8,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 7,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 6,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 12,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 15,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 10,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 14,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 9,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 13,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 16,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 11,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 12,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 9,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 15,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 13,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 10,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 14,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 4,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software"
        }
    ],
    "timestampField": "checkedAt",
    "groupBy": [
        "keyword"
    ],
    "metrics": [
        {
            "field": "searchVolume",
            "type": "higher_is_better"
        },
        {
            "field": "position",
            "type": "lower_is_better",
            "lowerIsBetter": true
        }
    ],
    "forecastEngine": "baseline",
    "tasks": [
        "volatility_flagging",
        "anomaly_detection",
        "action_prioritization",
        "joint_demand_ranking"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("solutionssmart/predictive-seo-intelligence").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": [
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 4,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 5,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 7,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 8,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 10,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 11,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 12,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 14,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 15,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 17,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 18,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 19,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 21,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "seo audit tool",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 22,
            "searchVolume": 1000,
            "url": "https://example.com/seo-audit-tool",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 4,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 4,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 3,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 12,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 14,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 15,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 17,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 18,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "rank tracker api",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 19,
            "searchVolume": 1100,
            "url": "https://example.com/rank-tracker-api",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 18,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 17,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 16,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 16,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 15,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 13,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 12,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 11,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 10,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 9,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 8,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 8,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 7,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "ai content optimization",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 6,
            "searchVolume": 1700,
            "url": "https://example.com/ai-content-optimization",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 12,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 15,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 10,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 14,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 9,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 13,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 16,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 11,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 12,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 9,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 15,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 13,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 10,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "free backlink checker",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 14,
            "searchVolume": 1400,
            "url": "https://example.com/free-backlink-checker",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-01T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-02T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-03T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-04T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-05T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-06T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-07T06:00:00Z",
            "position": 4,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-08T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-09T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-10T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-11T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-12T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-13T06:00:00Z",
            "position": 5,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
        {
            "keyword": "keyword research software",
            "checkedAt": "2026-06-14T06:00:00Z",
            "position": 6,
            "searchVolume": 1800,
            "url": "https://example.com/keyword-research-software",
        },
    ],
    "timestampField": "checkedAt",
    "groupBy": ["keyword"],
    "metrics": [
        {
            "field": "searchVolume",
            "type": "higher_is_better",
        },
        {
            "field": "position",
            "type": "lower_is_better",
            "lowerIsBetter": True,
        },
    ],
    "forecastEngine": "baseline",
    "tasks": [
        "volatility_flagging",
        "anomaly_detection",
        "action_prioritization",
        "joint_demand_ranking",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("solutionssmart/predictive-seo-intelligence").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": [
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 4,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 5,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 7,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 8,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 10,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 11,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 12,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 14,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 15,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 17,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 18,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 19,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 21,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "seo audit tool",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 22,
      "searchVolume": 1000,
      "url": "https://example.com/seo-audit-tool"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 4,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 4,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 3,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 12,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 14,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 15,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 17,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 18,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "rank tracker api",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 19,
      "searchVolume": 1100,
      "url": "https://example.com/rank-tracker-api"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 18,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 17,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 16,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 16,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 15,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 13,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 12,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 11,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 10,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 9,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 8,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 8,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 7,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "ai content optimization",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 6,
      "searchVolume": 1700,
      "url": "https://example.com/ai-content-optimization"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 12,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 15,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 10,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 14,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 9,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 13,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 16,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 11,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 12,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 9,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 15,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 13,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 10,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "free backlink checker",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 14,
      "searchVolume": 1400,
      "url": "https://example.com/free-backlink-checker"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-01T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-02T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-03T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-04T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-05T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-06T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-07T06:00:00Z",
      "position": 4,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-08T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-09T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-10T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-11T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-12T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-13T06:00:00Z",
      "position": 5,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    },
    {
      "keyword": "keyword research software",
      "checkedAt": "2026-06-14T06:00:00Z",
      "position": 6,
      "searchVolume": 1800,
      "url": "https://example.com/keyword-research-software"
    }
  ],
  "timestampField": "checkedAt",
  "groupBy": [
    "keyword"
  ],
  "metrics": [
    {
      "field": "searchVolume",
      "type": "higher_is_better"
    },
    {
      "field": "position",
      "type": "lower_is_better",
      "lowerIsBetter": true
    }
  ],
  "forecastEngine": "baseline",
  "tasks": [
    "volatility_flagging",
    "anomaly_detection",
    "action_prioritization",
    "joint_demand_ranking"
  ]
}' |
apify call solutionssmart/predictive-seo-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solutionssmart/predictive-seo-intelligence"
        }
    }
}
```

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/2gTGIVwjDO6CzGABy/builds/2tBqTT1fyEqHlzkxr/openapi.json
