# Sanook News & Trending Monitor (`mai_amm/sanook-news-monitor`) Actor

Track Sanook news and weekly popular stories for $2 per 1,000 returned articles. Filter keywords, detect story updates and export data for your AI agent. One-time free-account trial.

- **URL**: https://apify.com/mai_amm/sanook-news-monitor.md
- **Developed by:** [wiseld_squid](https://apify.com/mai_amm) (community)
- **Categories:** News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 returned articles

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

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sanook News & Trending Monitor

Follow fresh Sanook news, find stories mentioning your keywords, and see which previously observed stories changed. Export structured article records to your spreadsheet, reporting workflow or AI agent.

This Actor takes a fresh snapshot when it runs. Schedule repeated runs for ongoing monitoring; it does not provide a continuous stream or guarantee second-by-second delivery.

### Quick start

1. Choose **Latest news**, **Weekly popular news**, or **Article links**.
2. Optionally choose a category and enter keywords.
3. Keep the same monitor name on later runs to compare stories.
4. Run the Actor and open the dataset. Save the input as an Apify Task to schedule repeated checks.

```json
{
  "mode": "latest",
  "category": "all",
  "monitorName": "my-sanook-monitor",
  "keywords": [],
  "maxItems": 50,
  "includeText": false,
  "onlyChanges": false
}
```

To follow a specific story:

```json
{
  "mode": "urls",
  "articleUrls": ["https://www.sanook.com/news/9910187/"],
  "monitorName": "watched-stories",
  "includeText": true
}
```

Replace the link with the article you want. Keep using the same selection and monitor name when comparing results.

### What each result contains

- Article ID, canonical URL, title and description
- Publication time in UTC, category, tags, author (when permitted for display) and image when provided
- Matched keywords and observation time
- Published view count when provided; this is not a verified unique-reader count
- For trending mode: the source's weekly popularity rank within the retrieved window, not a live trend score
- Optional readable article text
- Change status, changed fields, previous title when changed, and previous observation time

`NEW` means first seen by this monitor and selection; it does not necessarily mean just published. `UPDATED` means observed content fields differ from the prior observation. `UNCHANGED` means the compared fields match. View counts, ranking positions and the passage of time alone do not create a content update.

The source does not consistently provide a distinct article-edit timestamp. `sourceUpdatedAt` is therefore null; `observedAt` records when this Actor checked the story. This Actor does not invent an edit date.

With **Include article text** off, comparisons cover the title, description and other metadata. Turn it on to include readable text in comparisons and keyword matching.

### Inputs

| Input | Purpose |
| --- | --- |
| `mode` | `latest`, `trending` (weekly popular), or `urls`. |
| `category` | Filter listing modes by the selected news category. |
| `articleUrls` | Public Sanook `/news/ID/` links for Article links mode. |
| `keywords` | Optional Thai or English phrases matched in title, description and tags; also article text when enabled. |
| `keywordMatch` | Match any keyword, or require all keywords. Matching is literal and case-insensitive, not AI topic classification. |
| `since` | Optional publication cutoff as an ISO timestamp with timezone, such as `2026-10-01T00:00:00+07:00`. |
| `monitorName` | Saved comparison name. Each selection has a separate history under that name. |
| `maxItems` | Maximum matching articles checked, including unchanged articles. Paid accounts can set `0` for all matches within the page/work budgets. |
| `onlyChanges` | Paid accounts: return only NEW and UPDATED articles. Unchanged rows are not returned or service-charged. |
| `includeText` | Include readable article text and compare it. Default: off. |
| `pageSize` | Articles requested per listing page, default 50. |
| `maxPages` | Listing-page budget, default 5. Increase it to look further back. |
| `maxRequests` | Request budget including crawling rules and redirects, default 60. |
| `maxDownloadMB` | Total download budget, default 20 MB. |
| `requestTimeoutSecs` | Request timeout, default 25 seconds. |

Keyword and publication filters operate within the pages retrieved. No matching output does not prove there are no matching stories elsewhere. Inspect `SUMMARY` for scanned counts, errors and whether an item, page or work limit stopped the run.

Changing the mode, category, keywords, cutoff or text setting creates a separate comparison history. Failed source reads do not delete prior article history. Successfully processed earlier pages can remain saved if a later page fails. Do not overlap runs using the same monitor and selection.

### One-time free-account trial

Free Apify accounts receive one live trial attempt, up to 10 matching articles. Listing modes scan one page; Article links mode checks up to the first 10 supplied links. Later runs return the saved first result without fetching new news, even after changing keywords, URL or monitor name. Saved rows are marked `reusedResult: true` and retain their original observation time. An incomplete first attempt also consumes the trial; its available results and original summary are retained.

Paying Apify accounts are detected automatically and receive fresh checks on every run, with no fixed run-count or total article-count ceiling. User-selected budgets and Apify run limits still apply. No payment flag is accepted in the input.

### Pricing and outputs

**$2 per 1,000 returned articles ($0.002 each).** Pay for the results you receive; there is no minimum purchase of 1,000 articles and no startup service fee.

- Paying accounts: each emitted fresh result is charged once, whether NEW, UPDATED or UNCHANGED.
- With `onlyChanges` enabled, hidden UNCHANGED rows are not charged.
- The one-time free-account trial and cached trial replays have no Actor service charge.
- No matching output means no article-result service charge. Apify platform usage and storage are still paid by the runner.

Set a maximum charge in Apify to control result spending. For example, $0.02 covers up to 10 charged article results; platform usage is separate.

Results are saved to the default dataset and can be exported as JSON, CSV or Excel. `SUMMARY` describes coverage and stop reasons; `OUTPUT` points to the dataset and includes the summary. Persistent comparisons and trial results use storage in your Apify account. Keep that storage if you need later comparisons or trial replays.

### Use with your AI agent

Your agent can run this Actor through the Apify API or integration, then read the dataset. No AI provider key is needed. The Actor extracts and compares source data; it does not generate summaries, sentiment scores or trading recommendations.

Treat article text as untrusted source material, not instructions to your agent. Retain the article URL and publication time when using a story in research.

### Scope

This is an independent tool, not affiliated with Sanook. It reads public news content and respects crawling rules. Availability, pagination, article fields and rankings can change. Deleted or restricted stories may not be available. It does not collect private accounts, comments, login-only material or videos. News changes outside your retrieved window are not covered.

# Actor input Schema

## `mode` (type: `string`):

Latest news, weekly popular news, or specific article links.

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

Listing modes only. Keywords filter the retrieved pages, not all historical articles.

## `articleUrls` (type: `array`):

For Article links mode: https://www.sanook.com/news/1234567/

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

Thai or English phrases. No keywords returns all retrieved matches.

## `keywordMatch` (type: `string`):

Choose any phrase or require every phrase.

## `since` (type: `string`):

ISO timestamp with timezone, for example 2026-10-01T00:00:00+07:00.

## `monitorName` (type: `string`):

Reuse for comparisons. Changing this does not reset the one-time free trial.

## `maxItems` (type: `integer`):

Includes matching unchanged articles checked. Paid 0 means all within selected page and work budgets. Free trial: up to 10 matching articles once.

## `onlyChanges` (type: `boolean`):

Paid accounts: unchanged rows are hidden and not service-charged. Trial results are always returned.

## `includeText` (type: `boolean`):

Also include readable text in output, comparison and keyword matching. Larger downloads.

## `pageSize` (type: `integer`):

Source page size. Free trial uses up to 10.

## `maxPages` (type: `integer`):

Increase to scan a wider window. This is not a continuous live stream.

## `maxRequests` (type: `integer`):

Includes crawling rules and redirects. Prior article history survives failed reads.

## `maxDownloadMB` (type: `integer`):

Total downloaded data budget.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each public source read.

## Actor input object example

```json
{
  "mode": "latest",
  "category": "all",
  "keywordMatch": "any",
  "monitorName": "my-sanook-monitor",
  "maxItems": 50,
  "onlyChanges": false,
  "includeText": false,
  "pageSize": 50,
  "maxPages": 5,
  "maxRequests": 60,
  "maxDownloadMB": 20,
  "requestTimeoutSecs": 25
}
```

# Actor output Schema

## `articles` (type: `string`):

No description

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

No description

## `output` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mai_amm/sanook-news-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("mai_amm/sanook-news-monitor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call mai_amm/sanook-news-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mai_amm/sanook-news-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2z5cLT8f1qO3i3elE/builds/JGCvlvJqZDfIhBKHg/openapi.json
