Query any TDX endpoint
tdx_getQuery any TDX API path with OData filter, select, orderBy, top, and skip options when no dedicated transport tool covers the data.
Instructions
GET any TDX API path (https://tdx.transportdata.tw/api-service/swagger) with OData options. Use it only when no specific tool covers the data. Field names in filter, select and orderBy are TDX field names (e.g. StationName/Zh_tw). Results are not cached and null or empty fields are dropped. Example: path "/v2/Rail/THSR/Station", select ["StationID","StationName"], top 5.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum items ($top, default 30). | |
| path | Yes | API path starting with a version, e.g. /v2/Bike/Station/City/Taipei. | |
| skip | No | Items to skip ($skip), for paging. | |
| filter | No | OData $filter, e.g. "AvailableRentBikes gt 0 and contains(StationName/Zh_tw,'捷運')". | |
| select | No | Top-level fields to return ($select). | |
| orderBy | No | Sort keys ($orderby), each "Field" or "Field desc", e.g. ["UpdateTime desc"]. |