MicroburbsMicroburbs
Free sandbox: try any request below on the sample suburbs, no signup. For every suburb, create an API key.
Classic docs
Microburbs Property Data API
Dataset · Transport

Opal Tap On and Tap Off Counts, NSW, 2016

Privacy-protected counts of Opal smartcard tap ons and tap offs on NSW public transport (train, bus, ferry and light rail) for two weeks in 2016. Each of the 225,080 rows gives a count of taps by mode, date, tap type, 15-minute time bin and location code. A caller can search and filter rows or fetch one by key.

Endpoints

Opal Tap On and Tap Off Counts, NSW, 2016: search

GET/v1/records/opal-tap-on-tap-off-counts-nsw-2016/search10¢ per call

Served by /v1/records/{slug}/search, which documents every parameter, the response shape and errors, and has a live playground.

Query parameterDescription
qWords to find (prefix match, all must appear) in: transport mode, tap type, time bin.
whereExact-match filter `field:value`, repeatable, on: `mode`, `tap`.
fieldsComma-separated field slugs (below). Omit for all.
limitRecords per page, 1 to 50 (default 25).
offsetItems to skip, for the next page (`next_offset`).
curl -X GET 'https://api.microburbs.com.au/v1/records/opal-tap-on-tap-off-counts-nsw-2016/search?q=bus' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

Opal Tap On and Tap Off Counts, NSW, 2016: one record

GET/v1/records/opal-tap-on-tap-off-counts-nsw-2016/{record_key}5¢ per call

Served by /v1/records/{slug}/{record_key}, which documents every parameter, the response shape and errors, and has a live playground.

Query parameterDescription
record_keyThe record's record id.
fieldsComma-separated field slugs (below). Omit for all.
curl -X GET 'https://api.microburbs.com.au/v1/records/opal-tap-on-tap-off-counts-nsw-2016/1' \
  -H 'Authorization: Bearer test'

test is the public sandbox key: it works only for the sandbox's allowlisted suburbs and addresses. Use your own key for anything else.

About this dataset

New South Wales public transport on four modes: train, bus, ferry and light rail. It covers 14 days in two non-consecutive weeks in 2016 (25 to 31 July and 8 to 14 August). The table has 225,080 rows. Location codes range from -1 to 2783 and counts per row range from 18 to 6,973. Current to 2025-06-23; refreshed One-off historical dataset. It is not updated on a regular schedule..

What it is

A register of aggregated tap counts from the Opal ticketing system. Each row is a count of taps for one mode, one date, one tap type (on or off), one 15-minute time bin and, where given, one location code. Rows hold no card or traveller information.

What it shows

It shows how many taps happened at different times of day and at different locations across the four modes. The data covers two weeks: 25 to 31 July 2016, before paper ticket retirement, and 8 to 14 August 2016, after it. Paper ticket use is not included, so the two weeks are not like for like.

Why use it

Analysts can use it to study peak-hour patterns, compare modes, and see how patronage was distributed across stops and stations. It also gives a baseline for historical demand work. Because it is a 2016 snapshot, it suits historical comparison, not current planning.

How it is built

We combined the published weekly files of counts by time, by location, and by time with location into one searchable table. Counts are aggregated and tap on and tap off figures are not linked, so trips cannot be rebuilt. The location code is blank for about half of the rows. Our profile shows the sampled date value as 9 August 2016 only, so check the date range you actually receive.

Shortcomings

  • Location is blank for about 52% of rows, so location-level totals are incomplete. A value of -1 also appears in the location field and likely marks an unknown or unassigned location.
  • Paper ticket data is not included. The first week, before paper tickets were retired, undercounts total travel compared with the second week.
  • Tap ons and tap offs are not linked, so you cannot derive trips, origin-destination pairs or journey lengths.
  • Only two weeks of 2016 are covered, and low counts appear to be suppressed (the smallest count is 18). Small flows are therefore missing, and the data does not describe current travel.

Fields

FieldUnitDescription
record_id
Record ID
Identifier for the row, used to fetch a single record by key.
mode
Transport mode
Public transport mode of the taps, such as bus, train, ferry or light rail.
date
Date
Date of the taps written as a number in YYYYMMDD form, for example 20160809.
tap
Tap type
Whether the count is for taps on (boarding) or taps off (alighting).
time
Time bin
Start of the 15-minute time bin in HH:MM, for example 07:30.
loc
Location code
Numeric code for the tap location; -1 or a blank value means no location is given.
count
Tap count
countNumber of taps recorded for that mode, date, tap type, time bin and location.

Data source: NSW Government