Why publish it
Every council already shows bin days on its website, one address at a time. That works for someone checking this week. It doesn't work for the apps, calendar feeds, smart speakers and accessibility tools that remind people, because they need every address at once.
Without a download, those tools copy the data from the lookup page instead. For one large council that takes around 440,000 requests and 24 GB of traffic each time, and it breaks whenever the website changes. Leeds City Council publishes the same information as open data: one file of every property's collections, about 170 MB, refreshed daily.
The Open Bin API asks every council for that file, in the same format, so one tool can work for everyone. It's the information your bin day lookup already shows, published once.
Host it openly
The “API” is a handful of files at fixed web addresses. There's no server code to write: your open data portal, your website's file storage or a cloud storage bucket will all do.
- Anyone must be able to download the files over HTTPS, without logging in, registering, using an API key or passing a CAPTCHA. If your website has bot protection, exclude the dataset's addresses from it, and from
robots.txt. - Each file's address must stay the same from one version to the next, so the latest data is always in the same place. Don't put dates or version numbers in file names. If you keep old versions, give them addresses of their own.
- The data must be licensed for re-use, ideally under the Open Government Licence v3.0, and the manifest must say which licence.
- The files should be served with
Access-Control-Allow-Origin: *, so web apps can read them directly. - The dataset should be listed on data.gov.uk or your regional open data portal, and linked from your bin day page, so people can find it.
- The files should be made from the same system as your bin day lookup, so the two never disagree.
Where to host it
| Where | What to watch for |
|---|---|
| Your open data portal | Replace the files in the same resource each time, rather than adding a new resource, so their addresses don't change. |
| Your website | Most content management systems can serve files at a fixed path. Check the path isn't behind the site's bot protection. |
| Cloud storage | A public bucket, ideally with your own domain in front of it. Static hosting sends the ETag headers described in Make it one download with no setup. |
What to publish
A dataset is a manifest that describes it, plus three kinds of data: the properties, the services collected from them, and the dates. There are two ways to give the dates. Use whichever your waste system holds: both tell a consumer the same thing.
| Dated collections | Rounds | |
|---|---|---|
| Files | collections.csv | property_rounds.csv and round_dates.csv |
| One row per | Property, service and date | Property and service, then round and date |
| Size | Grows with every home's every collection | Grows with the number of rounds, so stays small |
| Use it when | Your system can export each property's dates | Your system schedules by round, as most do |
Either way, publish properties.csv, services.csv and manifest.json too. The manifest is described in Make it one download.
properties.csv
One row for every property you collect household waste from, including flats on communal bins.
| Column | Needed | What it holds | Example |
|---|---|---|---|
uprn | Must | The property's Unique Property Reference Number, from your address gazetteer, as digits. Use it rather than your waste system's own reference, so the data joins up with everything else. | 999990000001 |
postcode | Should | The postcode, with its space. | ZZ1 1AA |
sub_building | May | A flat or unit. | Flat 2 |
building_name | May | The building's name. | The Old Forge |
building_number | May | The building's number. | 10 |
street | May | The street. | Station Road |
locality | May | The area within the town. | Northfield |
town | May | The town. | Exampleton |
Addresses are optional. Councils' address lists usually come from AddressBase, which has its own licence, so publish them if you can and leave the columns out if you can't. UPRNs and postcodes are enough: anyone can find a UPRN's location in OS Open UPRN.
services.csv
One row for each kind of collection: each bin, box, caddy or bag.
| Column | Needed | What it holds | Example |
|---|---|---|---|
service_id | Must | Your id for the service, used in the other files. Never reuse one for a different service. | food |
name | Must | What residents call it, as on your website. | Food caddy |
stream | Must | What it's for: general, recycling, paper, glass, garden, food, garden_and_food or other. Use paper and glass when they're collected apart from other recycling. | food |
container | Should | wheeled_bin, box, caddy, sack, communal or other. | caddy |
colour | Should | The container's colour, in plain words. | grey |
lid_colour | May | The lid's colour, if it's different. | blue |
subscription | Should | yes if it's only collected for households that sign up or pay, such as garden waste. Otherwise no. | no |
info_url | May | A page saying what goes in it. | https://… |
- FenlandGeneral waste
- PeterboroughRecycling
- HuntingdonshireGarden waste
Say what a bin is for, not just its colour. A green bin is general waste in Fenland, recycling in Peterborough and garden waste in Huntingdonshire. stream says what goes in it, and colour says what it looks like, so publish both.
Give subscription services, like garden waste, dates for every property on the round, and set subscription to yes. Don't publish who has subscribed.
collections.csv, for dated collections
One row per property, per service, per collection.
| Column | Needed | What it holds | Example |
|---|---|---|---|
uprn | Must | The property, from properties.csv. | 999990000001 |
service_id | Must | The service, from services.csv. | general |
date | Must | The day it's collected, after any bank holiday change. | 2026-12-30 |
changed_from | May | If the collection moved from its usual day, the usual date. | 2026-12-29 |
uprn,service_id,date,changed_from
999990000001,food,2026-12-22,
999990000001,recycling,2026-12-22,
999990000001,food,2026-12-30,2026-12-29
999990000001,general,2026-12-30,2026-12-29
property_rounds.csv and round_dates.csv, for rounds
property_rounds.csv gives each property's round for each service, and round_dates.csv every date each round collects. A property's dates are its rounds' dates.
| Column | Needed | What it holds | Example |
|---|---|---|---|
property_rounds.csv | |||
uprn | Must | The property, from properties.csv. | 999990000001 |
service_id | Must | The service, from services.csv. | general |
round_id | Must | Your id for the round, unique across the whole dataset. | TUE-GEN-A |
round_dates.csv | |||
round_id | Must | The round, from property_rounds.csv. | TUE-GEN-A |
date | Must | A day the round collects, after any bank holiday change. | 2026-12-30 |
changed_from | May | If the collection moved from its usual day, the usual date. | 2026-12-29 |
Dates
- Give real dates, not patterns. “Every other Tuesday” leaves every consumer to work out the bank holidays for themselves, and some will get them wrong. Publish each collection's actual date.
- Cover at least the next three months, and preferably the next twelve, so reminders and calendars can show changes in good time.
- Leave out dates when a service pauses, such as garden waste over winter.
Writing the files
- Use UTF-8 CSV, separated by commas, with a header row of the column names above. Lines can end in LF or CRLF.
- Quote any value that contains a comma, double quote or line break, as RFC 4180 describes.
- Write dates as
YYYY-MM-DD. - Put columns in any order, and leave a value empty when you don't know it. You can add columns of your own: consumers ignore ones they don't recognise.
Make it one download
Each file holds every row. There's no paging and no searching by postcode: a consumer makes one request per file and has the whole dataset.
manifest.json
The manifest describes the dataset and lists its files. Its address is the only one a consumer needs, so it's the one to give out.
{
"spec": "open-bin-api/0.1",
"publisher": {
"name": "Example District Council",
"gss_code": "E07999999",
"contact": "opendata@example.gov.uk",
"lookup_url": "https://www.example.gov.uk/bins"
},
"licence": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
"generated_at": "2026-10-12T03:00:00Z",
"update_frequency": "daily",
"coverage": { "from": "2026-10-12", "to": "2027-01-17" },
"files": [
{ "name": "properties", "url": "properties.csv",
"rows": 6, "bytes": 439, "sha256": "144f8de5…" },
{ "name": "services", "url": "services.csv",
"rows": 4, "bytes": 425, "sha256": "4c07aaf5…" },
{ "name": "collections", "url": "collections.csv",
"rows": 184, "bytes": 6042, "sha256": "f1ed1a7f…" }
]
}
| Field | Needed | What it holds |
|---|---|---|
spec | Must | The version of this standard: open-bin-api/0.1. |
publisher.name | Must | The council's name. |
publisher.gss_code | Should | The council's ONS code, such as E08000035 for Leeds. |
publisher.contact | Must | An email address for questions about the data. |
publisher.lookup_url | May | Your bin day page. |
licence | Must | The licence's web address. |
generated_at | Must | When this version was made, as an ISO 8601 time with a time zone. |
update_frequency | Must | daily or weekly: how often you publish a new version. |
coverage | Must | The first (from) and last (to) dates the data covers. |
files | Must | One entry per file: its name without .csv, its url, either absolute or relative to the manifest, and its rows without the header, bytes and sha256, all as downloaded. A gzipped file adds "compression": "gzip". |
Serving the files
- Send
ETagorLast-Modifiedheaders. Most web servers and storage services already do. A consumer checking every night then gets304 Not Modified, and downloads nothing, until the data changes. - Compress large files. Bin data is repetitive, so it compresses well. Gzip the file itself, as
collections.csv.gz, or have the server compress its responses. - Make every download checkable. The manifest's
rows,bytesandsha256let a consumer confirm it has every row before it replaces yesterday's data.
Fetching it
A consumer needs nothing more than curl:
# What's there, and when it was made
curl -sO https://data.example.gov.uk/bins/manifest.json
# Download a file only if it has changed since last time
curl -s --etag-compare collections.etag --etag-save collections.etag \
-O https://data.example.gov.uk/bins/collections.csv
# Check it against the manifest's sha256
sha256sum collections.csv
Keep it up to date
Collection dates change: bank holidays, new rounds, new services. A dataset that isn't kept up to date sends people out with the wrong bin, so the schedule matters as much as the format.
| When | Publish | Needed |
|---|---|---|
| At least once a week | A fresh export, even if nothing has changed | Must |
| Every night | A fresh export | Should |
| Within a working day of a round or date changing | The new dates | Must |
| Before a new service's first collection | Its row in services.csv, and its dates | Must |
| As soon as bank holiday changes are decided | The changed dates, with changed_from | Should |
- Automate it. Schedule an export from your waste management system, and a script to publish it. A file someone uploads by hand stops the week they're on leave.
- Keep the window rolling. Each version covers from the day it's made to at least three months ahead. You can drop dates that have passed.
- Never publish half a dataset. If an export fails or comes out short, leave the last good version in place. A truncated file looks like thousands of homes losing their collections.
- Update
generated_atevery time, even when nothing else has changed. It's how consumers tell a quiet week from a broken export. - Keep ids stable. A property keeps its UPRN, and a service its
service_id, from one version to the next. Consumers store them.
If you use the data, check generated_at each time. When it's more than twice update_frequency old, treat the data as out of date and say so, rather than showing dates that may be wrong.
Checklist
A dataset meets the standard when all of these are true.
Licence, privacy and the law
Licence
The Open Government Licence v3.0 lets anyone copy, publish and adapt the data, commercially or not, as long as they acknowledge the source. It's the licence the government's code of practice recommends for datasets. UPRNs themselves have been free to share under it since July 2020.
What not to publish
The dataset is about properties and bins, not people. Don't include:
- residents' names;
- who subscribes to paid services, such as garden waste;
- assisted collections, which can reveal that someone is disabled or frail;
- missed bin reports or complaints.
Freedom of information
When someone asks a council for a dataset under the Freedom of Information Act, the council must give it in a re-usable form if they ask for one (section 11(1A)). Its publication scheme commits it to publishing that dataset, and updated versions, unless that isn't appropriate (section 19(2A)). Publishing to this standard answers those requests before they're made, and keeps answering them as the data changes.
Example data
Two complete datasets for a fictional council, Example District Council: six properties, four services and three months of dates, including the Christmas changes. They hold the same collections, one as dated collections and one as rounds. The UPRNs and postcodes are made up.
Dated collections
- manifest.json
- properties.csv, 6 rows
- services.csv, 4 rows
- collections.csv, 184 rows
Rounds
- manifest.json
- properties.csv, 6 rows
- services.csv, 4 rows
- property_rounds.csv, 22 rows
- round_dates.csv, 92 rows
This site serves them as the standard asks, with ETags, so you can test a client against them.