WhenIsBins · Schema

CandidateList

CompanyBin CollectionUnited KingdomWaste

Properties

Name Type Description
postcode string Normalised form.
council object
required_input string 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
postcode_representative string 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
candidates_source string `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.
candidates array 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.
unavailable_candidates array Present only when the list holds any. Never pickable.
source_notice object
input_options object
View JSON Schema on GitHub

JSON Schema

whenisbins-com-candidate-list-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whenisbins-com/json-schema/whenisbins-com-candidate-list-schema.json",
  "title": "CandidateList",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whenisbins-com-openapi.yaml#/components/schemas/CandidateList",
  "type": "object",
  "required": [
    "postcode",
    "council",
    "required_input",
    "candidates_source",
    "candidates"
  ],
  "properties": {
    "postcode": {
      "type": "string",
      "description": "Normalised form."
    },
    "council": {
      "$ref": "#/$defs/CouncilWithWait"
    },
    "required_input": {
      "type": "string",
      "description": "The next field this council's checker needs after the postcode.\n`none` means exactly that: this council's own checker resolves the\ncollection from the postcode alone - it names the settlement or\nround itself - so nothing further should be asked, and POST\n/lookups accepts the postcode by itself. A `property` may still be\nsent and is still matched strictly; it is simply not required.\nRead this value for each lookup rather than keeping a council's\nformer input contract: South Lanarkshire now requires a property\n(or a listed property_id), following its property-checker redesign.\n",
      "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\nwhen the exact property is not listed. `opt_in` = only after the\ncitizen explicitly consents, by sending\n`allow_postcode_representative`; `automatic` = this council is\nmeasured homogeneous, so the labelled answer is served without\nasking; `unavailable` = measured high-harm, and every tier\nrefuses the neighbour answer. Present only at property\ngranularity, where the neighbour concept applies.\n",
      "enum": [
        "automatic",
        "opt_in",
        "unavailable"
      ]
    },
    "candidates_source": {
      "type": "string",
      "description": "`council` = the list came from the council's own checker.\n`unavailable` = no list is currently held; POST free-text\n`property` instead. Commercial address data is never republished\nthrough this field.\n",
      "enum": [
        "council",
        "unavailable"
      ]
    },
    "candidates": {
      "type": "array",
      "description": "The council's own list. Normally at most 14 days old; when nothing\nfresher can be had (no live fetch, or it produced no list) a copy\nup to 45 days old is returned rather than nothing.\n",
      "items": {
        "$ref": "#/$defs/Candidate"
      }
    },
    "unavailable_candidates": {
      "type": "array",
      "description": "Present only when the list holds any. Never pickable.",
      "items": {
        "$ref": "#/$defs/UnavailableCandidate"
      }
    },
    "source_notice": {
      "$ref": "#/$defs/SourceNotice"
    },
    "input_options": {
      "$ref": "#/$defs/InputOptions"
    }
  },
  "$defs": {
    "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."
        },
        "label": {
          "type": "string",
          "description": "The property exactly as the council's checker words it."
        }
      }
    },
    "CouncilRef": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "GSS code — the canonical, rename-proof council identity."
        },
        "name": {
          "type": "string"
        },
        "lookup_url": {
          "type": "string",
          "format": "uri",
          "description": "The council's own bin-day checker page, when known (https only).\nThe honest fallback for the citizen on every wait and failure —\nthe same page a served Schedule reports as `source_url`.\n"
        },
        "missed_bin_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Council-specific HTTPS operational missed-collection reporting page,\nfrom the approved verified reporting registry. Null when unavailable;\nnever substituted with the checker, broader problem or formal complaint\nroute. Returned on council discovery, lookup and schedule council objects.\nThe council's page sets its own reporting rules. WhenIsBins reads\ncollection dates only: it does not set reminders or report missed bins.\n"
        },
        "missed_bin_checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "Registry verification date (YYYY-MM-DD) for the published reporting\nroute, not the schedule retrieval time or a live availability check.\nNull when missed_bin_url is null. Approved links remain published until\nreviewed and withdrawn or updated, even when their review date has passed.\n"
        }
      }
    },
    "CouncilWithWait": {
      "allOf": [
        {
          "$ref": "#/$defs/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.\nWhen at least half of observations succeed through a fast\ndeterministic route, this is that route's p90; after a fast\nmiss it is promoted to at least 120 for the browser handoff.\nPoor success below 0.7 also selects the handoff. Null until\nfive timed cold observations exist in the rolling 84-day window.\nWhile the route maintainer's control plane holds the council's\nactive deterministic route healthy, the deterministic-stage\nestimate is instead the p90 of recent cold successes on the\nfast routes alone (null below five such successes), whatever\nthe blended history or success rate says.\nA lookup parked for the residential worker after a council\nbot-blocked the web host is estimated from that worker's own\ndeterministic stage timing (pickup plus execution, p90) from\nits first recent sample; with none it shows the handoff.\n"
            },
            "success_rate": {
              "type": [
                "number",
                "null"
              ],
              "format": "double",
              "minimum": 0,
              "maximum": 1,
              "description": "Share of recent cold observations whose outcome is `success`.\nNull until five cold observations exist in the rolling\n84-day window. Cache hits are never included.\n"
            }
          }
        }
      ]
    },
    "InputOption": {
      "type": "object",
      "required": [
        "value",
        "label"
      ],
      "properties": {
        "value": {
          "type": "string",
          "description": "The council's own text, submitted back verbatim in the request\nfield named by `input_options.field`. Not an opaque id: this is\nthe key the council's own checker uses.\n"
        },
        "label": {
          "type": "string",
          "description": "The unit as the council words it - the row's title."
        },
        "detail": {
          "type": "string",
          "description": "The council's own supporting text for this row, when it has one:\nan area's list of the roads and villages inside it, or a record's\nnumber range. Present only for shapes where the label alone is\nnot recognisable.\n"
        },
        "hint": {
          "type": "string",
          "description": "OUR plain-language explanation of the row, emitted only where the\nrun can evidence it (a classified-road segment proven to be this\npostcode's road). Never a guess and never council text.\n"
        }
      }
    },
    "InputOptions": {
      "type": "object",
      "description": "The council's OWN collection units for the field it asks for, when\nthat council resolves bin days by road or area rather than per\nproperty. It exists so the citizen picks the council's wording\ninstead of guessing it; a picked row is still matched by the same\nstrict address rules as typed text, and ambiguity is still a refusal.\nAbsent whenever no picker can be offered - which includes councils\nanswered from the postcode alone, any moment the list cannot be read,\nand a `q` that matches nothing. Absent means the ordinary free-text\njourney. One exception: where a council's whole road list is held\n(City of Edinburgh, Nuneaton and Bedworth, and Ipswich), a `q` matching\nnothing is still an answer - `total` is 0 and `options` is empty -\nand for Edinburgh `not_listed_help` says where a road that is not\nlisted may be served instead.\n",
      "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\nhandful of records. `type_to_narrow` = the whole list exists at\nonce and must be filtered before it is rendered.\n`area_contents` = the row is an area, made recognisable by what\nthe council lists inside it.\n",
          "enum": [
            "short_list",
            "type_to_narrow",
            "area_contents"
          ]
        },
        "extra_fields": {
          "type": "array",
          "description": "Other fields this council's input contract still needs beside the\nchosen row (for example a house number where the council keys a\nstreet but reports per building).\n",
          "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."
        },
        "needs_more_query": {
          "type": "boolean",
          "description": "`true` when more records matched than may be rendered. `options`\nis then empty on purpose: ask for more of the name rather than\nshowing a list nobody can read.\n"
        },
        "not_listed_value": {
          "type": "string",
          "description": "Sentinel `value` for the picker's final row (\"none of these\").\nSubmitting it means the citizen wants ordinary address entry; it\nis never sent to a council.\n"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputOption"
          }
        },
        "not_listed_help": {
          "type": "object",
          "description": "The council-specific line for a citizen whose road or area is not\nin the list, with the council's own page to follow. Present only\nfor councils that have one (City of Edinburgh: homes on communal\nbins are not in its road list).\n",
          "required": [
            "text",
            "link_text",
            "url"
          ],
          "properties": {
            "text": {
              "type": "string"
            },
            "link_text": {
              "type": "string"
            },
            "url": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      }
    },
    "SourceNotice": {
      "type": "object",
      "required": [
        "problem",
        "detail"
      ],
      "description": "What the service already knows about the council's own checker, said\nat the postcode step rather than after an address has been chosen.\nFor `council_site_maintenance` and `council_not_supported`, POST\n/lookups refuses a FRESH lookup with the same `problem` while the\nnotice stands; a schedule already held is still served, which is why\nthis is a notice on a 200 and not a refusal. `council_site_unavailable`\nrefuses nothing: the council's route is currently failing (held broken\nor quarantined, or a measured success rate under 0.7 with no healthy\nroute), so a lookup may be slow and may fail. Show `detail` on the\naddress screen and let the citizen carry on.\n",
      "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"
        }
      }
    },
    "UnavailableCandidate": {
      "type": "object",
      "required": [
        "id",
        "label",
        "reason"
      ],
      "description": "A property the council's checker LISTS but for which it returned no\ncollection record on a recent lookup. It is named so a client can tell\nits owner the truth instead of leaving them to conclude the address is\nmissing. It is NOT pickable: sending its `id` as `property_id`, or\ntyping its address, answers `property_dates_unavailable` at once. The\nmarker expires after about a week, so a record the council repairs is\nretried; the expiry itself is never served.\n",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string",
          "description": "The property exactly as the council's checker words it."
        },
        "reason": {
          "type": "string",
          "enum": [
            "no_service_record"
          ]
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/whenisbins-com-candidate-list"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.