# Google Trends Content Calendar Generator (`groupoject/trendpulse-content-calendar`) Actor

Turn Google Trends data into a dated content calendar — auto-prioritized publishing slots for rising, breakout, and evergreen keywords.

- **URL**: https://apify.com/groupoject/trendpulse-content-calendar.md
- **Developed by:** [Group Oject](https://apify.com/groupoject) (community)
- **Categories:** SEO tools, E-commerce, AI
- **Stats:** 2 total users, 1 monthly users, 60.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

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

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


# README

## TrendPulse Content Calendar

**Turn Google Trends data into a ready-to-publish content calendar.**

Drop in your keyword list and get back a dated, prioritized publishing schedule — breakout topics scheduled first to ride the wave, rising topics next, evergreen topics filling the gaps, and declining topics flagged for refresh. Each slot comes with a headline idea, a content angle, and a one-line "why now" rationale.

> 🔑 **Setup in 60 seconds:** get a free [SerpApi key](https://serpapi.com/users/sign_up) (100 searches/month free), paste it into the `serpApiKey` field, add your keywords, and run.

---

### What it does

Most keyword tools hand you a spreadsheet and leave the "so what do I publish, and when?" to you. This Actor closes that gap:

1. Pulls Google Trends interest-over-time + related queries for each keyword (via SerpApi).
2. Scores each keyword with the **TrendPulse engine** (growth, momentum, related demand, breakout signal, confidence, volatility).
3. Classifies it: `breakout` / `rising` / `stable` / `volatile` / `declining`.
4. **Schedules it onto a real calendar** — strongest, most time-sensitive opportunities get the earliest slots.
5. Generates a headline idea, content type, content angle, and rationale per slot.

Output is **one dataset row per scheduled piece of content**, ordered by publish date.

---

### Who it's for

- **Content & SEO teams** — turn keyword research into next quarter's editorial calendar in one run.
- **Agencies** — generate a client-ready content plan per portfolio in minutes.
- **Newsletter writers** — know which rising topics to feature this week.
- **YouTubers & creators** — line up your next 8 weeks of videos by momentum.
- **Solo founders** — replace "what should I write about?" with a dated plan.

---

### Popular content planning use cases

- **SEO content calendar generator** - turn keyword lists into dated blog, video, social, or newsletter slots.
- **Trending topic planner** - schedule breakout and rising Google Trends topics while demand is climbing.
- **Agency editorial calendar** - generate client-ready publishing plans from a keyword export.
- **YouTube content schedule** - prioritize video topics by trend status and momentum.
- **Newsletter planning** - fill upcoming issues with rising themes and timely angles.
- **Content refresh queue** - flag declining keywords as update tasks instead of net-new posts.

---

### How scheduling works

| Trend status | Priority | Where it lands | Content treatment |
|---|---|---|---|
| `breakout` | **urgent** | Earliest open slots | Fast-response news/explainer — ride the surge |
| `rising` | high | Early–mid calendar | Build authority as interest climbs |
| `volatile` | medium | Mid calendar | Cover, but flagged as uncertain |
| `stable` | evergreen | Fills remaining slots | Reliable, always-relevant content |
| `declining` | refresh | Optional | "Update existing content" task, not net-new |
| `insufficient_data` | — | Skipped | Not enough signal to plan around |

Within each tier, keywords are ordered by **TrendPulse score** so the strongest opportunities get the most valuable early slots. Total slots = `postsPerWeek × calendarWeeks`; extra keywords beyond capacity are dropped (logged).

---

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `keywords` | string[] | — | Keyword list |
| `keywordsText` | string | — | One keyword per line or comma-separated |
| `serpApiKey` | string (secret) | — | **Required.** Free key from [serpapi.com](https://serpapi.com) |
| `calendarStartDate` | string | tomorrow | First publish date, `YYYY-MM-DD` |
| `postsPerWeek` | integer | `3` | Slots scheduled per week (1–14) |
| `calendarWeeks` | integer | `8` | Weeks to plan ahead (1–52) |
| `contentFormats` | string[] | `["blog"]` | Rotate across `blog`, `video`, `social`, `newsletter` |
| `includeDecliningAsRefresh` | boolean | `true` | Schedule declining keywords as refresh tasks |
| `geo` | string | `"US"` | Google Trends geo code |
| `timeRange` | enum | `"today 12-m"` | Trend window |
| `fetchMode` | enum | `"serpapi"` | Data source (keep `serpapi`) |

At least one of `keywords` / `keywordsText` is required.

#### Example input

```json
{
  "keywords": ["ai seo tools", "chatgpt", "vibe coding", "content marketing"],
  "geo": "US",
  "timeRange": "today 12-m",
  "fetchMode": "serpapi",
  "serpApiKey": "@SERPAPI_KEY",
  "postsPerWeek": 3,
  "calendarWeeks": 8,
  "contentFormats": ["blog", "video"]
}
````

More in [`examples/`](examples/).

***

### Output

One dataset row per scheduled slot:

```json
{
  "publishDate": "2026-06-15",
  "weekNumber": 1,
  "keyword": "ai seo tools",
  "contentFormat": "blog",
  "contentType": "News/explainer article",
  "headlineIdea": "AI SEO tools explained: the trend everyone is searching this week",
  "contentAngle": "Publish a fast-response piece while interest is surging.",
  "priority": "urgent",
  "rationale": "Breakout signal (+46% growth, TrendPulse 58). Publish ASAP to capture the surge before it peaks.",
  "trendStatus": "breakout",
  "trendPulseScore": 57.86,
  "growthPercentage": 46.38,
  "currentAverageInterest": 59.12,
  "relatedQueries": ["best ai seo tools", "ai seo tools 2026"],
  "risingQueries": ["ai seo tools alternatives"],
  "geo": "US",
  "timeRange": "today 12-m",
  "source": "google-trends-serpapi",
  "generatedAt": "2026-06-14T01:43:23.649Z"
}
```

#### Key-value store outputs

- `SUMMARY` — totals, slots by priority + format, what's urgent this week
- `CALENDAR` — the full slot list
- `URGENT_NOW` — breakout slots to publish first
- `THIS_WEEK` — everything scheduled in week 1
- `ERRORS` — keywords that failed to fetch

***

### Pricing

Pay-per-result — **one scheduled slot = one billable row**. You also pay SerpApi for your searches (free for the first 100/month). Each keyword uses 1–2 SerpApi searches depending on whether related queries are enabled.

***

### Limitations & honesty

- Google Trends scores are **normalized estimates**, not absolute search volumes — comparable within a (geo, time range) window, not across windows.
- The calendar is a **prioritized starting point**, not a guarantee. Trends can shift after you plan.
- Keywords with too little data are skipped (reported in `SUMMARY.keywordsSkippedNoData`).
- Headlines are deterministic templates, not LLM output — edit them to your brand voice.

***

### FAQ

**Q: Do I need a SerpApi key?**
A: Yes — the free tier (100 searches/month) covers small-to-mid runs. Get one at [serpapi.com](https://serpapi.com).

**Q: Can I plan a full quarter?**
A: Yes — set `calendarWeeks` up to 52 and `postsPerWeek` up to 14.

**Q: What if I have more keywords than slots?**
A: The strongest keywords (by trend tier + TrendPulse score) fill the available slots; the rest are dropped and logged. Increase `calendarWeeks` / `postsPerWeek` to schedule more.

**Q: Related tool?**
A: For pure ranking/monitoring without scheduling, see [TrendPulse Keyword Monitor](https://apify.com/groupoject/trendpulse-keyword-monitor).

***

### Changelog

See [CHANGELOG.md](CHANGELOG.md).

# Actor input Schema

## `keywords` (type: `array`):

List of keywords to analyze. You can also paste keywords as text in the next field.

## `keywordsText` (type: `string`):

Paste one keyword per line, or comma-separated. Useful for bulk uploads (hundreds to thousands).

## `geo` (type: `string`):

Google Trends geo code (e.g. US, GB, CA, AU, MA, FR, DE). Use an empty string for Worldwide.

## `language` (type: `string`):

Language code (e.g. en, fr, es, de).

## `timeRange` (type: `string`):

Google Trends time window.

## `category` (type: `string`):

Google Trends category ID (default '0' = all categories).

## `includeRelatedQueries` (type: `boolean`):

Fetch top + rising related queries for each keyword.

## `includeRelatedTopics` (type: `boolean`):

Fetch related topics (entities) for each keyword.

## `includeContentAngles` (type: `boolean`):

Generate deterministic content angle suggestions based on trend status and related queries.

## `maxKeywords` (type: `integer`):

Maximum number of keywords to process. Excess keywords are truncated with a warning.

## `requestDelayMs` (type: `integer`):

Delay between requests to avoid rate limiting. Recommended: 800–2000ms.

## `maxConcurrency` (type: `integer`):

Number of keywords processed in parallel. Keep low (1–4) to avoid 429 errors.

## `fetchMode` (type: `string`):

How to fetch Google Trends data. 'serpapi' (recommended): bring your own free SerpApi key — works on any Apify plan, no proxy fight. 'apify-scraper': calls Apify's official google-trends-scraper Actor (requires Apify Starter+ plan). Other modes scrape directly and require working proxy access.

## `serpApiKey` (type: `string`):

Required when fetchMode is 'serpapi'. Get a free key (100 searches/month) at https://serpapi.com. Your key is never logged.

## `browserNavigationTimeoutMs` (type: `integer`):

Per-keyword navigation timeout in browser mode. Increase for slow proxies.

## `browserWarmupMs` (type: `integer`):

Extra dwell time after page load to let late XHRs fire. Increase if related-queries are missed.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy (recommended: residential or Google SERP groups for best reliability).

## `calendarStartDate` (type: `string`):

First publish date (YYYY-MM-DD). Defaults to tomorrow.

## `postsPerWeek` (type: `integer`):

How many content slots to schedule each week.

## `calendarWeeks` (type: `integer`):

How many weeks to plan ahead. Total slots = postsPerWeek × calendarWeeks.

## `contentFormats` (type: `array`):

Formats to rotate through across slots (blog, video, social, newsletter).

## `includeDecliningAsRefresh` (type: `boolean`):

If true, declining keywords are scheduled as 'refresh existing content' tasks instead of being dropped.

## `useMockData` (type: `boolean`):

If true AND debugMode is true, use synthetic data instead of fetching Google Trends. Useful for testing the pipeline.

## `debugMode` (type: `boolean`):

Enable verbose logging.

## Actor input object example

```json
{
  "keywords": [
    "chatgpt",
    "claude ai",
    "ai agents",
    "vibe coding"
  ],
  "geo": "US",
  "language": "en",
  "timeRange": "today 12-m",
  "category": "0",
  "includeRelatedQueries": true,
  "includeRelatedTopics": true,
  "includeContentAngles": true,
  "maxKeywords": 500,
  "requestDelayMs": 1000,
  "maxConcurrency": 3,
  "fetchMode": "serpapi",
  "browserNavigationTimeoutMs": 60000,
  "browserWarmupMs": 2000,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "postsPerWeek": 3,
  "calendarWeeks": 8,
  "contentFormats": [
    "blog"
  ],
  "includeDecliningAsRefresh": true,
  "useMockData": false,
  "debugMode": false
}
```

# Actor output Schema

## `calendar` (type: `string`):

One row per scheduled content slot: publish date, keyword, format, headline idea, priority, rationale.

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

Totals, slots by priority and format, and what's urgent this week.

## `urgentNow` (type: `string`):

Breakout slots to publish first.

## `thisWeek` (type: `string`):

All slots scheduled in week 1.

## `errors` (type: `string`):

Keywords that failed to fetch, with error messages.

# 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 = {
    "keywords": [
        "chatgpt",
        "claude ai",
        "ai agents",
        "vibe coding"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("groupoject/trendpulse-content-calendar").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 = {
    "keywords": [
        "chatgpt",
        "claude ai",
        "ai agents",
        "vibe coding",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("groupoject/trendpulse-content-calendar").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "keywords": [
    "chatgpt",
    "claude ai",
    "ai agents",
    "vibe coding"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call groupoject/trendpulse-content-calendar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=groupoject/trendpulse-content-calendar",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Trends Content Calendar Generator",
        "description": "Turn Google Trends data into a dated content calendar — auto-prioritized publishing slots for rising, breakout, and evergreen keywords.",
        "version": "1.0",
        "x-build-id": "urDNm76ozAd4D9USA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/groupoject~trendpulse-content-calendar/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-groupoject-trendpulse-content-calendar",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/groupoject~trendpulse-content-calendar/runs": {
            "post": {
                "operationId": "runs-sync-groupoject-trendpulse-content-calendar",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/groupoject~trendpulse-content-calendar/run-sync": {
            "post": {
                "operationId": "run-sync-groupoject-trendpulse-content-calendar",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keywords": {
                        "title": "Keywords",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "List of keywords to analyze. You can also paste keywords as text in the next field.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "keywordsText": {
                        "title": "Keywords as text",
                        "type": "string",
                        "description": "Paste one keyword per line, or comma-separated. Useful for bulk uploads (hundreds to thousands)."
                    },
                    "geo": {
                        "title": "Country / Geo",
                        "type": "string",
                        "description": "Google Trends geo code (e.g. US, GB, CA, AU, MA, FR, DE). Use an empty string for Worldwide.",
                        "default": "US"
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Language code (e.g. en, fr, es, de).",
                        "default": "en"
                    },
                    "timeRange": {
                        "title": "Time range",
                        "enum": [
                            "now 7-d",
                            "today 1-m",
                            "today 3-m",
                            "today 12-m",
                            "today 5-y"
                        ],
                        "type": "string",
                        "description": "Google Trends time window.",
                        "default": "today 12-m"
                    },
                    "category": {
                        "title": "Category",
                        "type": "string",
                        "description": "Google Trends category ID (default '0' = all categories).",
                        "default": "0"
                    },
                    "includeRelatedQueries": {
                        "title": "Include related queries",
                        "type": "boolean",
                        "description": "Fetch top + rising related queries for each keyword.",
                        "default": true
                    },
                    "includeRelatedTopics": {
                        "title": "Include related topics",
                        "type": "boolean",
                        "description": "Fetch related topics (entities) for each keyword.",
                        "default": true
                    },
                    "includeContentAngles": {
                        "title": "Include content angle suggestions",
                        "type": "boolean",
                        "description": "Generate deterministic content angle suggestions based on trend status and related queries.",
                        "default": true
                    },
                    "maxKeywords": {
                        "title": "Max keywords",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of keywords to process. Excess keywords are truncated with a warning.",
                        "default": 500
                    },
                    "requestDelayMs": {
                        "title": "Request delay (ms)",
                        "minimum": 0,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Delay between requests to avoid rate limiting. Recommended: 800–2000ms.",
                        "default": 1000
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of keywords processed in parallel. Keep low (1–4) to avoid 429 errors.",
                        "default": 3
                    },
                    "fetchMode": {
                        "title": "Fetch mode",
                        "enum": [
                            "serpapi",
                            "apify-scraper",
                            "auto",
                            "browser",
                            "http"
                        ],
                        "type": "string",
                        "description": "How to fetch Google Trends data. 'serpapi' (recommended): bring your own free SerpApi key — works on any Apify plan, no proxy fight. 'apify-scraper': calls Apify's official google-trends-scraper Actor (requires Apify Starter+ plan). Other modes scrape directly and require working proxy access.",
                        "default": "serpapi"
                    },
                    "serpApiKey": {
                        "title": "SerpApi API key",
                        "type": "string",
                        "description": "Required when fetchMode is 'serpapi'. Get a free key (100 searches/month) at https://serpapi.com. Your key is never logged."
                    },
                    "browserNavigationTimeoutMs": {
                        "title": "Browser navigation timeout (ms)",
                        "minimum": 5000,
                        "maximum": 300000,
                        "type": "integer",
                        "description": "Per-keyword navigation timeout in browser mode. Increase for slow proxies.",
                        "default": 60000
                    },
                    "browserWarmupMs": {
                        "title": "Browser warm-up dwell (ms)",
                        "minimum": 0,
                        "maximum": 60000,
                        "type": "integer",
                        "description": "Extra dwell time after page load to let late XHRs fire. Increase if related-queries are missed.",
                        "default": 2000
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Proxy (recommended: residential or Google SERP groups for best reliability)."
                    },
                    "calendarStartDate": {
                        "title": "Calendar start date",
                        "type": "string",
                        "description": "First publish date (YYYY-MM-DD). Defaults to tomorrow."
                    },
                    "postsPerWeek": {
                        "title": "Posts per week",
                        "minimum": 1,
                        "maximum": 14,
                        "type": "integer",
                        "description": "How many content slots to schedule each week.",
                        "default": 3
                    },
                    "calendarWeeks": {
                        "title": "Calendar length (weeks)",
                        "minimum": 1,
                        "maximum": 52,
                        "type": "integer",
                        "description": "How many weeks to plan ahead. Total slots = postsPerWeek × calendarWeeks.",
                        "default": 8
                    },
                    "contentFormats": {
                        "title": "Content formats",
                        "type": "array",
                        "description": "Formats to rotate through across slots (blog, video, social, newsletter).",
                        "items": {
                            "type": "string",
                            "enum": [
                                "blog",
                                "video",
                                "social",
                                "newsletter"
                            ],
                            "enumTitles": [
                                "Blog article",
                                "Video",
                                "Social post",
                                "Newsletter"
                            ]
                        },
                        "default": [
                            "blog"
                        ]
                    },
                    "includeDecliningAsRefresh": {
                        "title": "Include declining keywords as refresh tasks",
                        "type": "boolean",
                        "description": "If true, declining keywords are scheduled as 'refresh existing content' tasks instead of being dropped.",
                        "default": true
                    },
                    "useMockData": {
                        "title": "Use mock data (debug only)",
                        "type": "boolean",
                        "description": "If true AND debugMode is true, use synthetic data instead of fetching Google Trends. Useful for testing the pipeline.",
                        "default": false
                    },
                    "debugMode": {
                        "title": "Debug mode",
                        "type": "boolean",
                        "description": "Enable verbose logging.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
