# Japan X (Twitter) Scraper | Tweets, Trends & Volume (`monkey.d.scraping/yahoo-realtime-search-scraper`) Actor

Japan Twitter (X) scraper without login or X API: Japanese tweets by keyword, hashtag or account with likes, reposts and media, tweet volume over time, positive and negative share, and Japan trends right now, via Yahoo!リアルタイム検索.

- **URL**: https://apify.com/monkey.d.scraping/yahoo-realtime-search-scraper.md
- **Developed by:** [Monkey D. Scraping](https://apify.com/monkey.d.scraping) (community)
- **Categories:** Social media, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 rows

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

## Japan X (Twitter) Scraper — Tweets, Volume & Trends, No Login | Yahoo!リアルタイム検索 スクレイピング | 日本推特搜索

A **Japan Twitter scraper** with no login and no X API: search **X (Twitter) posts in Japan** through **Yahoo! JAPAN Realtime Search (Yahoo!リアルタイム検索)**. Type a brand, a hashtag or an account and get the **newest or most popular posts** with likes, reposts, replies, quotes, author, media and links. For every keyword you also get what an X scraper does not give you: **how many posts mentioned it hour by hour or day by day**, the **positive and negative share**, and the **words trending in Japan right now**. Scheduled runs can return **only posts not delivered before**, so a brand monitor never pays twice for the same post.

Also known as: Japan X scraper, Twitter API alternative for Japan, X API alternative, Yahoo realtime search scraper, Yahoo Japan realtime search API, Yahoo!リアルタイム検索 API, search.yahoo.co.jp realtime scraper, Japan Twitter scraper, Japanese tweets scraper, X Japan search without login, Twitter search without login, Japan Twitter trends, Japan trending now, tweet volume, tweet count over time, Twitter mention count, Japanese social listening, リアルタイム検索 スクレイピング, ツイート 検索 ログインなし, ツイート数 推移, Twitter トレンド 取得, 日本推特爬虫, 日本 X 舆情监测

[日本語](#yahooリアルタイム検索-スクレイパー日本語) · [简体中文](#yahoo-实时搜索采集器简体中文) · [繁體中文](#yahoo-即時搜尋擷取器繁體中文) · [Italiano](#italiano)

### What you can do with it

| You want | Fill in | You get |
|---|---|---|
| What Japan says about a brand, product or topic | **Keywords** | The newest X posts that mention it, with reactions, author and media |
| How much a brand is talked about | **Keywords** (volume is on by default) | Posts per hour or per day for the last 24 hours, 7 days or 30 days, the peak and the positive / negative share |
| What is trending in Japan now | **Trending words in Japan now** | The trending list in rank order, with post count, genre and related words |
| Posts in a period | **Keywords** + **From date** / **To date** | Matching posts published between two dates or times, e.g. the last `24 hours` |
| The posts that got the most reactions | **Keywords** + **Results order: Popular** | The most liked and reposted posts, day by day |
| A daily feed with no repeats | **Keywords** + **Only posts not delivered before** + a schedule | Each run returns only the posts earlier runs did not return |
| Everything an account posted | **X accounts** | The newest posts of the account, e.g. `UNIQLO_JP` |
| Only posts with pictures or video | **Posts with media** | Posts with images, or posts with video |

#### Use it from Claude, ChatGPT and other AI agents

Connect Apify to your AI assistant through the [Apify MCP server](https://mcp.apify.com) and ask in plain words, for example: *"Use monkey.d.scraping/yahoo-realtime-search-scraper to get the 200 newest Japanese X posts about ユニクロ from the last 24 hours and the post volume of the last 30 days, then summarize in English what people praise and what they complain about."* The agent fills the input for you; a small request finishes in a few seconds. Text stays in Japanese, so the agent can translate and classify it.

### Why this scraper?

- **Japan first.** Japan is one of the largest X markets in the world, and Yahoo!リアルタイム検索 is where Japanese users search it. A brand typed in English also finds its Japanese spelling: `dyson` returns posts with ダイソン, `nespresso` returns ネスプレッソ.
- **Volume without downloading every post.** One row per keyword tells you how many posts mentioned it in each hour or day, the total and the peak: enough to draw the chart, compare brands or spot a spike.
- **Positive and negative share** as shown by Yahoo! JAPAN for the keyword and for each trend.
- **Trending words in Japan**, with post count, genre and the words trending together with each one, and the **topic digests** (話題のまとめ) with a title and a short summary of what people are saying.
- **The last 30 days post by post**, newest first, with dates in Japan time (ISO 8601, `+09:00`).
- **Search operators**: `#hashtag`, `@mention`, `"exact phrase"`, `-exclude`, `URL:example.com` for posts linking to a site.
- **Monitoring built in**: **Only posts not delivered before** remembers what each saved task already delivered.
- **Fast**: about 1,000 posts in 12 seconds; 12,000 posts in under 3 minutes.
- No X account, no login, no cookies, no API key.

### Use cases

- **Brand and product monitoring in Japan**: fashion, luxury, cosmetics, food and beverage, games, consumer electronics, retail.
- **Campaign and launch tracking**: post volume hour by hour before, during and after a launch, a TV spot or a collaboration.
- **Crisis and reputation alerts**: schedule a keyword every hour with **Only posts not delivered before** and watch the negative share.
- **Trend discovery**: what Japan is talking about right now, for newsrooms, content teams and agencies.
- **Market research and consumer insight** for teams entering Japan: complaints, comparisons, purchase intent.
- **Competitor benchmarks**: the same period and the same chart for several brands in one run.
- **Japanese text datasets** for sentiment analysis, topic models and AI agents.

### Input

| Field | What it does |
|---|---|
| **Keywords** (`keywords`) | Words, brands, hashtags or phrases searched in public X posts. Japanese or English. Operators allowed. |
| **X accounts** (`accounts`) | Account names or profile links; returns their newest posts. |
| **Posts per keyword or account** (`maxPosts`) | How many posts to collect for each keyword and account. |
| **From date** / **To date** (`startDate`, `endDate`) | A date, a date and time in Japan time, or a period such as `7 days`. |
| **Post volume and sentiment for each keyword** (`includeVolume`) | One row per keyword with the volume series, total, peak and positive / negative share. On by default. |
| **Trending words in Japan now** (`includeTrends`) | Adds the trending list, about 20 rows. Works with or without keywords. |
| **Only posts not delivered before** (`onlyNewPosts`) | For scheduled runs: skips posts earlier runs already returned. |
| **Results order** (`sortBy`) | `latest` (newest first) or `popular` (most reactions first, up to 40 for each day of the period). |
| **Posts with media** (`mediaType`) | `all`, `image` or `video`. |
| **Exact word only** (`exactMatch`) | Keeps only posts with the keyword exactly as typed, without other spellings. |
| **Volume period** (`volumePeriod`) | `24hours` (hour by hour), `7days` (hour by hour) or `30days` (day by day). |
| **Topic digests** (`includeTrendDigests`) | Adds the topic digests (話題のまとめ), up to 100 rows. |

#### Example input

The newest posts about two brands in the last 3 days, with the 30-day volume of each:

```json
{
  "keywords": ["ユニクロ", "dyson"],
  "maxPosts": 500,
  "startDate": "3 days"
}
```

What is trending in Japan now, with the topic digests:

```json
{
  "includeTrends": true,
  "includeTrendDigests": true
}
```

The most popular posts with video about a hashtag, and the newest posts of an account:

```json
{
  "keywords": ["#ヒートテック"],
  "accounts": ["UNIQLO_JP"],
  "sortBy": "popular",
  "mediaType": "video",
  "maxPosts": 100
}
```

### Output

Every row has a `type`: `post`, `keywordVolume`, `trend` or `trendDigest`. The dataset views **Overview**, **Volume and sentiment** and **Trends** show the right columns for each.

A post (shortened):

```json
{
  "type": "post",
  "postId": "2126464504766873882",
  "postUrl": "https://x.com/example/status/2126464504766873882",
  "text": "…",
  "matchedTerms": ["ユニクロ"],
  "createdAt": "2026-11-28T08:53:40+09:00",
  "likeCount": 12,
  "repostCount": 3,
  "replyCount": 1,
  "quoteCount": 0,
  "authorHandle": "example",
  "authorName": "…",
  "authorId": "1104299448841039873",
  "authorUrl": "https://x.com/example",
  "authorVerified": false,
  "authorBadge": null,
  "authorImageUrl": "https://…",
  "isReply": false,
  "replyToHandles": [],
  "hashtags": [],
  "mentions": [],
  "links": [],
  "media": [{"type": "image", "url": "https://…", "thumbnailUrl": "https://…", "postMediaUrl": "https://pic.x.com/…", "width": 768, "height": 1024}],
  "mediaTypes": ["image"],
  "mediaCount": 1,
  "possiblySensitive": false,
  "source": "keyword",
  "searchKeyword": "ユニクロ",
  "searchAccount": null,
  "scrapedAt": "2026-11-27T23:54:59+00:00"
}
```

The volume of a keyword:

```json
{
  "type": "keywordVolume",
  "searchKeyword": "ユニクロ",
  "volumePeriod": "30days",
  "totalPosts": 55604,
  "peakPosts": 3597,
  "peakFrom": "2026-11-20T00:00:00+09:00",
  "positivePercent": 57,
  "negativePercent": 43,
  "samplingRatePercent": 100,
  "volumeSeries": [
    {"from": "2026-10-30T00:00:00+09:00", "to": "2026-10-31T00:00:00+09:00", "posts": 1451},
    {"from": "2026-10-31T00:00:00+09:00", "to": "2026-11-01T00:00:00+09:00", "posts": 1520}
  ]
}
```

A trending word:

```json
{
  "type": "trend",
  "rank": 1,
  "trend": "…",
  "trendUrl": "https://search.yahoo.co.jp/realtime/search?p=…",
  "postCount": 471,
  "genre": "スポーツ",
  "positivePercent": 94,
  "negativePercent": 0,
  "relatedTerms": ["…", "…"],
  "rankedAt": "2026-11-28T08:51:08+09:00"
}
```

Topic digests (`trendDigest`) carry `title`, `summary`, `postCount`, `topics`, `trendingNow` and `digestUrl`. The key-value store record `SUMMARY` lists, for each keyword and account, how many posts were saved, the posts in the volume period, the positive and negative share and why the run moved on.

### Pricing

You pay only for the rows saved in the dataset: posts, and the volume and trend rows you switched on. There is no start fee and the platform usage is included.

| Apify plan | Price per 1,000 rows |
|---|---|
| Free | $0.40 |
| Starter | $0.30 |
| Scale | $0.25 |
| Business and higher | $0.20 |

Posts skipped by the dates or by **Only posts not delivered before** are not charged, and keywords without public posts cost nothing. The volume of a keyword is one row, whatever the length of the series.

### How to use it

1. Type your keywords, one per line, or paste X account names.
2. Set **Posts per keyword or account** and, if you need them, the dates.
3. Click **Start**. Download the dataset as JSON, CSV or Excel, or read it through the API.
4. To monitor a brand, turn on **Only posts not delivered before** and schedule the run every hour or every day.

#### API example

```bash
curl -X POST "https://api.apify.com/v2/acts/monkey.d.scraping~yahoo-realtime-search-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["ユニクロ"], "maxPosts": 100, "startDate": "1 day"}'
```

#### Integrations

Works with the Apify API, scheduler and webhooks, and with n8n, Make, Zapier, Google Sheets, Slack and the Apify MCP server, so your AI agent can call it as a tool.

### FAQ

**Do I need an X (Twitter) or Yahoo! JAPAN account?** No. The Actor reads public search results only.

**Which posts are covered?** The public X posts that Yahoo!リアルタイム検索 shows, the search Japanese users rely on for X. It is the right source for what Japan says about a topic.

**How far back can I search?** The last 30 days, post by post: on a test day the posts collected matched the day's count in the volume series exactly. Widely shared posts from earlier periods also appear.

**Can I search in English?** Yes. A brand typed in English also finds its Japanese spelling. Turn on **Exact word only** when you want only the word as typed.

**Can I get the number of posts over time without the posts?** Yes. Set **Posts per keyword or account** to 1 and keep **Post volume and sentiment** on: the volume row has the whole series.

**Where does the positive and negative share come from?** It is the split Yahoo! JAPAN shows for the keyword. When Yahoo! shows no split, the two fields are empty.

**Which reaction counts are included?** Likes, reposts, replies and quotes of every post, as shown in the search results.

**How does Popular work?** It returns the posts with the most reactions for each day of the period, up to 40 per day. Use **Latest** to collect every post.

**Can I monitor a brand?** Yes. Turn on **Only posts not delivered before** and schedule the run: every run returns only posts you have not received yet. If the list of delivered posts cannot be opened, the run stops without charging anything instead of delivering posts twice.

**Why do some image links not open in my browser?** `media.url`, `authorImageUrl`, `trendUrl` and `digestUrl` are served by Yahoo! JAPAN, which is not available from the EEA and the UK. `postUrl`, `authorUrl` and `postMediaUrl` point to X and open everywhere.

**Is scraping these results legal?** The Actor collects publicly available content only. Review the terms that apply to your use case and the privacy rules of your jurisdiction, especially for personal data.

### Related Actors by Monkey D. Scraping

- [Threads Search Scraper](https://apify.com/monkey.d.scraping/threads-search-scraper)
- [Brand Mentions Across Forums and Blogs](https://apify.com/monkey.d.scraping/forum-search-engine) — mentions across forums worldwide, including Asian communities.
- [DCInside Scraper](https://apify.com/monkey.d.scraping/dcinside-scraper) — Korea's largest online community.
- [Reddit Scraper | Posts, Search, Comments](https://apify.com/monkey.d.scraping/reddit-scraper)

### More tools for marketers

- [YouTube Scraper | Transcripts, Comments, Shorts](https://apify.com/monkey.d.scraping/youtube-scraper)
- [Telegram Keyword Search & Channel Scraper](https://apify.com/monkey.d.scraping/telegram-keyword-search-channel-scraper)
- [Google SERP Scraper](https://apify.com/monkey.d.scraping/google-serp-fast)
- [Bilibili Scraper 哔哩哔哩](https://apify.com/monkey.d.scraping/bilibili-scraper)

***

### Yahoo!リアルタイム検索 スクレイパー（日本語）

**Yahoo!リアルタイム検索**に表示される **X（旧Twitter）の公開ポスト**を、ログインなし・Xアカウントなしで取得します。キーワード、ハッシュタグ、アカウントを指定すると、最新または話題のポストを、いいね数・リポスト数・返信数・引用数・投稿者・画像や動画・リンク付きで取得できます。

#### できること

- **キーワード検索**：ブランド名、商品名、ハッシュタグ。`"完全一致"`、`-除外`、`@メンション`、`URL:example.com` も使えます。
- **ポスト数の推移**：キーワードごとに、過去24時間・7日間（1時間ごと）または30日間（1日ごと）のポスト数、合計、ピーク、ポジティブ／ネガティブの割合を1行で取得。
- **トレンド**：いま日本で話題のワードを順位、ポスト数、ジャンル、関連ワード付きで取得。**話題のまとめ**（タイトルと要約）も取得できます。
- **期間指定**：開始日・終了日、または `24 hours`、`7 days` のような期間。日時は日本時間（`+09:00`）。直近30日間のポストを新着順に取得できます。
- **新着のみ**：`onlyNewPosts` をオンにしてスケジュール実行すると、前回までに取得したポストは返さず、課金もされません。

#### 入力

| 項目 | 説明 |
|---|---|
| `keywords` | 検索キーワード（1行に1つ、最大50件） |
| `accounts` | Xのアカウント名またはプロフィールURL |
| `maxPosts` | キーワード・アカウントごとの最大取得件数 |
| `startDate` / `endDate` | 期間（日本時間） |
| `includeVolume` | ポスト数の推移と感情の割合（初期値オン） |
| `includeTrends` / `includeTrendDigests` | トレンドワード／話題のまとめ |
| `sortBy` | `latest`（新着順）または `popular`（話題順、1日あたり最大40件） |
| `mediaType` | `all`、`image`、`video` |
| `exactMatch` | 入力した表記のみに一致 |
| `onlyNewPosts` | 未取得のポストのみ |

#### よくある質問

**XやYahoo! JAPANのアカウントは必要ですか？** いいえ。公開されている検索結果のみを取得します。

**ポスト数の推移だけ欲しい場合は？** `maxPosts` を 1 にして `includeVolume` をオンのままにしてください。

**表示回数やフォロワー数は取得できますか？** いいえ。検索結果に表示されないため含まれません。

***

### Yahoo 实时搜索采集器（简体中文）

通过 **Yahoo! JAPAN 实时搜索（リアルタイム検索）** 采集**日本 X（推特）公开帖子**，无需登录，无需 X 账号。输入品牌、话题标签或账号，即可获得最新或最热帖子，包含点赞、转发、回复、引用数、作者、图片视频和链接。

#### 适用场景

- **日本市场品牌监测与舆情分析**：时尚、奢侈品、美妆、食品饮料、游戏、消费电子。
- **声量趋势**：每个关键词一行，给出过去 24 小时、7 天（按小时）或 30 天（按天）的发帖量、总量、峰值，以及正面／负面占比。
- **日本热搜**：当前日本热门话题排行，含帖子数、分类和关联词；还可获取话题摘要（标题和简介）。
- **定时监测**：开启 `onlyNewPosts` 并设置定时任务，每次只返回之前未交付的帖子，不重复计费。

#### 输入参数

`keywords`（关键词，支持英文品牌名，自动匹配日文写法）、`accounts`（X 账号）、`maxPosts`（每个关键词或账号的帖子数）、`startDate` / `endDate`（日本时间）、`includeVolume`（声量与情感占比）、`includeTrends`（日本热搜）、`sortBy`（`latest` 最新 / `popular` 最热）、`mediaType`（全部 / 图片 / 视频）、`exactMatch`（精确匹配）、`onlyNewPosts`（仅新帖）。

#### 常见问题

**能搜索多久以前的帖子？** 最近 30 天的帖子逐条覆盖，按时间从新到旧。

**需要账号吗？** 不需要，仅采集公开的搜索结果。

***

### Yahoo 即時搜尋擷取器（繁體中文）

透過 **Yahoo! JAPAN 即時搜尋（リアルタイム検索）** 擷取**日本 X（推特）公開貼文**，免登入、免 X 帳號。輸入品牌、主題標籤或帳號，即可取得最新或最熱門貼文，含按讚、轉發、回覆、引用數、作者、圖片影片與連結；每個關鍵字另附過去 24 小時、7 天或 30 天的聲量走勢、高峰與正負面比例，並可取得日本即時熱門話題排行。開啟 `onlyNewPosts` 並設定排程，每次只回傳尚未交付的貼文，不重複計費。

***

### Italiano

**Japan X (Twitter) Scraper** raccoglie i post pubblici di X (Twitter) in Giappone attraverso Yahoo! リアルタイム検索, senza account e senza login: ricerca per parola chiave, hashtag o account, con like, repost, risposte, citazioni, autore, immagini, video e link. Per ogni parola chiave restituisce anche il numero di post ora per ora o giorno per giorno (ultime 24 ore, 7 giorni o 30 giorni), il picco e la quota di post positivi e negativi; su richiesta aggiunge le parole di tendenza in Giappone in questo momento e i riassunti dei temi più discussi. Un marchio scritto in inglese trova anche la grafia giapponese. Copre i post degli ultimi 30 giorni, dal più recente. Per monitorare un marchio attiva `onlyNewPosts` e programma la run: ogni esecuzione restituisce soltanto i post non ancora consegnati, senza addebiti doppi.

# Actor input Schema

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

Words, brand names, hashtags or phrases to search in public X (Twitter) posts, as on Yahoo! リアルタイム検索. Japanese or English, one per line, up to 50 per run. A brand typed in English also finds its Japanese spelling (dyson finds ダイソン). You can use #hashtag, @mention, "exact phrase", -exclude and URL:example.com.

## `accounts` (type: `array`):

X (Twitter) account names or profile links to collect the newest posts from, one per line, up to 50. For example UNIQLO_JP or https://x.com/UNIQLO_JP.

## `maxPosts` (type: `integer`):

Maximum number of posts to collect for each keyword and each account. Each post is one dataset row and one charge.

## `startDate` (type: `string`):

Only posts published on or after this moment: a date (2026-01-31), a date and time in Japan time (2026-01-31T18:00), or a period back from now such as 6 hours, 7 days or 2 weeks. Posts of about the last 30 days are searchable. Leave empty for no lower limit.

## `endDate` (type: `string`):

Only posts published on or before this moment: a date (the whole day is included), a date and time in Japan time, or a period such as 1 hour. Leave empty for now.

## `includeVolume` (type: `boolean`):

Adds one row per keyword with how many posts mentioned it over time (the series behind the chart on Yahoo! リアルタイム検索), the total, the peak and the positive and negative share. One extra row and one charge per keyword.

## `includeTrends` (type: `boolean`):

Adds the words trending right now on X in Japan, in rank order, with post count, genre, related words and positive and negative share. About 20 rows. Works with or without keywords.

## `onlyNewPosts` (type: `boolean`):

For scheduled monitoring: each run returns only posts that earlier runs of the same search did not return, so you never pay twice for the same post. The list of delivered posts is kept in a key-value store of your account named yahoo-realtime-search-new-posts; each saved task keeps its own list.

## `sortBy` (type: `string`):

Latest returns the newest matching posts first. Popular returns the posts with the most reactions (話題のポスト), up to 40 for each day of the period.

## `mediaType` (type: `string`):

Keep every post, or only posts with images, or only posts with video.

## `exactMatch` (type: `boolean`):

On: only posts containing the keyword exactly as typed. Off: also posts with other spellings of the same name, for example the katakana form of a brand typed in English. Keywords that already use quotes or other search operators are left as typed.

## `volumePeriod` (type: `string`):

Period and step of the post volume series of each keyword.

## `includeTrendDigests` (type: `boolean`):

Adds the topic digests of Yahoo! リアルタイム検索: for each topic people are posting about, a title, a short summary in Japanese, post count, related themes and positive and negative share. Up to 100 rows.

## Actor input object example

```json
{
  "keywords": [
    "ユニクロ"
  ],
  "accounts": [],
  "maxPosts": 50,
  "includeVolume": true,
  "includeTrends": false,
  "onlyNewPosts": false,
  "sortBy": "latest",
  "mediaType": "all",
  "exactMatch": false,
  "volumePeriod": "30days",
  "includeTrendDigests": false
}
```

# Actor output Schema

## `posts` (type: `string`):

One row per public post, plus the volume and trend rows you switched on.

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

Posts saved, posts in the period and outcome for each keyword and account.

# 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": [
        "ユニクロ"
    ],
    "accounts": [],
    "maxPosts": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("monkey.d.scraping/yahoo-realtime-search-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 = {
    "keywords": ["ユニクロ"],
    "accounts": [],
    "maxPosts": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("monkey.d.scraping/yahoo-realtime-search-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 '{
  "keywords": [
    "ユニクロ"
  ],
  "accounts": [],
  "maxPosts": 50
}' |
apify call monkey.d.scraping/yahoo-realtime-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,monkey.d.scraping/yahoo-realtime-search-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/w6eCdne8acEMIgWg7/builds/MPLGNYu0DNLCMDmbN/openapi.json
