e-Stat Japan Statistics Scraper avatar

e-Stat Japan Statistics Scraper

Pricing

Pay per event

Go to Apify Store
e-Stat Japan Statistics Scraper

e-Stat Japan Statistics Scraper

Extract official Japanese government statistics from the e-Stat API (api.e-stat.go.jp). Search 6,000+ datasets covering population, GDP, trade, employment, and more. Returns bilingual JP/EN labels with automatic wareki-to-Gregorian date conversion. Requires a free appId from e-stat.go.jp/api/.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Share

Extract official Japanese government statistics from the e-Stat API. Search 6,000+ datasets covering population, GDP, trade, employment, and more. Returns bilingual JP/EN labels with automatic wareki-to-Gregorian date conversion.

What is e-Stat?

e-Stat is Japan's unified government statistics portal, operated by the Ministry of Internal Affairs and Communications. It aggregates statistical data from all major Japanese ministries and agencies. The e-Stat API v3 provides programmatic access to 6,000+ survey tables covering:

  • Population: Census, vital statistics, household surveys
  • Economy: GDP, industrial production, corporate statistics
  • Labour: Employment, wages, working hours
  • Agriculture: Crop production, livestock, fisheries
  • Trade: Import/export by commodity and country
  • Health & Education: Medical facilities, school enrollment

Getting Started

  1. Register for a free API key at https://www.e-stat.go.jp/api/
  2. Enter your appId in the actor input
  3. Choose a mode: catalog to search tables, data to fetch records

Modes

Catalog Mode (mode: "catalog")

Search the statistical table index by keyword, subject area, or publishing ministry. Returns metadata for matching tables — use this to discover statsDataId values for data mode.

Input example:

{
"appId": "YOUR_APP_ID",
"mode": "catalog",
"searchWord": "population",
"lang": "E",
"maxItems": 50
}

Output fields:

FieldDescription
stats_data_idUnique e-Stat table ID (use in data mode)
stats_nameSurvey series name
statistics_nameSpecific table name within the survey
titleFull table title
government_orgPublishing ministry or agency
cycleSurvey frequency (annual/monthly/etc.)
survey_dateSurvey period code
open_datePublication date (YYYY-MM-DD)
small_areaTrue if municipality-level data is available
overall_totalTotal number of data cells in the table

Data Mode (mode: "data")

Fetch actual data cells from one or more specific table IDs. Supports multi-dimensional data with area, time, and category axes.

Input example:

{
"appId": "YOUR_APP_ID",
"mode": "data",
"statsDataIds": ["0003448237"],
"lang": "E",
"maxItems": 1000
}

Output fields:

FieldDescription
stats_data_idSource table ID
area_codeJIS prefecture/municipality code
area_labelArea name (Japanese)
area_label_enArea name (English)
time_codeTime dimension code
time_labelTime label as reported (may include wareki)
time_gregorianISO 8601 normalized year (wareki converted)
cat01_codeCategory dimension 1 code
cat01_labelCategory dimension 1 label
valueNumeric data value
unitMeasurement unit
annotationSuppression flag (* or -)

Filtering Options

Catalog Mode Filters

InputDescriptionExample
searchWordKeyword search across JP and EN metadata"population"
statsFieldSubject area code"02" (Population)
governmentOrgMinistry code"00200" (Statistics Bureau)
langLabel language: "E" (English) or "J" (Japanese)"E"

Common statsField Codes

CodeSubject Area
02Population / Households
03Labour / Wages
04Agriculture / Forestry / Fisheries
05Mining / Industry / Construction
07Trade
08Finance / Insurance
09Government Finance
13Health / Social Security
14Education / Culture

Wareki Date Conversion

Japanese government data frequently uses imperial era years (令和, 平成, 昭和, 大正). This actor automatically converts them to Gregorian years in the time_gregorian field:

JapaneseGregorian OffsetExample
令和 (Reiwa)+2018令和6 → 2024
平成 (Heisei)+1988平成30 → 2018
昭和 (Showa)+1925昭和50 → 1975
大正 (Taisho)+1911大正5 → 1916

Rate Limits

The e-Stat API free tier allows up to 100,000 requests per day with no monthly limit. The actor uses a conservative 200ms delay between requests to stay well within limits.

Large Tables

Some e-Stat tables contain millions of data cells. Use maxItems to limit output:

  • Catalog mode: up to 100,000 table entries per search
  • Data mode: no hard per-table cap, but use maxItems for manageable runs

Output Format

All records are flat JSON objects. Unused dimension fields (e.g. cat02_* when a table only has one category dimension) are omitted from output.

Example Use Cases

  • Track Japan's annual population by prefecture over time
  • Monitor labour market statistics (unemployment, wages) by industry
  • Analyze agricultural production trends
  • Research bilateral trade flows by commodity
  • Study historical demographic data with wareki-to-Gregorian conversion