# Gatrends Spike Check (`bohdan_bondarchuk/gatrends-spike-check`) Actor

Check which keywords are above their usual level right now using Google News, Hacker News and Wikipedia. Free one-time check, no API keys. Want 24/7 monitoring across 7 sources with Telegram, Claude and ChatGPT alerts? See gatrends.com

- **URL**: https://apify.com/bohdan_bondarchuk/gatrends-spike-check.md
- **Developed by:** [Bohdan Bondarchuk](https://apify.com/bohdan_bondarchuk) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## GAtrends Spike Check

Find out which of your keywords are **above their usual level right now**.

Enter a brand, a game, a product, a person or a place. For each keyword the Actor compares today with its own normal level in three public sources and tells you if it is **spiking**, **rising** or **at its usual level**. No API keys and no setup.

### What it checks

| Source | Now | Compared with |
|---|---|---|
| Google News | articles in the last 24 hours | daily average of the previous 6 days |
| Hacker News | stories in the last 24 hours | daily average of the previous 28 days |
| Wikipedia | page views yesterday | median of the previous 30 days |

A big brand and a quiet niche term are each judged against **their own** normal level, not against a fixed number.

### Input

- **Keywords**: up to 20 per run.
- **Use Google News / Hacker News / Wikipedia**: switch sources on or off.

### Output

One row per keyword in the dataset:

- `status`: `spike`, `rising`, `normal` or `not enough data`
- `summary`: one plain sentence about what jumped and by how much
- per-source numbers: what it is now, the usual level, the ratio
- up to 3 headlines (Google News) and top Hacker News stories
- for Wikipedia, the article that was matched, so you can see what was measured

### Good to know

- This is a **one-time check**. It does not remember earlier runs and does not send alerts.
- Google News shows at most 100 articles per query. For a very busy keyword (for example a big brand) that limit is reached even on normal days, so the Actor marks Google News as "too busy to compare" and judges the keyword by Hacker News and Wikipedia only. It never guesses.
- Wikipedia is matched by the closest article title. Check the `article` field for ambiguous words.
- News and Wikipedia are English-language sources.
- Spikes show **attention**, not whether the news is good or bad.

### Want it watched all the time?

**[GAtrends](https://gatrends.com)** runs the same idea around the clock: it learns the usual level of each keyword across 7 sources, checks every hour (every 15 minutes on Pro) and sends a short alert to **Telegram**, and you can ask **Claude** or **ChatGPT** what is rising. The Free plan has 3 keywords and needs no card.

# Actor input Schema

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

A brand, a game, a product, a person or a place. Up to 20 per run.

## `useNews` (type: `boolean`):

Articles in the last 24 hours compared with the daily average of the previous 6 days.

## `useHackerNews` (type: `boolean`):

Stories in the last 24 hours compared with the daily average of the previous 28 days.

## `useWikipedia` (type: `boolean`):

Yesterday's page views compared with the median of the previous 30 days.

## Actor input object example

```json
{
  "keywords": [
    "GTA 6",
    "OpenAI",
    "Steam Deck"
  ],
  "useNews": true,
  "useHackerNews": true,
  "useWikipedia": true
}
```

# Actor output Schema

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

One dataset item per keyword checked.

# 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": [
        "GTA 6",
        "OpenAI",
        "Steam Deck"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bohdan_bondarchuk/gatrends-spike-check").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": [
        "GTA 6",
        "OpenAI",
        "Steam Deck",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bohdan_bondarchuk/gatrends-spike-check").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 '{
  "keywords": [
    "GTA 6",
    "OpenAI",
    "Steam Deck"
  ]
}' |
apify call bohdan_bondarchuk/gatrends-spike-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bohdan_bondarchuk/gatrends-spike-check"
        }
    }
}
```

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/pMDefCH8PEWIOpgSs/builds/Z8ctFymo6wxCxIahv/openapi.json
