WhenIsBins Addresses API

The Addresses API from WhenIsBins — 1 operation(s) for addresses.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /addresses Discover the collecting council and required address input for a UK postcode #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/whenisbins-com:whenisbins-com-addresses-api"
All apis
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.

Get an API 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 Specification

whenisbins-com-addresses-api-openapi.yml Raw ↑
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: Addresses
paths:
  /addresses:
    get:
      operationId: listAddresses
      summary: Discover the collecting council and required address input for a UK postcode
      description: 'Start here when the user wants their household bin collection dates.

        Follow required_input and input_options; ask the user to resolve missing

        information or ambiguous choices before submitting a lookup. Discovery

        does not select a property on the user''s behalf.

        Postcode-only by design: a bare postcode is street-level public

        data, which keeps this endpoint CDN-cacheable. Returns the

        collecting council and the property list as the council''s own

        checker words it, when we hold it.'
      parameters:
      - name: postcode
        in: query
        required: true
        schema:
          type: string
          example: CB4 2HX
      - name: q
        in: query
        required: false
        description: 'Road, street or area name the citizen has typed so far, used ONLY

          to narrow `input_options` for councils that collect by road or

          area. It is discovery, never selection: the response returns rows

          to choose from and never picks one. Ignored by councils that

          resolve per property. Not a property identifier and never an

          address: a bare road name is the same street-level public data as

          the postcode this endpoint already takes.

          '
        schema:
          type: string
          maxLength: 200
          example: Lanark Road
      - $ref: '#/components/parameters/IfNoneMatch'
      responses:
        '200':
          description: Council resolved; currently serviceable candidate list.
          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=60, stale-while-revalidate=60
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CandidateList'
        '304':
          $ref: '#/components/responses/NotModified'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          description: Postcode is valid but outside coverage (not a UK collecting council we know).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: 'Council resolved but explicitly unsupported

            (`council_not_supported`) — refused at the postcode step so no

            address screen is shown for a lookup that could only fail. Same

            body as the POST /lookups refusal: the council (with its own

            page when known) and, optionally, `council_note`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          $ref: '#/components/responses/RateLimited'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Addresses
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'
    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'
    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.

        '
    BadRequest:
      description: Malformed input (e.g. `invalid_postcode`).
      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'
    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'
  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
    SourceNotice:
      type: object
      required:
      - problem
      - detail
      description: 'What the service already knows about the council''s own checker, said

        at the postcode step rather than after an address has been chosen.

        For `council_site_maintenance` and `council_not_supported`, POST

        /lookups refuses a FRESH lookup with the same `problem` while the

        notice stands; a schedule already held is still served, which is why

        this is a notice on a 200 and not a refusal. `council_site_unavailable`

        refuses nothing: the council''s route is currently failing (held broken

        or quarantined, or a measured success rate under 0.7 with no healthy

        route), so a lookup may be slow and may fail. Show `detail` on the

        address screen and let the citizen carry on.

        '
      properties:
        problem:
          type: string
          description: The problem a fresh lookup would be refused with, or is currently likely to end with.
          enum:
          - council_site_maintenance
          - council_not_supported
          - council_site_unavailable
        detail:
          type: string
          example: Your council's bin-day checker is down for maintenance right now. It's the council's own scheduled work, so we can't read your dates until it's back - usually a few hours.
    UnavailableCandidate:
      type: object
      required:
      - id
      - label
      - reason
      description: 'A property the council''s checker LISTS but for which it returned no

        collection record on a recent lookup. It is named so a client can tell

        its owner the truth instead of leaving them to conclude the address is

        missing. It is NOT pickable: sending its `id` as `property_id`, or

        typing its address, answers `property_dates_unavailable` at once. The

        marker expires after about a week, so a record the council repairs is

        retried; the expiry itself is never served.

        '
      properties:
        id:
          type: string
          example: p:9b1d07a3c4e5f601
        label:
          type: string
          description: The property exactly as the council's checker words it.
          example: The Pavilion, Recreation Ground, Arbury Road, Cambridge, CB4 2HX
        reason:
          type: string
          enum:
          - no_service_record
    InputOptions:
      type: object
      description: 'The council''s OWN collection units for the field it asks for, when

        that council resolves bin days by road or area rather than per

        property. It exists so the citizen picks the council''s wording

        instead of guessing it; a picked row is still matched by the same

        strict address rules as typed text, and ambiguity is still a refusal.

        Absent whenever no picker can be offered - which includes councils

        answered from the postcode alone, any moment the list cannot be read,

        and a `q` that matches nothing. Absent means the ordinary free-text

        journey. One exception: where a council''s whole road list is held

        (City of Edinburgh, Nuneaton and Bedworth, and Ipswich), a `q` matching

        nothing is still an answer - `total` is 0 and `options` is empty -

        and for Edinburgh `not_listed_help` says where a road that is not

        listed may be served instead.

        '
      required:
      - field
      - shape
      - options
      properties:
        field:
          type: string
          description: Which POST /lookups field the chosen `value` fills.
          enum:
          - street
          - locality
        shape:
          type: string
          description: 'How the list behaves. `short_list` = a council search returns a

            handful of records. `type_to_narrow` = the whole list exists at

            once and must be filtered before it is rendered.

            `area_contents` = the row is an area, made recognisable by what

            the council lists inside it.

            '
          enum:
          - short_list
          - type_to_narrow
          - area_contents
        extra_fields:
          type: array
          description: 'Other fields this council''s input contract still needs beside the

            chosen row (for example a house number where the council keys a

            street but reports per building).

            '
          items:
            type: string
            enum:
            - property
            - locality
        query:
          type: string
          description: Echo of the `q` that produced these rows.
        total:
          type: integer
          description: How many of the council's records matched `q`, before the row cap.
        row_limit:
          type: integer
          description: The most rows this endpoint will ever return.
          example: 12
        needs_more_query:
          type: boolean
          description: '`true` when more records matched than may be rendered. `options`

            is then empty on purpose: ask for more of the name rather than

            showing a list nobody can read.

            '
        not_listed_value:
          type: string
          description: 'Sentinel `value` for the picker''s final row ("none of these").

            Submitting it means the citizen wants ordinary address entry; it

            is never sent to a council.

            '
          example: __not_listed__
        options:
          type: array
          items:
            $ref: '#/components/schemas/InputOption'
        not_listed_help:
          type: object
          description: 'The council-specific line for a citizen whose road or area is not

            in the list, with the council''s own page to follow. Present only

            for councils that have one (City of Edinburgh: homes on communal

            bins are not in its road list).

            '
          required:
          - text
          - link_text
          - url
          properties:
            text:
              type: string
              example: Road not in the list? Your home may use communal bins.
            link_text:
              type: string
              example: See the council's communal bins service
            url:
              type: string
              format: uri
              example: https://www.edinburgh.gov.uk/recycling-3/communal-bins-service
    CandidateList:
      type: object
      required:
      - postcode
      - council
      - required_input
      - candidates_source
      - candidates
      properties:
        postcode:
          type: string
          description: Normalised form.
          example: CB4 2HX
        council:
          $ref: '#/components/schemas/CouncilWithWait'
        required_input:
          type: string
          description: 'The next field this council''s checker needs after the postcode.

            `none` means exactly that: this council''s own checker resolves the

            collection from the postcode alone - it names the settlement or

            round itself - so nothing further should be asked, and POST

            /lookups accepts the postcode by itself. A `property` may still be

            sent and is still matched strictly; it is simply not required.

            Read this value for each lookup rather than keeping a council''s

            former input contract: South Lanarkshire now requires a property

            (or a listed property_id), following its property-checker redesign.

            '
          enum:
          - none
          - property_id
          - property
          - street
          - road_and_locality
          - street_and_property
          - settlement
          - settlement_or_road
          - normal_weekday
          - normal_weekday_and_locality
          - property_type
        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
        candidates_source:
          type: string
          description: '`council` = the list came from the council''s own checker.

            `unavailable` = no list is currently held; POST free-text

            `property` instead. Commercial address data is never republished

            through this field.

            '
          enum:
          - council
          - unavailable
        candidates:
          type: array
          description: 'The council''s own list. Normally at most 14 days old; when nothing

            fresher can be had (no live fetch, or it produced no list) a copy

            up to 45 days old is returned rather than nothing.

            '
          items:
            $ref: '#/components/schemas/Candidate'
        unavailable_candidates:
          type: array
          description: Present only when the list holds any. Never pickable.
          items:
            $ref: '#/components/schemas/UnavailableCandidate'
        source_notice:
          $ref: '#/components/schemas/SourceNotice'
        input_options:
          $ref: '#/components/schemas/InputOptions'
    InputOption:
      type: object
      required:
      - value
      - label
      properties:
        value:
          type: string
          description: 'The council''s own text, submitted back verbatim in the request

            field named by `input_options.field`. Not an opaque id: this is

            the key the council''s own checker uses.

            '
          example: A70--Glenbrook Rd To B7031
        label:
          type: string
          description: The unit as the council words it - the row's title.
          example: A70--Glenbrook Rd To B7031
        detail:
          type: string
          description: 'The council''s own supporting text for this row, when it has one:

            an area''s list of the roads and villages inside it, or a record''s

            number range. Present only for shapes where the label alone is

            not recognisable.

            '
          example: Houton, Aglath Road, Breck Road and 5 more
        hint:
          type: string
          description: 'OUR plain-language explanation of the row, emitted only where the

            run can evidence it (a classified-road segment proven to be this

            postcode''s road). Never a guess and never council text.

            '
          example: The stretch of Lanark Road West at your postcode
    CouncilWithWait:
      allOf:
      - $ref: '#/components/schemas/CouncilRef'
      - type: object
        required:
        - expected_wait_seconds
        - success_rate
        properties:
          expected_wait_seconds:
            type:
            - integer
            - 'null'
            minimum: 0
            description: 'Route-aware recent cold-visit p90, rounded up to seconds.

              When at least half of observations succeed through a fast

              deterministic route, this is that route''s p90; after a fast

              miss it is promoted to at least 120 for the browser handoff.

              Poor success below 0.7 also selects the handoff. Null until

              five timed cold observations exist in the rolling 84-day window.

              While the route maintainer''s control plane holds the council''s

              active deterministic route healthy, the deterministic-stage

              estimate is instead the p90 of recent cold successes on the

              fast routes alone (null below five such successes), whatever

              the blended history or success rate says.

              A lookup parked for the residential worker after a council

              bot-blocked the web host is estimated from that worker''s own

              deterministic stage timing (pickup plus execution, p90) from

              its first recent sample; with none it shows the handoff.

              '
          success_rate:
            type:
            - number
            - 'null'
            format: double
            minimum: 0
            maximum: 1
            description: 'Share of recent cold observations whose outcome is `success`.

              Null until five cold observations exist in the rolling

              84-day window. Cache hits are never included.

              '
    Candidate:
      type: object
      required:
      - id
      - label
      properties:
        id:
          type: string
          description: Opaque service token — echo back as `property_id`; never parse it or assume it is a council UPRN.
          example: p:4c5ee6c2f2c7c959
        label:
          type: string
          description: The property exactly as the council's checker words it.
          example: Flat 15, Twickenham Court, Arbury Road, Cambridge, CB4 2HX
    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
  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.

        '