Open Bin API

Draft 0.1, October 2026

Open Bin API

A standard for councils to publish every household's bin collection days as open data, so apps, calendars and accessibility tools can remind people when their bins go out.

It covers where to host the data, what it should contain, how to make it one download, and how to keep it up to date.

collections.csv

  1. uprn,service_id,date,changed_from
  2. 999990000001,food,2026-11-03,
  3. 999990000001,general,2026-11-03,
  4. 999990000001,garden,2026-11-04,
  5. 999990000001,food,2026-11-10,
  6. 999990000001,recycling,2026-11-10,
  7. 999990000001,food,2026-11-17,
  8. 999990000001,general,2026-11-17,
  9. 999990000001,garden,2026-11-18,
  10. 999990000001,food,2026-11-24,
  11. 999990000001,recycling,2026-11-24,
1 Mill Lane, November 2026
MTW TFS S
1
2 3: food caddy and black bin 4: green bin 5678
9 10: food caddy and blue bin 1112131415
16 17: food caddy and black bin 18: green bin 19202122
23 24: food caddy and blue bin 2526272829
30
Each row of collections.csv is one bin collected from one property on one day. A property's rows are its bin calendar.
Open
Anyone can download it, with no login, key or bot check, under the Open Government Licence.
Complete
Every property and every bin, with real dates for at least the next three months.
One download
A few CSV files at fixed web addresses, listed in a manifest.
Kept current
Regenerated automatically, at least weekly, and whenever rounds change.

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

WhereWhat to watch for
Your open data portalReplace the files in the same resource each time, rather than adding a new resource, so their addresses don't change.
Your websiteMost content management systems can serve files at a fixed path. Check the path isn't behind the site's bot protection.
Cloud storageA 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 collectionsRounds
Filescollections.csvproperty_rounds.csv and round_dates.csv
One row perProperty, service and dateProperty and service, then round and date
SizeGrows with every home's every collectionGrows with the number of rounds, so stays small
Use it whenYour system can export each property's datesYour 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.

ColumnNeededWhat it holdsExample
uprnMustThe 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
postcodeShouldThe postcode, with its space.ZZ1 1AA
sub_buildingMayA flat or unit.Flat 2
building_nameMayThe building's name.The Old Forge
building_numberMayThe building's number.10
streetMayThe street.Station Road
localityMayThe area within the town.Northfield
townMayThe 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.

ColumnNeededWhat it holdsExample
service_idMustYour id for the service, used in the other files. Never reuse one for a different service.food
nameMustWhat residents call it, as on your website.Food caddy
streamMustWhat 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
containerShouldwheeled_bin, box, caddy, sack, communal or other.caddy
colourShouldThe container's colour, in plain words.grey
lid_colourMayThe lid's colour, if it's different.blue
subscriptionShouldyes if it's only collected for households that sign up or pay, such as garden waste. Otherwise no.no
info_urlMayA 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.

ColumnNeededWhat it holdsExample
uprnMustThe property, from properties.csv.999990000001
service_idMustThe service, from services.csv.general
dateMustThe day it's collected, after any bank holiday change.2026-12-30
changed_fromMayIf the collection moved from its usual day, the usual date.2026-12-29
After the 28 December bank holiday, Tuesday's collections move to Wednesday.
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.

ColumnNeededWhat it holdsExample
property_rounds.csv
uprnMustThe property, from properties.csv.999990000001
service_idMustThe service, from services.csv.general
round_idMustYour id for the round, unique across the whole dataset.TUE-GEN-A
round_dates.csv
round_idMustThe round, from property_rounds.csv.TUE-GEN-A
dateMustA day the round collects, after any bank holiday change.2026-12-30
changed_fromMayIf 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.

The manifest for the example dataset.
{
  "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…" }
  ]
}
FieldNeededWhat it holds
specMustThe version of this standard: open-bin-api/0.1.
publisher.nameMustThe council's name.
publisher.gss_codeShouldThe council's ONS code, such as E08000035 for Leeds.
publisher.contactMustAn email address for questions about the data.
publisher.lookup_urlMayYour bin day page.
licenceMustThe licence's web address.
generated_atMustWhen this version was made, as an ISO 8601 time with a time zone.
update_frequencyMustdaily or weekly: how often you publish a new version.
coverageMustThe first (from) and last (to) dates the data covers.
filesMustOne 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 ETag or Last-Modified headers. Most web servers and storage services already do. A consumer checking every night then gets 304 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, bytes and sha256 let a consumer confirm it has every row before it replaces yesterday's data.

Fetching it

A consumer needs nothing more than curl:

Run it against the example dataset by swapping in its address.
# 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.

WhenPublishNeeded
At least once a weekA fresh export, even if nothing has changedMust
Every nightA fresh exportShould
Within a working day of a round or date changingThe new datesMust
Before a new service's first collectionIts row in services.csv, and its datesMust
As soon as bank holiday changes are decidedThe changed dates, with changed_fromShould
  • 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_at every 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

Rounds

This site serves them as the standard asks, with ETags, so you can test a client against them.