WhenIsBins Waste Types API
The Waste Types API from WhenIsBins — 1 operation(s) for waste types.
The Waste Types API from WhenIsBins — 1 operation(s) for waste types.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/whenisbins-com:whenisbins-com-waste-types-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: WhenIsBins — UK bin collection API for apps and AI agents…
version: 1.1.0
description: 'Find upcoming UK household rubbish, recycling, food waste and garden waste
collection dates by postcode and address. Use WhenIsBins for questions such
as "When is my next bin collection?", "Which bin is collected this week?"
or "When is my recycling collected?" Responses contain JSON dates, waste
types, council source links and address/date confidence information.
GET /calendar-url instead returns only a plain-text subscription URL
after GET /addresses postcode search and user selection of a candidate,
for a property with a usable saved schedule.
Start without an account or API key within the free anonymous limits.
WhenIsBins is independent, using councils'' own published information.
Coverage and available dates vary by council and property; up to 92 days
does not promise a full calendar. Some lookups finish immediately and
others require an asynchronous council check.
Discover required input with GET /addresses, resolve ambiguity with the
user, then POST /lookups once with a privately saved request and idempotency
key. HTTP 201 does not mean the lookup is done. Poll that same lookup while
queued, running or partial; done and failed are terminal. Respect Retry-After.
The guide''s agent example waits at most two minutes, then retains the ID
for a later user-requested check without resubmitting.
Present returned dates with their council source and relevant address,
confidence, completeness, provisional and subscription qualifications.
Interpret relative dates in Europe/London. Do not infer bin contents from
colour, collection times, holiday shifts or additional recurring dates.
Missing dates do not mean no collection. The API does not report missed
bins, create reminders, arrange collections, serve commercial waste
enquiries or prove household garden-waste subscription.
council.missed_bin_url, when not null, is the council''s own page for reporting
a missed collection, which may help if you are assisting someone whose bin
was not emptied; missed_bin_checked_at is when that link was last verified,
not a live check. The council''s page sets its own reporting rules.
https://whenisbins.com/v1/guide#missed-bin-reporting-links
AI clients that support remote MCP servers can use
`https://whenisbins.com/mcp` instead (Streamable HTTP, no sign-in). Its
four tools call this same API and are described in the guide; they are not
listed under `paths`.
This document is also served live at `GET /v1/openapi.yaml`, and
rendered as browsable reference documentation at `GET /v1/docs`.
`GET /v1/guide` is the same contract explained in prose. Those three
documentation routes are not listed under `paths` below, which
describes the data API only.
Principles baked into this contract:
- Dates, not patterns: concrete ISO 8601 dates from today through 92 days ahead.
- Honesty labels on every answer (`address_match`,
`date_confidence`, `colour_source`, `dates_complete`).
- Addresses never appear in URLs; `property_id` is opaque but is not
authentication. Exact matched addresses appear only in private,
no-store Lookup responses. Stable Schedule responses are address-free.
- Occasional queries are free without a token. Free operator-issued bearer
tokens give regular use an allowance of its own, not shared with others on
the same network; email hello@whenisbins.com.
New work is limited to 1000/hour and 5000/rolling 24 hours per network
source for anonymous and tokenless MCP callers, and the same per token for
token holders, including a token the operator has raised to the elevated allowance.
Cache hits and joined jobs consume request allowance, not new-work quota.
Refreshes consume new work. Reads, address discovery and polling have
separate budgets described in /v1/guide. Global capacity/spend gates apply
to everyone. 429 and 503 include Retry-After. Invalid supplied tokens
receive 401. The operator may temporarily require tokens during rollback.'
contact:
name: WhenIsBins
url: https://whenisbins.com
termsOfService: https://whenisbins.com/termsandconditions
servers:
- url: https://whenisbins.com/v1
description: 'Production. This is the only host that serves the API; there is no
separate api. subdomain, and no staging or sandbox environment.
'
security:
- {}
- bearerAuth: []
tags:
- name: Waste Types
paths:
/waste-types:
get:
operationId: listWasteTypes
summary: The fixed waste_type vocabulary
parameters:
- $ref: '#/components/parameters/IfNoneMatch'
responses:
'200':
description: All waste types with display names.
headers:
Cache-Control:
description: '`public` for an anonymous request; `private` when a bearer token was supplied, so a token holder''s responses never enter a shared cache.'
schema:
type: string
example: public, max-age=86400
content:
application/json:
schema:
type: object
required:
- waste_types
properties:
waste_types:
type: array
items:
$ref: '#/components/schemas/WasteType'
'304':
$ref: '#/components/responses/NotModified'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
tags:
- Waste Types
components:
schemas:
WasteType:
type: object
required:
- id
- display_name
properties:
id:
type: string
enum:
- refuse
- recycling
- garden
- food
- glass
- textiles
- electricals
- paper_card
- plastics_cans
- other
display_name:
type: string
example: General waste
Problem:
type: object
description: Honest failure, first-class (dictionary 2d). `detail` is citizen-actionable and never leaks internals.
required:
- problem
- detail
properties:
limit_scope:
type: string
enum:
- network
- requests
- new_work
- address_discovery
- calendar_url
token_request_url:
type: string
format: uri
example: mailto:hello@whenisbins.com?subject=Free%20API%20token
problem:
type: string
description: Machine-readable reason code.
enum:
- invalid_postcode
- postcode_outside_coverage
- council_not_supported
- ambiguous_address
- address_not_found
- property_identifier_required
- council_site_unavailable
- council_site_maintenance
- property_dates_unavailable
- lookup_not_found
- no_schedule
- unauthorized
- rate_limited
- idempotency_conflict
- invalid_request
- method_not_allowed
- not_found
- server_error
- service_unavailable
detail:
type: string
example: We found several possible matches for "Flat 2" at that postcode — please pick your address from the list.
next_step:
type: string
description: 'Present on every `404 no_schedule`: what to do now, in one
sentence. Creating a lookup needs `POST /lookups`; a client that
cannot POST can use the website.
'
create_lookup:
type: string
format: uri
description: Present on `404 no_schedule`; the lookup endpoint to POST to.
example: https://whenisbins.com/v1/lookups
website:
type: string
format: uri
description: Present on `404 no_schedule`; the website, for a client that cannot POST.
example: https://whenisbins.com/
council:
allOf:
- $ref: '#/components/schemas/CouncilRef'
description: 'Present on GET /addresses and POST /lookups refusals once the
postcode has resolved to a council, so a client can send the
citizen to the council''s own checker (`lookup_url`) when we
cannot answer. This includes a refusal discovered during the
synchronous lookup. Show that link immediately after the explanation,
before retry advice or feedback. For declared unsupported councils,
an absent or unusable intel URL falls back to the reviewed public
bin-service URL in the declaration.
'
council_note:
type: string
description: 'Optional plain-text note carried by some `council_not_supported`
refusals — a word about what the citizen will find on the
council''s own page. Render it after the council link, never
between the citizen and that link.
'
postcode_representative:
type: string
description: 'Whether a labelled same-postcode neighbour''s schedule may answer
when the exact property is not listed. `opt_in` = only after the
citizen explicitly consents, by sending
`allow_postcode_representative`; `automatic` = this council is
measured homogeneous, so the labelled answer is served without
asking; `unavailable` = measured high-harm, and every tier
refuses the neighbour answer. Present only at property
granularity, where the neighbour concept applies.
'
enum:
- automatic
- opt_in
- unavailable
CouncilRef:
type: object
required:
- id
- name
properties:
id:
type: string
description: GSS code — the canonical, rename-proof council identity.
example: E07000008
name:
type: string
example: Cambridge City Council
lookup_url:
type: string
format: uri
description: 'The council''s own bin-day checker page, when known (https only).
The honest fallback for the citizen on every wait and failure —
the same page a served Schedule reports as `source_url`.
'
example: https://www.cambridge.gov.uk/check-when-your-bin-will-be-emptied
missed_bin_url:
type:
- string
- 'null'
format: uri
description: 'Council-specific HTTPS operational missed-collection reporting page,
from the approved verified reporting registry. Null when unavailable;
never substituted with the checker, broader problem or formal complaint
route. Returned on council discovery, lookup and schedule council objects.
The council''s page sets its own reporting rules. WhenIsBins reads
collection dates only: it does not set reminders or report missed bins.
'
missed_bin_checked_at:
type:
- string
- 'null'
format: date
description: 'Registry verification date (YYYY-MM-DD) for the published reporting
route, not the schedule retrieval time or a live availability check.
Null when missed_bin_url is null. Approved links remain published until
reviewed and withdrawn or updated, even when their review date has passed.
'
responses:
ServiceUnavailable:
description: 'Required service configuration, a dependency, or shared lookup
admission is temporarily unavailable (`service_unavailable`).
'
headers:
Retry-After:
description: Present when the service can suggest a retry delay.
schema:
type: integer
example: 60
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
MethodNotAllowed:
description: 'The path exists but not with this method. Every resource below
answers exactly one method; the `Allow` header names it.
'
headers:
Allow:
$ref: '#/components/headers/Allow'
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
NotModified:
description: 'A 304 means stored content is unchanged, not that the council re-
verified the date.
The content matches the `If-None-Match` ETag. No body.
'
Unauthorized:
description: Supplied bearer token is malformed, unknown or revoked, or a token is missing during a token-only hold (`unauthorized`).
headers:
WWW-Authenticate:
schema:
type: string
example: Bearer realm="WhenIsBins API"
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
RateLimited:
description: Request, provider or new-work allowance exceeded; optional limit_scope and token_request_url explain the limit.
headers:
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
ServerError:
description: 'An unexpected fault on our side (`server_error`). Nothing is
implied about whether the work started; retry with the same
`Idempotency-Key` where one applies.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
headers:
Allow:
description: The methods this resource accepts.
schema:
type: string
example: GET
RetryAfter:
description: Seconds to wait before retrying.
schema:
type: integer
example: 60
parameters:
IfNoneMatch:
name: If-None-Match
in: header
required: false
schema:
type: string
example: '"a1b2c3"'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Free opaque token issued by the service operator. Request one by
emailing hello@whenisbins.com. Send it only in the Authorization
header, store it like a password, and do not embed it in public browser
JavaScript. Tokens are individually revocable and use their own
allowance, while outer network and global capacity limits still apply.
'