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 · Crime

Smoking Offences Finalised by Type, NSW 2017/18 and 2018/19

A small register of 23 rows counting smoking offences by offence type and financial year (2017/18 and 2018/19), with the finalisation action taken and the reason flags recorded for each case group. A caller can search by offence or year and fetch rows by key.

Endpoints

Smoking Offences Finalised by Type, NSW 2017/18 and 2018/19: search

GET/v1/records/nsw-smoking-offences-by-type-2017-19/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: offence, financial year, finalisation action.
whereExact-match filter `field:value`, repeatable, on: `offence`, `fin_year`.
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/nsw-smoking-offences-by-type-2017-19/search?q=Smoke%20in%20designated%20smoke%20free%20area%20of%20public%20hospital%20etc' \
  -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.

Smoking Offences Finalised by Type, NSW 2017/18 and 2018/19: one record

GET/v1/records/nsw-smoking-offences-by-type-2017-19/{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 case number.
fieldsComma-separated field slugs (below). Omit for all.
curl -X GET 'https://api.microburbs.com.au/v1/records/nsw-smoking-offences-by-type-2017-19/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 smoking offences for the 2017/18 and 2018/19 financial years. The dataset has 23 rows. It has no breakdown by suburb, LGA or other area. Current to 2025-06-24; refreshed One-off release; not expected to update..

What it is

A table of smoking offences grouped by offence type, financial year and finalisation action. Each row carries a total count and a set of flag columns showing the grounds recorded for the outcome, such as vulnerability, mental illness or exceptional circumstances.

What it shows

It shows how many smoking offences of each type were finalised in 2017/18 and 2018/19, and on what grounds. In the profile, the finalisation action is "Cautioned" and the grand total per row ranges from 1 to 5. Offence types include smoking in a smoke-free area, in designated areas of public hospitals, and on public passenger vehicles, trains or public areas.

Why use it

It helps analysts look at how smoking rules are enforced and when cautions are used in place of penalties. It is useful for health policy research, transport and public-space compliance studies, and comparisons across the two years.

How it is built

We load the rows as supplied, one per offence, year and case group, and index them for text search, filtering and fetch by key. The flag columns are kept as supplied, with 1 meaning the ground applied and blank meaning it did not or was not recorded. There is no location, date or offender detail.

Shortcomings

  • Only 23 rows, so it is too small for trend or statistical analysis.
  • Every row in the profile has the finalisation action 'Cautioned', so it does not show fines or other outcomes.
  • Flag columns are mostly blank (65% to 96% per column). Blank cannot be reliably told apart from 'not applicable' or 'not recorded', and flags may overlap on a row.
  • There is no geography or date below financial year, and case_number is only a row label, so it can't be linked to other datasets.

Fields

FieldUnitDescription
offence
Offence
Description of the smoking offence type, such as smoking in a smoke-free area or on public transport.
case_number
Case number
Case group number within the release, used as a row label.
fin_year
Financial year
Financial year of the offences, either 2017/18 or 2018/19.
finalisation_action
Finalisation action
Action that finalised the offence, shown as Cautioned in the profile.
ag_client_18_yrs_age
Client under 18 years of age
countFlag (1) where the caution was given because the client was under 18; blank otherwise.
ag_cognitive_impairment_contributed_to_offending_conduct
Cognitive impairment contributed to conduct
countFlag (1) where cognitive impairment contributed to the offending conduct; blank otherwise.
ag_did_not_knowingly_or_deliberately_commit_offence
Did not knowingly or deliberately offend
countFlag (1) where the person did not knowingly or deliberately commit the offence; blank otherwise.
ag_exceptional_circumstances
Exceptional circumstances
countFlag (1) where exceptional circumstances applied; blank otherwise.
ag_mental_illness_contributed_to_offending_conduct
Mental illness contributed to conduct
countFlag (1) where mental illness contributed to the offending conduct; blank otherwise.
ag_reasonable_in_circumstances
Reasonable in the circumstances
countFlag (1) where the caution was considered reasonable in the circumstances; blank otherwise.
authorised_vehicle_special_or_restricted_zone_usage_is_aut
Authorised vehicle or restricted zone use
countFlag (1) where use of a vehicle or special or restricted zone was authorised; blank otherwise.
issuing_authority_confirmation_of_clients_claim
Issuing authority confirmed client's claim
countFlag (1) where the issuing authority confirmed the client's claim; blank otherwise.
issuing_authority_request_decision_from_issuing_authorit
Decision requested from issuing authority
countFlag (1) where a decision was requested from the issuing authority; blank otherwise.
mental_incapacity_person_responsible_has_mental_illness_or
Mental incapacity of responsible person
countFlag (1) where the person responsible has a mental illness or incapacity; blank otherwise.
other_caution_applicable_under_s24_e_e_of_fines_act_199
Other caution under s24 of the Fines Act
countFlag (1) where another caution ground under section 24 of the Fines Act applied; blank otherwise.
rail_corp_first_offence_for_regular_ticket_holder_juvenil
Rail first offence, regular ticket holder or juvenile
countFlag (1) for a first rail offence by a regular ticket holder or juvenile; blank otherwise.
vulnerability
Vulnerability
countFlag (1) where the person's vulnerability was a ground for the outcome; blank otherwise.
grand_total
Grand total
countTotal number of offences in the row, from 1 to 5 in the profile.

Data source: NSW Government