# Japan News Scraper: Japanese Articles (`bite-sized-insights/nippon-news-scraper`) Actor

Collect Japanese-language news articles from 23 national and regional outlets, including Asahi, Yomiuri and NHK. Get titles, dates, authors and full text. Filter by keyword and date. Optional sentiment, tags, summaries and 5W1H.

- **URL**: https://apify.com/bite-sized-insights/nippon-news-scraper.md
- **Developed by:** [bite-sized-insights](https://apify.com/bite-sized-insights) (community)
- **Categories:** News, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.17 / 1,000 articles

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?

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

**日本の20以上の報道機関から記事を収集・抽出します。** 全国紙・通信社6紙と、北海道から沖縄まで8地方15紙をカバー。タイトル、全文、著者、公開日などの構造化データを取得できます。

ログイン不要。APIキー管理不要。フィルタを設定するだけで記事の収集を開始できます。

このアクターは日本語メディアのみを対象とし、Nikkei Asia、The Japan Times、Nippon.com などの英語メディアは含まれません。

### なぜ日本のニュースか？

日本は世界第4位の経済大国であり、テクノロジー、製造業、金融において世界をリードしています。全国紙から地方紙まで、政治・経済・社会の動向を幅広く報道する豊富なメディア環境を持っています。このアクターは、日本全国の主要な報道機関を一つの統一フィードで提供し、以下を実現します：

- **全国・地方横断メディアモニタリング：** 同一ニュースが全国紙と地方紙でどのように報道されているかを同時に追跡
- **日本市場インテリジェンス：** 経済政策、企業動向、規制変更をリアルタイムで監視
- **NLP・感情分析：** 日本語の構造化テキストをNLPパイプラインに供給
- **学術研究：** 多様な視点から大規模ニュースコーパスを収集
- **コンテンツアグリゲーション：** 日本全国をカバーするニュースフィードやダッシュボードを構築

Google ニュースでキーワード検索をしても、得られるのは見出しとリンク、断片的なスニペットだけで、記事本文そのものは手に入りません。このアクターは全国紙・通信社系6媒体と地方8地域15紙、計21の厳選されたソースから記事本文をまるごと取得し、どのソースを使うかも個別に選べます — アルゴリズムに選定を任せる検索とは異なるアプローチです。

### クイックスタート

#### デフォルト：最新100件の記事を取得

```json
{
  "limit": 100
}
```

#### キーワードで検索

```json
{
  "search_query": "選挙",
  "limit": 100
}
```

#### 日付範囲で絞り込み

```json
{
  "start_date": "2026-02-01",
  "end_date": "2026-02-15",
  "limit": 500
}
```

#### 組み合わせ：日付範囲 + キーワード検索

```json
{
  "search_query": "経済",
  "start_date": "2026-02-01",
  "limit": 200
}
```

#### 特定のソースを選択

```json
{
  "limit": 100,
  "asahi_shimbun": true,
  "nhk_news": true,
  "yomiuri_shimbun": true,
  "hokkaido_shimbun": false,
  "okinawa_times": false
}
```

#### 無制限（利用可能な全記事）

```json
{
  "limit": 0
}
```

### 入力パラメータ

| パラメータ | タイプ | 必須 | デフォルト | 説明 |
|-----------|------|------|---------|------|
| `search_query` | string | いいえ | - | キーワードで記事をフィルタ。タイトル、本文、URLにこのキーワードを含む記事のみが返されます。（最大100文字） |
| `start_date` | date | いいえ | - | この日付以降に公開された記事のみを含む（YYYY-MM-DD）。未来の日付は指定できません。 |
| `end_date` | date | いいえ | - | この日付以前に公開された記事のみを含む（YYYY-MM-DD）。5年より前の日付は指定できません。 |
| `limit` | integer | いいえ | 100 | 返される記事の最大数。`0`で無制限。最大: 10,000。 |
| `with_sentiment` | boolean | いいえ | `false` | 各記事にセンチメントスコアを追加（ポジティブ／ネガティブ／ニュートラル＋信頼度）。$0.20 / 1,000件。 |
| `with_tags` | boolean | いいえ | `false` | 各記事にLLMが生成したカテゴリタグを追加。$1.50 / 1,000件。 |
| `with_summary` | boolean | いいえ | `false` | 各記事にLLMが生成した簡潔な要約を追加。$2.50 / 1,000件。 |
| `with_5w1h` | boolean | いいえ | `false` | 各記事に5W1H（誰が・何を・いつ・どこで・なぜ・どのように）の抽出を追加。記事本文が50文字以上であることが必要です。$4.00 / 1,000件。 |
| `with_language_detection` | boolean | いいえ | `false` | 各記事の本文の言語を検出（言語コード・信頼度・候補言語）。結果は`detected_language`に別途格納され、ソースが宣言する`language`は変更されません。$0.10 / 1,000件。 |
| `with_fix_text` | boolean | いいえ | `false` | 各記事の文字化けや壊れたエンコーディングを修復。修復後のテキストは`fixed_text`で返され、`text`は変更されません。他のアドオンは修復後のテキストを解析します。テキストが実際に修復された記事（`changed`がtrue）のみ課金。$1.25 / 1,000件。 |

#### フィルタリングの詳細

- **検索クエリ**（最大100文字）は記事のタイトルと全文に対して照合されます（大文字小文字を区別しません）。
- **日付フィルタ**は記事の`date_publish`フィールドに適用されます。公開日がない記事は除外できないため含まれます。
- **フィルタはニュースAPIに転送されます：** `search_query`、`start_date`、`end_date`はニュースAPIに送信され、記事の処理中に適用されます。
- `search_query`使用時、記事は抽出後にフィルタされるため、最終結果数よりも多くの記事がバックグラウンドで処理される場合があります。

#### ソース選択

各ニュースソースはトグルで個別に有効・無効を切り替えられます。**すべてのソースがデフォルトで有効です。** ソースを`false`に設定すると実行から除外されます。

利用可能なソースキーの一覧は[対応ニュースソース](#対応ニュースソース)セクションを参照してください。

### 対応ニュースソース

全国紙・通信社6紙と、北海道から沖縄まで8地方15紙の計21報道機関をモニタリングします。記事はすべて日本語です。

#### 全国紙・通信社

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 朝日新聞 | asahi.com | 日本を代表する全国紙の一つ。政治、経済、社会、国際ニュースを幅広くカバー。 |
| 共同通信 | kyodo.co.jp | 全国の地方紙・放送局に記事を配信する通信社。政治、経済、国際、社会の速報を網羅する。 |
| 読売新聞 | yomiuri.co.jp | 日本最大の発行部数を誇る全国紙。政治、経済、社会、国際ニュースを幅広くカバー。 |
| NHKニュース | nhk.or.jp | 日本の公共放送NHKのニュースサイト。速報性が高く、社会、政治、経済、科学、国際の各分野を網羅。 |
| 時事通信 | jiji.com | 日本の二大通信社の一つ。政治・行政ニュースの速報に強みを持つ。 |

#### 北海道

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 北海道新聞 | hokkaido-np.co.jp | 北海道最大のブロック紙。道内の政治、経済、社会ニュースを幅広く報道。 |

#### 東北

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 東奥日報 | toonippo.co.jp | 青森県を代表する地方紙。県内ニュース・地域情報を中心に報道。 |
| 秋田魁新報 | sakigake.jp | 秋田県の主要地方紙。県政、地域経済、暮らしの情報を提供。 |

#### 中部

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 福井新聞 | fukuishimbun.co.jp | 福井県の主要地方紙。県政、地域ニュース、原発関連報道で知られる。 |
| MGプレス | mgpress.jp | 長野県松本市を拠点とする地域メディア。信州の暮らし・文化・地域情報を発信。 |

#### 関西

| ソース | ドメイン | 説明 |
|--------|--------|------|
| わかやま新報 | wakayamashimpo.co.jp | 和歌山県の地域紙。県内ニュースと地域情報を中心に報道。 |

#### 中国

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 山陽新聞 | sanyonews.jp | 岡山県を中心とした中国地方の有力紙。地域の政治・経済・社会ニュースを報道。 |

#### 四国

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 徳島新聞 | topics.or.jp | 徳島県の主要地方紙。県内ニュース・阿波踊りなど地域文化の報道。 |

#### 九州

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 西日本新聞 | nishinippon.co.jp | 九州最大のブロック紙。福岡県を中心に九州全域のニュースをカバー。 |
| 佐賀新聞 | saga-s.co.jp | 佐賀県の主要地方紙。県政・地域ニュースを中心に報道。 |
| 熊本日日新聞 | kumanichi.com | 熊本県の主要地方紙。県内政治・経済・社会ニュースを幅広くカバー。 |
| 宮崎日日新聞 | the-miyanichi.co.jp | 宮崎県の主要地方紙。県内ニュース・地域情報を提供。 |

#### 沖縄

| ソース | ドメイン | 説明 |
|--------|--------|------|
| 沖縄タイムス | okinawatimes.co.jp | 沖縄県を代表する地方紙。基地問題、県政、地域文化を幅広く報道。 |

### 出力例

各記事は全文とメタデータを含む構造化オブジェクトとして返されます：

```json
{
  "url": "https://www.asahi.com/articles/example-12345",
  "article_title": "記事の見出し例",
  "authors": ["記者名"],
  "date_publish": "2026-02-15T10:30:00",
  "article_description": "記事内容の簡潔な要約。",
  "text": "記事の全文がここに抽出されます...",
  "language": "ja",
  "image_url": "https://www.asahi.com/img/example.jpg",
  "source_domain": "www.asahi.com",
  "type": "article",
  "sentiment": null,
  "tags": null,
  "summary": null,
  "five_w1h": null,
  "detected_language": null,
  "fixed_text": null,
  "error": null
}
```

#### 出力フィールド

| フィールド | タイプ | 説明 |
|-----------|------|------|
| `url` | string | 記事の完全なURL |
| `article_title` | string | 記事の見出し |
| `authors` | array | 著者名のリスト |
| `date_publish` | string | 公開日（ISO 8601形式） |
| `article_description` | string | 記事の要約 / メタディスクリプション |
| `text` | string | 記事の全文 |
| `language` | string | 言語コード（例：`ja`、`en`） |
| `image_url` | string | 記事のメイン画像URL |
| `source_domain` | string | ニュースソースのドメイン |
| `type` | string | Page type: `article`, `video` or `audio`. Video and audio pages (iPlayer, Sounds, video player pages, podcast episodes) have little or no text - filter on `type` to keep articles only |
| `error` | string | 常に`null`（将来の使用のために予約）。抽出に失敗した記事はエラー付きで出力されるのではなく、除外されます |
| `sentiment` | object | センチメント分析結果。`with_sentiment`をリクエストして成功した場合のみ値が入り、それ以外は`null` |
| `tags` | object | タグ抽出結果。`with_tags`をリクエストして成功した場合のみ値が入り、それ以外は`null` |
| `summary` | object | 要約結果。`with_summary`をリクエストして成功した場合のみ値が入り、それ以外は`null` |
| `five_w1h` | object | 5W1H抽出結果。`with_5w1h`をリクエストして成功した場合のみ値が入り、それ以外は`null` |
| `detected_language` | object | 言語検出結果。`with_language_detection`をリクエストして成功した場合のみ値が入り、それ以外は`null` |
| `fixed_text` | object | テキスト修復結果。`with_fix_text`をリクエストして成功した場合のみ値が入り、それ以外は`null` |

#### 抽出失敗の記事

抽出できなかった記事（ペイウォール、タイムアウト、ブロックなど）は静かにスキップされ、出力データセットには一切表示されません。テキストが正常に抽出された記事のみがプッシュされます。

### 料金：従量課金制

このアクターはApifyのpay-per-event課金モデルを使用しています。

| イベント | 料金 | 説明 |
|---------|------|------|
| アクター起動 | $0.0002 | 実行ごとに1回課金 |
| 記事 | $1.80 / 1,000件 | 正常に抽出された記事ごとに課金 |
| センチメント分析アドオン | $0.20 / 1,000件 | オプション。`with_sentiment`が成功した場合のみ課金 |
| タグ抽出アドオン | $1.50 / 1,000件 | オプション。`with_tags`が成功した場合のみ課金 |
| 要約アドオン | $2.50 / 1,000件 | オプション。`with_summary`が成功した場合のみ課金 |
| 5W1Hアドオン | $4.00 / 1,000件 | オプション。`with_5w1h`が成功した場合のみ課金 |
| 言語検出アドオン | $0.10 / 1,000件 | オプション。`with_language_detection`が成功した場合のみ課金 |
| テキスト修復アドオン | $1.25 / 1,000件 | オプション。`with_fix_text`が成功し、テキストが修復された記事（`changed`がtrue）のみ課金 |

**重要な詳細：**

- **成功した記事のみ課金：** 抽出失敗は無料
- **エンリッチメントアドオンはオプトインで別途課金：** 各`with_*`アドオンは正常にエンリッチされた記事にのみ課金され、文字数不足でスキップされた記事や失敗した記事は無料です
- **無料プラン：** アカウントあたり5回まで無料で実行でき、各実行は10記事に制限されます。有料プランに制限はありません
- **最低利用額なし：** 使った分だけお支払い
- **予算管理：** Apifyアカウントで支出制限を設定可能
- **割引あり：** ApifyのGold、Silver、Bronzeメンバーは割引が適用されます

### API Integration

#### Apify API経由での呼び出し

```bash
curl -X POST "https://api.apify.com/v2/acts/bite-sized-insights~nippon-news-scraper/runs?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"limit": 100, "search_query": "選挙", "start_date": "2026-02-01"}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("bite-sized-insights/nippon-news-scraper").call(
    run_input={
        "limit": 100,
        "search_query": "選挙",
        "start_date": "2026-02-01",
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("error"):
        continue
    print(f"[{item['source_domain']}] {item['article_title']}")
    print(f"  {item['url']}")
    print(f"  公開日: {item['date_publish']}")
    print()
```

#### JavaScript / Node.js

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('bite-sized-insights/nippon-news-scraper').call({
    limit: 100,
    search_query: '選挙',
    start_date: '2026-02-01',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items
    .filter(item => !item.error)
    .forEach(item => {
        console.log(`[${item.source_domain}] ${item.article_title}`);
        console.log(`  ${item.url}`);
    });
```

### ユースケース

- **全国・地方横断メディアモニタリング：** 同一ニュースが全国紙と各地方紙でどのように報道されているかを比較分析
- **日本市場インテリジェンス：** 経済指標、通商政策、企業動向、規制変更など日本経済の動きをリアルタイムで監視
- **NLP・感情分析：** 日本語の記事全文を大規模に抽出し、言語モデルの学習やセンチメント分類に活用
- **学術研究：** 政治学、メディア研究、日本研究向けの多角的ニュースコーパスを構築
- **リスク・コンプライアンス：** 政治情勢、規制変更、自然災害など、ビジネスに影響を与える日本国内の動向を監視

### 高度な使い方

#### 定期実行モニタリング

定期実行を設定してニュースアーカイブを継続的に構築：

1. アクターの**Schedules**タブに移動
2. 新しいスケジュールを作成（例：6時間ごと）
3. 希望のリミットでインプットを設定
4. 結果がデータセットに蓄積され、過去のデータ分析に活用可能

#### Google Sheetsとの連携

結果をGoogle Sheetsに直接エクスポート：

1. アクターを実行
2. データセットに移動
3. **Export** > **Google Sheets** をクリック

### 技術詳細

#### 動作の仕組み

1. **ディスカバリー：** ニュースソースに問い合わせて記事URLを発見
2. **プレフィルタリング：** ディスカバリーメタデータ（日付、タイトル内キーワード）に基づいて早期にフィルタリングし、不要なダウンロードを回避
3. **重複排除：** ソース間で重複するURLを排除し、各ソースから公平に記事を取得するためラウンドロビン方式でインターリーブ
4. **抽出：** 各記事をバッチでダウンロード・解析し、構造化コンテンツ（タイトル、本文、著者、日付など）を抽出
5. **ポストフィルタリング：** 抽出されたコンテンツ全体に対して再度フィルタ（日付＋タイトル・本文でのキーワード検索）
6. **出力：** 結果をApifyデータセットに送信

#### パフォーマンス

- **バッチ処理：** 大規模実行は自動的に分割され、信頼性を確保
- **フォールトトレランス：** 一つのソースやバッチが失敗しても、他は処理を継続
- **メモリ：** 実行あたり256〜512 MB

#### エラーハンドリング

| エラータイプ | 動作 |
|------------|------|
| ソース利用不可 | スキップして他のソースは処理を継続 |
| 記事ダウンロード失敗 | エラーメッセージ付きで返却 |
| レート制限（429） | 指数バックオフで自動リトライ |
| サーバーエラー（5xx） | 自動リトライ（3回） |

### データエクスポート

結果は複数の形式でエクスポート可能：

- **JSON** - 完全な構造化データ
- **CSV** - スプレッドシート向けフラット形式
- **Excel** - .xlsx形式で直接ダウンロード
- **XML** - レガシーシステムとの連携用

```bash
## JSON
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?format=json&token=YOUR_TOKEN"

## CSV
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv&token=YOUR_TOKEN"
```

### よくある質問

#### 各実行で何件の記事が返されますか？

ソースの最近の公開状況によります。`limit: 0`での通常の実行では、全ソースから数百〜数千件の記事が返されます。

#### ソースリストはどのくらいの頻度で更新されますか？

ソースは定期的にキュレーション・更新されています。ソースの追加を希望する場合は、アクターのリポジトリでissueを作成してください。

#### 過去の記事は保存されていますか？

いいえ。各実行ではソースのフィードで現在利用可能な記事を取得します。過去のアーカイブを構築するには、定期実行（Scheduled Runs）を設定してください。

#### 記事はどの言語ですか？

すべての記事は日本語です。英語のニュースをお探しの場合は、姉妹アクター Japan English News Scraper: Full-Text Articles をご利用ください。記事の言語は`language`フィールドで確認できます。

#### キーワードや日付でフィルタできますか？

はい。`search_query`でキーワードフィルタ（タイトルと全文を検索）、`start_date`と`end_date`で日付範囲の絞り込みが可能です。これらのフィルタは組み合わせて使用できます。

#### ソースごとにフィルタできますか？

はい。各ソースにはインプットのトグルがあります（例：`asahi_shimbun`、`nhk_news`、`hokkaido_shimbun`）。任意のソースを`false`に設定して除外できます。すべてのソースはデフォルトで有効です。実行後に`source_domain`でデータセットをフィルタすることも可能です。

#### ニュースソースがダウンした場合はどうなりますか？

アクターは他のすべてのソースの処理を継続します。失敗したソースはログに記録されますが、実行は停止しません。

#### 検索使用時にリミットより多くの記事が処理されるのはなぜですか？

`search_query`を設定すると、アクターは記事をダウンロード・抽出してキーワードとの一致を確認する必要があります。`limit`は受け取る一致記事数を制御しますが、バックグラウンドではより多くの記事が処理される場合があります。

### 免責事項

このアクターは公開されているウェブページからニュース記事を抽出します。ペイウォール、認証、アクセス制限の回避は行いません。データの使用にあたっては、適用される法律および各報道機関の利用規約を遵守してください。

***

**ヘルプが必要ですか？** アクターのリポジトリでissueを作成するか、Apify Consoleからサポートにお問い合わせください。

# Actor input Schema

## `search_query` (type: `string`):

Filter articles by keyword. Only articles matching any word of the query in title, text, description or URL (case-insensitive) will be returned. Might process a lot of articles in the background.

## `start_date` (type: `string`):

Only include articles published on or after this date. Must not be in the future.

## `end_date` (type: `string`):

Only include articles published up to this date (taken as 00:00:00 when no time is given). Must not be older than 5 years.

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

Maximum number of articles to return (0 = unlimited). The actual number of processed articles might be higher if date and/or query filters are in use.

## `asahi_shimbun` (type: `boolean`):

Include articles from Asahi Shimbun (asahi.com)

## `kyodo_news` (type: `boolean`):

Include articles from Kyodo News (kyodo.co.jp)

## `yomiuri_shimbun` (type: `boolean`):

Include articles from Yomiuri Shimbun, Japan's largest-circulation newspaper (yomiuri.co.jp)

## `nhk_news` (type: `boolean`):

Include articles from NHK News (nhk.or.jp)

## `jiji_press` (type: `boolean`):

Include articles from Jiji Press (jiji.com)

## `hokkaido_shimbun` (type: `boolean`):

Include articles from Hokkaido Shimbun (hokkaido-np.co.jp)

## `toonippo` (type: `boolean`):

Include articles from Toonippo (toonippo.co.jp, Aomori)

## `akita_sakigake` (type: `boolean`):

Include articles from Akita Sakigake (sakigake.jp, Akita)

## `fukui_shimbun` (type: `boolean`):

Include articles from Fukui Shimbun (fukuishimbun.co.jp, Fukui)

## `mgpress` (type: `boolean`):

Include articles from MGPress (mgpress.jp, Nagano)

## `wakayama_shimpo` (type: `boolean`):

Include articles from Wakayama Shimpo (wakayamashimpo.co.jp, Wakayama)

## `sanyo_shimbun` (type: `boolean`):

Include articles from Sanyo Shimbun (sanyonews.jp, Okayama)

## `tokushima_shimbun` (type: `boolean`):

Include articles from Tokushima Shimbun (topics.or.jp, Tokushima)

## `nishinippon_shimbun` (type: `boolean`):

Include articles from Nishinippon Shimbun (nishinippon.co.jp, Fukuoka)

## `saga_shimbun` (type: `boolean`):

Include articles from Saga Shimbun (saga-s.co.jp, Saga)

## `miyazaki_nichinichi` (type: `boolean`):

Include articles from Miyazaki Nichinichi (the-miyanichi.co.jp, Miyazaki)

## `okinawa_times` (type: `boolean`):

Include articles from Okinawa Times (okinawatimes.co.jp, Okinawa)

## `with_sentiment` (type: `boolean`):

Add a sentiment score to each article (positive/negative/neutral + confidence). $0.20 / 1,000 articles.

## `with_tags` (type: `boolean`):

Add LLM-generated category tags to each article. $1.50 / 1,000 articles.

## `with_summary` (type: `boolean`):

Add an LLM-generated compact summary to each article. $2.50 / 1,000 articles.

## `with_5w1h` (type: `boolean`):

Add Who/What/When/Where/Why/How extraction to each article. Requires at least 50 characters of article text. $4.00 / 1,000 articles.

## `with_language_detection` (type: `boolean`):

Detect the language of each article's text (code, confidence, candidates) into a separate detected_language field; the source-declared language stays unchanged. $0.10 / 1,000 articles.

## `with_fix_text` (type: `boolean`):

Repair garbled text (mojibake) in each article. The repaired text is returned in fixed_text, text stays unchanged, and other add-ons then analyse the fixed text. Charged only for articles whose text was actually repaired. $1.25 / 1,000 articles.

## Actor input object example

```json
{
  "limit": 100,
  "asahi_shimbun": true,
  "kyodo_news": true,
  "yomiuri_shimbun": true,
  "nhk_news": true,
  "jiji_press": true,
  "hokkaido_shimbun": true,
  "toonippo": true,
  "akita_sakigake": true,
  "fukui_shimbun": true,
  "mgpress": true,
  "wakayama_shimpo": true,
  "sanyo_shimbun": true,
  "tokushima_shimbun": true,
  "nishinippon_shimbun": true,
  "saga_shimbun": true,
  "miyazaki_nichinichi": true,
  "okinawa_times": true,
  "with_sentiment": false,
  "with_tags": false,
  "with_summary": false,
  "with_5w1h": false,
  "with_language_detection": false,
  "with_fix_text": false
}
```

# Actor output Schema

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

Extracted news articles with title, text, authors, publish date, and source domain

# 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 = {
    "limit": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("bite-sized-insights/nippon-news-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 = { "limit": 100 }

# Run the Actor and wait for it to finish
run = client.actor("bite-sized-insights/nippon-news-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 '{
  "limit": 100
}' |
apify call bite-sized-insights/nippon-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bite-sized-insights/nippon-news-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/6l0B8K0BE75nRGgXn/builds/vC5MH2PbHFwFyRO4o/openapi.json
