WhenIsBins Calendar Url API
The Calendar Url API from WhenIsBins — 1 operation(s) for calendar url.
The Calendar Url API from WhenIsBins — 1 operation(s) for calendar url.
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-calendar-url-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: Calendar Url
paths:
/calendar-url:
get:
operationId: getCalendarUrl
summary: Only the subscription URL for an address selected after postcode search
description: 'First call GET /addresses with a postcode, let the user choose from
candidates, then send the selected candidate''s id as property_id here.
No intervening POST /lookups or schedule download is needed. The
selected address must already have a usable saved schedule. If the
postcode response cannot offer property_id choices, follow the ordinary
lookup flow for the council''s required input instead.
A read-only lookup of an existing public calendar. Supply exactly one
identifier form: uprn, property_id, or gss plus council_id. No other
query parameters, repeated parameters or written addresses are accepted.
The identity must resolve uniquely, and its saved schedule must pass
the existing date and cache-usability gates. Provisional, undated and
postcode-representative results cannot supply a link here.
This operation never discovers addresses, contacts a council, creates
a lookup or queues a refresh, even for stale or missing schedules.
Public feeds must be enabled. The URL is the one a Schedule''s
calendar_url names for the same property: a verified UPRN, either the
property''s own or the one verified UPRN its UPRN-shaped council
identifier maps to under the same GSS; otherwise the council''s
property identifier. A URL that would not resolve uniquely is refused.
The separate allowance is 100 requests per rolling 24 hours per
anonymous network (IPv4 address or IPv6 /64), or per bearer token.
Successful and unsuccessful reads, including HEAD, consume it;
ordinary read allowance is not consumed. The preceding GET /addresses
uses the standard address-discovery allowance. Outer traffic protections
still apply. Like other request quotas this is process-local and
resets on restart; the boundary minute is conservatively retained.
Responses use no-store. Save a successful URL for subscription;
calendar fetches have their own existing behaviour and read limits.'
parameters:
- name: uprn
in: query
description: Verified UPRN in canonical digits, without zero padding. Use alone.
schema:
type: string
pattern: ^[1-9][0-9]{0,11}$
- name: property_id
in: query
description: The user-selected candidates[].id from GET /addresses, a saved property ID, or its URL token. Use alone.
schema:
type: string
maxLength: 64
- name: gss
in: query
description: Council GSS code. Supply together with council_id.
schema:
type: string
pattern: ^[ENSW][0-9]{8}$
- name: council_id
in: query
description: Canonical council property identifier. Supply together with gss.
schema:
type: string
pattern: ^[A-Za-z0-9][A-Za-z0-9._~-]{0,63}$
responses:
'200':
description: Only the absolute subscription URL, as plain text, without a JSON wrapper.
headers:
Cache-Control:
schema:
type: string
enum:
- no-store
content:
text/plain:
schema:
type: string
format: uri
example: https://whenisbins.com/100023336956.ics
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: No usable public calendar, unknown or ambiguous identity, or public feeds disabled (`no_schedule`). No work is started.
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
tags:
- Calendar Url
components:
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'
BadRequest:
description: Malformed input (e.g. `invalid_postcode`).
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'
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'
schemas:
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.
'
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
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.
'