Pricing
Pay per event
Korean Statistics Analyzer
Extract and analyze comprehensive statistical data from Korea's KOSIS (Korean Statistical Information Service) portal. This Actor provides easy access to Korean government statistics with powerful search capabilities and structured data output.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Actor stats
1
Bookmarked
4
Total users
0
Monthly active users
9 months ago
Last modified
Categories
Share
Korean Government Statistics Analyzer
Extract and analyze comprehensive statistical data from Korea's KOSIS (Korean Statistical Information Service) portal. This Apify Actor provides automated access to official Korean government statistics with structured data output.
π°π· About KOSIS
KOSIS (Korean Statistical Information Service) is the official statistical portal operated by Statistics Korea, providing access to comprehensive government statistics including:
- Population and demographics
- Economic indicators (GDP, inflation, trade)
- Labor market statistics
- Industrial production data
- Social indicators (education, health, housing)
- Regional statistics
- Historical data (1908-1943)
β¨ Features
- Comprehensive Data Access: Extract data from multiple statistical categories
- Flexible Search: Search by keywords, categories, or specific statistical tables
- Multiple Output Formats: Choose between structured, raw, or combined data formats
- Demo Mode: Test functionality without API credentials
- Rate Limiting: Built-in delays to respect API limits
- Error Handling: Robust error handling with fallback to demo mode
- Metadata Support: Optional inclusion of detailed metadata
π Quick Start
Basic Usage
{"searchKeyword":"μΈκ΅¬","maxItems":5,"outputFormat":"structured"}
Advanced Configuration
{"searchKeyword":"κ²½μ μ±μ₯","vwCd":"MT_ZTITLE","parentId":"A","maxItems":10,"includeMetadata":true,"outputFormat":"both","delayBetweenRequests":2000}
π Input Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
searchKeyword | string | "" | Search keyword for filtering statistics (Korean or English) |
vwCd | string | "MT_ZTITLE" | Service view code (see View Codes section) |
parentId | string | "A" | Parent category ID for hierarchical browsing |
maxItems | number | 10 | Maximum number of statistical tables to process (1-100) |
includeMetadata | boolean | true | Include detailed metadata in output |
outputFormat | string | "structured" | Output format: "structured", "raw", or "both" |
delayBetweenRequests | number | 1000 | Delay between API requests in milliseconds (min: 500) |
π·οΈ KOSIS View Codes
| Code | Description | Korean Name |
|---|---|---|
MT_ZTITLE | Domestic Statistics (by Topic) | κ΅λ΄ν΅κ³ μ£Όμ λ³ |
MT_OTITLE | Domestic Statistics (by Agency) | κ΅λ΄ν΅κ³ κΈ°κ΄λ³ |
MT_GTITLE01 | Local Indicators (by Topic) | e-μ§λ°©μ§ν(μ£Όμ λ³) |
MT_GTITLE02 | Local Indicators (by Region) | e-μ§λ°©μ§ν(μ§μλ³) |
MT_CHOSUN_TITLE | Historical Statistics (1908-1943) | κ΄λ³΅μ΄μ ν΅κ³ |
MT_HANKUK_TITLE | Korea Statistical Yearbook | λνλ―Όκ΅ν΅κ³μ°κ° |
MT_RTITLE | International Statistics | κ΅μ ν΅κ³ |
MT_BUKHAN | North Korea Statistics | λΆνν΅κ³ |
MT_ETITLE | English KOSIS | μλ¬Έ KOSIS |
π Output Data Structure
Structured Output
{"statName":"μΈκ΅¬μ΄μ‘°μ¬ μ΄μΈκ΅¬","surveyDate":"2020λ ","region":"μ κ΅","category1":"μ΄μΈκ΅¬","category2":"κ³","value":51829023,"unit":"λͺ ","sourceTableId":"DT_1IN1502","dataType":"population","lastUpdated":"2021-08-31T00:00:00Z","metadata":{"tableTitle":"μΈκ΅¬μ΄μ‘°μ¬ μ΄μΈκ΅¬","categories":{"c1":"μ κ΅","c2":"κ³","item":"μ΄μΈκ΅¬"},"originalData":{ ... }},"extractedAt":"2024-09-21T10:30:00Z"}
Data Types
The Actor automatically categorizes statistics into the following types:
population- Population and demographic dataeconomic- Economic indicators (GDP, growth, etc.)labor- Employment and labor market statisticsindustry- Industrial production and manufacturingeducation- Educational statisticshealth- Healthcare and medical statisticsenvironment- Environmental indicatorshousing- Housing and real estate dataincome- Income and household statisticsprices- Price indices and inflation datageneral- Other statistical categories
π API Key Setup
Option 1: Environment Variable (Recommended)
Set the KOSIS_API_KEY environment variable in your Apify Actor settings.
Option 2: Actor Input
Include your API key in the Actor input (less secure):
{"apiKey":"your-kosis-api-key-here","searchKeyword":"μΈκ΅¬"}
Getting a KOSIS API Key
β οΈ Important: KOSIS API key registration requires Korean identity verification.
- Visit KOSIS OpenAPI Registration
- Click "μΈμ¦ν€ μ μ²" (API Key Application)
- Complete identity verification using:
- Korean mobile phone number, OR
- i-PIN (Korean digital identity)
- Fill out the application form
- Wait for approval (usually 1-2 business days)
Note: International users without Korean identity verification cannot obtain KOSIS API keys. The Actor will run in demo mode without an API key.
π― Use Cases
Research and Analysis
- Academic research on Korean demographics and economics
- Market research and business intelligence
- Policy analysis and government studies
- International comparative studies
Data Integration
- Integrate Korean statistics into dashboards
- Automated data collection for reports
- Real-time monitoring of economic indicators
- Historical trend analysis
Business Applications
- Market sizing and opportunity analysis
- Economic forecasting and planning
- Competitive intelligence
- Investment research
π Example Searches
Population Statistics
{"searchKeyword":"μΈκ΅¬","vwCd":"MT_ZTITLE","maxItems":5}
Economic Indicators
{"searchKeyword":"GDP","vwCd":"MT_ZTITLE","maxItems":3}
Labor Market Data
{"searchKeyword":"κ³ μ©","vwCd":"MT_ZTITLE","maxItems":8}
Regional Statistics
{"vwCd":"MT_GTITLE02","parentId":"A","maxItems":10}
π οΈ Technical Details
- Runtime: Node.js 18+
- Dependencies: Apify SDK, Axios
- Rate Limiting: Configurable delays between requests
- Error Handling: Automatic fallback to demo mode
- Data Validation: Input validation and sanitization
- Monitoring: Comprehensive logging and event tracking
π Demo Mode
When no API key is provided, the Actor runs in demo mode with sample Korean statistical data:
- Population census data
- Employment statistics
- GDP figures
- Consumer price index
Demo mode is perfect for:
- Testing the Actor functionality
- Understanding output formats
- Development and integration testing
π Troubleshooting
Common Issues
-
No API Key: Actor runs in demo mode
- Solution: Obtain KOSIS API key or use demo data
-
API Authentication Error: 403/401 responses
- Solution: Verify API key validity and permissions
-
No Data Found: Empty results
- Solution: Adjust search parameters or view codes
-
Rate Limiting: Too many requests
- Solution: Increase
delayBetweenRequestsparameter
- Solution: Increase
Support
For technical issues or questions:
- Check the Actor logs for detailed error messages
- Verify input parameters match the expected format
- Ensure API key has proper permissions
- Contact support through Apify platform
π License
This project is licensed under the Apache License 2.0.
π€ Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
Disclaimer: This Actor is not officially affiliated with Statistics Korea or KOSIS. It provides a convenient interface to access publicly available statistical data through official APIs.
