# Free Malaysia Today Scraper (`zucchini_gopher_m2v/freemalaysiatoday-scraper`) Actor

Extract full article text or the newest headlines from Free Malaysia Today (freemalaysiatoday.com) -- no account or API key needed.

- **URL**: https://apify.com/zucchini\_gopher\_m2v/freemalaysiatoday-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/zucchini_gopher_m2v) (community)
- **Categories:** News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

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

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

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

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

# README

## Free Malaysia Today Scraper

Extract full article text or the newest headlines from Free Malaysia Today (freemalaysiatoday.com), one of Malaysia's largest independent English-language news outlets — no account or subscription needed.

### Why use this actor

- No account or login required — fully free, ad-supported site with no paywall
- Full article text included, not just a summary — headline, byline, categories, tags, lead image, publish/modified dates
- Also fetches the newest headlines from the site's headline feed, complete with full article text for each headline (not just a teaser)
- Rich category and tag detail on every article, straight from the publisher's own content system
- Stable JSON output suitable for pipelines, spreadsheets, or databases
- Automatic retries on temporary network hiccups

### How it works

1. Give the actor one or more article URLs, or switch to `"latest"` mode to get the newest stories automatically.
2. In article mode, the actor opens each URL and pulls out the full text and every publicly available detail about the story.
3. In latest mode, the actor reads the site's headline feed and returns the newest stories, each with full article text included.
4. Results stream into your dataset, ready to download as JSON, CSV, or Excel.

You don't need to manage retries, rate limits, or figure out the site's internal data format — the actor handles all of that.

### Input

**Article mode** (default):

```json
{
  "mode": "article",
  "urls": [
    "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide"
  ],
  "maxConcurrency": 4,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

**Latest headlines mode:**

```json
{
  "mode": "latest",
  "limit": 10,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
|---|---|---|
| `mode` | string | `"article"` (default) — extract one or more article URLs. `"latest"` — fetch the newest headlines. |
| `url` | string | A single article URL. Used in article mode. |
| `urls` | array | Multiple article URLs to extract in one run. Used in article mode. |
| `limit` | integer | Max headlines returned in latest mode. Default 10, max 50 (the feed carries 50 items per fetch). |
| `maxConcurrency` | integer | How many articles to fetch in parallel in article mode. Default 4. |
| `proxyConfiguration` | object | Apify Proxy settings. Residential is on by default. |

### Output

**Article mode** — one record per URL (truncated here for readability):

```json
{
  "_input": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "_source": "S1-nextdata",
  "_scrapedAt": "2026-08-26T02:12:14Z",
  "__typename": "Post",
  "id": "cG9zdDoyNzg3NDgz",
  "databaseId": 2787483,
  "title": "Areas with unhealthy air quality fall to 16 nationwide",
  "excerpt": "<p>Sarawak and Selangor had the most areas in the unhealthy range as of 9am, with readings of up to 166.</p>\n",
  "slug": "areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "status": "publish",
  "date": "2026-08-26T10:01:17",
  "dateGmt": "2026-08-26T02:01:17",
  "modifiedGmt": "2026-08-26T02:01:17",
  "uri": "/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "content": "<figure class=\"aligncenter wp-caption\" data-media-id=\"3009535\"><img loading=\"lazy\" src=\"https://media.freemalaysiatoday.com/v3/2026/08/0d572414-73ef-4eb4-bee5-f073509587df-jerebu-sarawak-resize-bernamapic-200826.jpg\" alt=\"jerebu sarawak\" ... (full HTML, truncated) ...",
  "featuredImage": {
    "node": {
      "databaseId": 3009535,
      "sourceUrl": "https://media.freemalaysiatoday.com/v3/2026/08/0d572414-73ef-4eb4-bee5-f073509587df-jerebu-sarawak-resize-bernamapic-200826.jpg",
      "altText": "jerebu sarawak",
      "caption": "<p>(Bernama pic)</p>\n",
      "title": "jerebu sarawak resize bernamapic 200826.jpg",
      "mediaDetails": { "height": 1000, "width": 1600 }
    }
  },
  "categories": {
    "edges": [
      { "node": { "__typename": "Category", "databaseId": 1099, "name": "Borneo+", "slug": "sabahsarawak" } },
      { "node": { "__typename": "Category", "databaseId": 45, "name": "Highlight", "slug": "highlight" } },
      "... 2 more"
    ]
  },
  "author": {
    "node": {
      "id": "dXNlcjoyMjk=",
      "databaseId": 229,
      "name": "FMT Reporters",
      "slug": "fmtreporters",
      "uri": "/category/author/fmtreporters",
      "avatar": { "url": "https://media.freemalaysiatoday.com/wp-content/uploads/2024/04/b75d430c-new-project.webp" },
      "jobTitle": null,
      "sameAs": []
    }
  },
  "tags": {
    "edges": [
      { "node": { "databaseId": 8693, "name": "air pollution", "slug": "air-pollution" } },
      "... 3 more"
    ]
  },
  "articleBody": "PETALING JAYA: The number of areas recording unhealthy air pollutant index (API) readings had fallen to 16 as of 9am today, down sharply from 30 at the same time yesterday.\n\nAccording to data from the Malaysian Air Pollutant Index Management System portal, unhealthy API readings were recorded at stations in five states and two federal territories.\n\n... (full plain-text article body, truncated)"
}
```

**Latest headlines mode** — one record per headline (truncated here for readability):

```json
{
  "_input": "latest",
  "_source": "S2-rss",
  "_scrapedAt": "2026-08-26T02:12:14Z",
  "title": "Areas with unhealthy air quality fall to 16 nationwide",
  "link": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "creator": "FMT Reporters",
  "pubDate": "Wed, 26 Aug 2026 02:01:17 GMT",
  "guid": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "description": "Sarawak and Selangor had the most areas in the unhealthy range as of 9am, with readings of up to 166.",
  "categories": ["Highlight", "Borneo+", "Malaysia", "Top News"],
  "content": "<figure class=\"aligncenter wp-caption\" data-media-id=\"3009535\"><img src=\"https://media.freemalaysiatoday.com/...\" ... (full HTML, truncated) ...",
  "articleBody": "PETALING JAYA: The number of areas recording unhealthy air pollutant index (API) readings had fallen to 16 as of 9am today, down sharply from 30 at the same time yesterday.\n\n... (full plain-text article body, truncated)",
  "image": "https://media.freemalaysiatoday.com/v3/2026/08/0d572414-73ef-4eb4-bee5-f073509587df-jerebu-sarawak-resize-bernamapic-200826.jpg"
}
```

| Field | Type | Description |
|---|---|---|
| `_input` | string | The URL you requested, or `"latest"`, for traceability. |
| `_source` | string | Which strategy produced this record. |
| `_scrapedAt` | string | UTC timestamp of when the record was captured. |
| `title` | string | Article headline (both modes). |
| `content` | string | Full article body as raw HTML (both modes). |
| `articleBody` | string | Full article body as plain text, paragraphs joined (both modes). |
| `excerpt` | string | Short teaser as raw HTML (article mode only). |
| `description` | string | Short teaser as plain text (latest mode only). |
| `slug` / `status` / `uri` | string | WordPress slug, publish status, and site-relative path (article mode only). |
| `date` / `dateGmt` / `modifiedGmt` | string | Publish/modified timestamps (article mode only). |
| `pubDate` | string | Publish timestamp (latest mode only). |
| `link` / `guid` | string | Article URL (latest mode only). |
| `author` | object | Byline details — name, profile URL, avatar (article mode only). |
| `creator` | string | Byline name only (latest mode only). |
| `categories` | object/array | Article mode: nested category objects. Latest mode: a plain list of category names. |
| `tags` | object | Nested tag objects (article mode only). |
| `featuredImage` | object | Lead image details — URL, caption, dimensions (article mode only). |
| `image` | string | Lead image URL (latest mode only). |

A record with `_error` instead of article fields means that URL could not be processed (for example, `"_error": "not_found"` for a removed or mistyped article URL).

# Actor input Schema

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

"article" extracts one or more article URLs. "latest" fetches the newest headlines from the site-wide RSS feed.

## `url` (type: `string`):

A single freemalaysiatoday.com article URL to extract. Used when mode is "article".

## `urls` (type: `array`):

Multiple freemalaysiatoday.com article URLs to extract in one run. Used when mode is "article".

## `limit` (type: `integer`):

Maximum number of headlines to return in "latest" mode. The feed carries 50 items per fetch.

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

How many article pages to fetch in parallel in "article" mode.

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

Apify Proxy configuration. Residential is on by default.

## Actor input object example

```json
{
  "mode": "article",
  "url": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "limit": 10,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All scraped article / latest-headline records produced by this run.

# 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 = {
    "mode": "article",
    "url": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
    "limit": 10,
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zucchini_gopher_m2v/freemalaysiatoday-scraper").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 = {
    "mode": "article",
    "url": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
    "limit": 10,
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("zucchini_gopher_m2v/freemalaysiatoday-scraper").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 '{
  "mode": "article",
  "url": "https://www.freemalaysiatoday.com/category/nation/2026/08/26/areas-with-unhealthy-air-quality-fall-to-16-nationwide",
  "limit": 10,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call zucchini_gopher_m2v/freemalaysiatoday-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zucchini_gopher_m2v/freemalaysiatoday-scraper"
        }
    }
}

```

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/Z71X9bOmRmR3OEbEH/builds/mbdgE9uOSvexeCpWK/openapi.json
