# KTMB Rail Stations Directory — Peninsular Malaysia

**Use case:** 

Export all KTMB rail stations in Peninsular Malaysia — station ID, name, line (ETS/Intercity/Komuter), and state. Use station IDs for downstream booking API

## Input

```json
{
  "sp_intended_usage": "Build a KTMB station directory for a travel app route planner",
  "sp_improvement_suggestions": "N/A",
  "sp_contact": "Share your email here...",
  "dataSource": "ktmb_stations",
  "maxItems": 200
}
```

## Output

```json
{
  "record_type": {
    "label": "Record Type",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "station_name": {
    "label": "Station Name",
    "format": "string"
  },
  "from_city": {
    "label": "From City",
    "format": "string"
  },
  "to_city": {
    "label": "To City",
    "format": "string"
  },
  "distance_km": {
    "label": "Distance Km",
    "format": "number"
  },
  "avg_duration_mins": {
    "label": "Avg Duration Mins",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [Malaysia Transit — KTMB Rail & Easybook Bus Routes](https://apify.com/jungle_synthesizer/ktmb-malaysia-transit-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jungle_synthesizer/ktmb-malaysia-transit-scraper) to learn more, explore other use cases, and run it yourself.