# Japan Regional Population and Housing Indicators (`jpmarketdata/estat-japan-indicator-observation-export`) Actor

Export government population and housing observations with English labels, original units and complete regional dimensions from the keyless Statistics Dashboard API.

- **URL**: https://apify.com/jpmarketdata/estat-japan-indicator-observation-export.md
- **Developed by:** [h ichi](https://apify.com/jpmarketdata) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.10 / 1,000 snapshot delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Japan Regional Population and Housing Indicators

Retrieve complete selected official Japanese indicator observations with resolved English labels, source units, region/time/adjustment dimensions and provisional markers. Supports government Population Census / Population Estimates and Housing and Land Survey observations for recurring regional models and dashboards. Keyless documented Statistics Dashboard API; no e-Stat appId. Cloud acquisition requires the caller’s existing Apify datacenter proxy access; source access and platform costs are measured separately from delivered-observation fees.

### Input

indicatorCodes:1–5 exact19-digit Dashboard codes, default0201010000000010000(totalpopulation). regionCodes optional 1–50 exact 5-digit codes; empty means all selected-level regions. regionalRank2Japan/3prefectures(default)/4municipalities; foreigncountries excluded. cycle1monthly/2quarterly/3calendar-year(default)/4fiscal-year; seasonalAdjustment1original(default)/2seasonal. timeFrom/timeTo are exact8-character API codes, default2020CY00–2025CY00; reject mismatchedcycle/range before requests. Official API metadata search provides valid codes; this Actor does not accept arbitrary main e-Stat table IDs or API keys. Some combinations have no data; fail uncharged with clear empty-result status rather than fabricate observations.

### Output

One flat statistical observation per indicator+region+time+cycle+rank+adjustment key. Fields: schemaVersion,indicatorCode/name,regionCode/name,timeCode/name,cycle,regionalRank,seasonalAdjustment,isProvisional,value,valueRaw,unitCode/name,statCode/name,source,license,apiCredit,sourceUrl,observedAt. Missing/suppression symbols retain valueRaw and nullablevalue; no interpolation, summation or unit conversion. Return all selected API observations up to10000, and fail if sourceTOTAL_NUMBER differs from actualrows or exceeds10000; no paid prefix, pagination pretendingcomplete, duplicate dimension keys or missing label joins. Different indicator units and cycles remain distinct. COVERAGE contains raw count, dimensional scope, API response time and third-party/source notices.

### Billing

One snapshot-delivered event at$0.0001 per useful delivered observation, max10000=$1.00. No start/search/error fee. Whole result allowance checked before single coupled dataset/event delivery with exact integer charged_count. Source/parse/label/allowance failures yield no paid partial observations. Platform rollback is not guaranteed.

### Limits

256MB,2 merchant requests (robots+one API),30s/request,120sdeadline;8MiBwire/12MiBdecoded API response,16MiBwire total,24MiBstagedoutput and10000observations. Fixed officialHTTPS/host/path/query, no browser or source authentication, no retries,1s source spacing. Cloud runs use only the platform-injected internal Apify gateway and the caller’s existing datacenter pool, after one separate provider-only health check limited to3s and16KiB retained (at most16KiB+1 application-consumed bytes to detect overflow; socket buffers may read ahead). The provider check shares the120s collection deadline; it is excluded from the2 merchant request budget and reported separately in COVERAGE or ERROR. Merchant robots, public destination checks and TLS identity remain enforced; failed health or source checks never fall back to another route. Local native acquisition remains direct. Reject API status errors even HTTP 200, unavailable dimensions, invalidsourceidentities and changedresponse shapes. Static requestlimit includes no hidden merchant retries. SDK storage/initialization is separate. Actual platform proxy/compute cost and cloud PPE are verified per run; this description does not claim a successful current cloud profile.

### Privacy

Only public aggregate indicators. No microdata, respondent records, personal or contact information.

### Source rights and mandatory credit

Source: Statistics Dashboard (https://dashboard.e-stat.go.jp/en/). Normalized by jpmarketdata from source observations; not a government-authored output. Current actual Dashboard copyright policy applies Public Data License(Version1.0), except identified exclusions/third-party content. Include the source and editing attribution with everyrow/export, and preserve relevant source notices. Runtime requires the exact government survey code and source metadata name: 20020101 = Population Census / Population Estimates, 00200524 = Population Estimates, 00200521 = Population Census, or 00200522 = Housing and Land Survey. Every other provenance fails before any output or fee, including private-company indicators. Other Dashboard indicator families are unsupported. These Statistics Bureau government surveys are reviewed under the Dashboard Public Data License; this is an explicit source policy, not a keyword-based licence classifier. No logos, longdefinitions or proprietaryattachments copied. Requiredcredit: This service uses the API feature of Statistics Dashboard, but the contents of this service are not guaranteed by the Statistics Bureau of Japan.

# Actor input Schema

## `indicatorCodes` (type: `array`):

1–5 exact 19-digit Dashboard codes from reviewed government Population Census / Population Estimates (20020101, 00200524, 00200521) or Housing and Land Survey (00200522). Other source provenance fails before delivery. Default total population.

## `regionCodes` (type: `array`):

Optional1–50 exact5-digit region codes, e.g.13000Tokyo/27000Osaka. Empty requests all regions at selected regionalRank.

## `regionalRank` (type: `string`):

2=Japan,3=prefectures,4=municipalities. Foreigncountry data excluded.

## `cycle` (type: `string`):

1=monthly,2=quarterly,3=calendar-year,4=fiscal-year. Source dimension retained.

## `seasonalAdjustment` (type: `string`):

1=original,2=seasonallyadjusted. Source support varies by indicator.

## `timeFrom` (type: `string`):

Exact8-character source time code matching selectedcycle; e.g.2020CY00 forannual.

## `timeTo` (type: `string`):

Exact8-character source time code matching selectedcycle; e.g.2025CY00 forannual.

## Actor input object example

```json
{
  "indicatorCodes": [
    "0201010000000010000"
  ],
  "regionCodes": [],
  "regionalRank": "3",
  "cycle": "3",
  "seasonalAdjustment": "1",
  "timeFrom": "2020CY00",
  "timeTo": "2025CY00"
}
```

# Actor output Schema

## `results` (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("jpmarketdata/estat-japan-indicator-observation-export").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("jpmarketdata/estat-japan-indicator-observation-export").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 jpmarketdata/estat-japan-indicator-observation-export --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jpmarketdata/estat-japan-indicator-observation-export"
        }
    }
}
```

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/dbM5xDv0qKNGE6GeP/builds/r7gG7CYJic44Oz8U5/openapi.json
