{"openapi":"3.1.0","info":{"title":"Tyche Labs UK Data APIs","version":"1.0.0","description":"Tyche Labs UK data APIs on one key. Vehicle: DVLA vehicle enquiry and DVSA MOT history in one call. Business and compliance: company checks with EORI, sanctions screening against the UK, OFAC and EU lists, and company monitoring. Location: postcode area codes, flood risk, crime and schools, and UK fuel prices. Free key at https://api.tychelabs.net/signup. Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by any of the government bodies whose data we use.","contact":{"name":"Tyche Labs","email":"info@tychelabs.net","url":"https://api.tychelabs.net"},"termsOfService":"https://api.tychelabs.net/terms","license":{"name":"Contains public sector information licensed under the Open Government Licence v3.0","url":"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"},"x-logo":{"url":"https://api.tychelabs.net/logo.png"}},"externalDocs":{"description":"Guides, error codes and sandbox values","url":"https://api.tychelabs.net/docs"},"servers":[{"url":"https://api.tychelabs.net","description":"Production (use a tl_test_ key for sandbox data)"}],"security":[{"apiKey":[]}],"tags":[{"name":"Vehicles","description":"DVLA vehicle record and DVSA MOT history"},{"name":"Companies","description":"Companies House profile, filings and risk flags"},{"name":"VAT","description":"HMRC VAT number validation and EORI checks"},{"name":"Sanctions","description":"Screening against the UK, OFAC and EU sanctions lists"},{"name":"Postcodes","description":"Area codes, flood risk, crime and schools for a postcode"},{"name":"Fuel","description":"UK forecourt fuel prices"},{"name":"Watches","description":"Webhooks before MOT or tax expiry, or when a company changes"},{"name":"Account","description":"Plan and usage"}],"paths":{"/v1/vehicles/{registration}":{"get":{"summary":"Look up a vehicle by registration","operationId":"getVehicle","tags":["Vehicles"],"parameters":[{"name":"registration","in":"path","required":true,"schema":{"type":"string"},"example":"AB12CDE","description":"UK registration. Spaces and case are ignored."}],"responses":{"200":{"description":"Vehicle record","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Vehicle"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"petrol":{"summary":"2017 petrol hatchback, MOT due in 17 days (sandbox AB12CDE)","value":{"data":{"registration":"AB12CDE","make":"FORD","model":"FIESTA","colour":"BLUE","fuelType":"PETROL","engineCapacityCc":998,"co2EmissionsGPerKm":104,"euroStatus":null,"realDrivingEmissions":null,"yearOfManufacture":2017,"firstRegistered":"2017-09","firstDvlaRegistered":null,"typeApproval":"M1","wheelplan":"2 AXLE RIGID BODY","revenueWeightKg":1645,"markedForExport":false,"markedAsScrapped":null,"vehicleStatus":null,"lastV5CIssued":"2022-08-17","hasOutstandingRecall":"No","tax":{"status":"Taxed","dueDate":"2027-06-01","daysUntilDue":191,"additionalRateEndDate":null},"mot":{"status":"Valid","expiryDate":"2026-12-09","daysUntilExpiry":17,"firstDueDate":null,"testCount":4,"latestResult":"pass","tests":[{"date":"2025-12-02","result":"pass","expiryDate":"2026-12-09","odometer":{"value":61250,"unit":"mi"},"testNumber":"200000000004","defects":[{"type":"advisory","text":"Front Brake pad(s) wearing thin (1.1.13 (a) (ii))","dangerous":false}],"counts":{"advisory":1}},{"date":"2024-12-05","result":"pass","expiryDate":"2025-12-09","odometer":{"value":52991,"unit":"mi"},"testNumber":"200000000002","defects":[],"counts":{}},{"date":"2024-12-03","result":"fail","expiryDate":null,"odometer":{"value":52980,"unit":"mi"},"testNumber":"200000000003","defects":[{"type":"major","text":"Nearside Headlamp aim too high (4.1.2 (a) (i))","dangerous":false}],"counts":{"major":1}},{"date":"2023-12-01","result":"pass","expiryDate":"2024-12-09","odometer":{"value":44010,"unit":"mi"},"testNumber":"200000000001","defects":[],"counts":{}}]},"mileage":{"latest":{"date":"2025-12-02","miles":61250,"recorded":{"value":61250,"unit":"mi"}},"readings":[{"date":"2023-12-01","miles":44010,"recorded":{"value":44010,"unit":"mi"}},{"date":"2024-12-03","miles":52980,"recorded":{"value":52980,"unit":"mi"}},{"date":"2024-12-05","miles":52991,"recorded":{"value":52991,"unit":"mi"}},{"date":"2025-12-02","miles":61250,"recorded":{"value":61250,"unit":"mi"}}],"averageMilesPerYear":8596,"anomalies":[],"anomalyFound":false},"cleanAirZone":{"estimate":true,"appliesTo":["London ULEZ","Class C and D clean air zones in England","Scottish low emission zones"],"note":"Estimate from published Euro-standard rules and the vehicle’s first registration date. Always confirm with the official TfL or GOV.UK vehicle checker before relying on it.","result":"likely_compliant","basis":"registration_date","euroStandard":null,"requiredEuro":4,"firstRegistered":"2017-09"}},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"sources":{"dvla":{"status":"ok"},"mot":{"status":"ok"}},"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}},"dieselClocked":{"summary":"2012 diesel with a mileage reading that went down (sandbox TL12OLD)","value":{"data":{"registration":"TL12OLD","make":"VAUXHALL","model":"INSIGNIA","colour":"SILVER","fuelType":"DIESEL","engineCapacityCc":1956,"co2EmissionsGPerKm":139,"euroStatus":"EURO 5","realDrivingEmissions":null,"yearOfManufacture":2012,"firstRegistered":"2012-03","firstDvlaRegistered":null,"typeApproval":"M1","wheelplan":"2 AXLE RIGID BODY","revenueWeightKg":null,"markedForExport":false,"markedAsScrapped":null,"vehicleStatus":null,"lastV5CIssued":"2023-05-02","hasOutstandingRecall":"Unknown","tax":{"status":"Taxed","dueDate":"2027-03-01","daysUntilDue":99,"additionalRateEndDate":null},"mot":{"status":"Valid","expiryDate":"2027-01-14","daysUntilExpiry":53,"firstDueDate":null,"testCount":3,"latestResult":"pass","tests":[{"date":"2026-01-15","result":"pass","expiryDate":"2027-01-14","odometer":{"value":118400,"unit":"mi"},"testNumber":"100000000003","defects":[{"type":"advisory","text":"Nearside Front Tyre worn close to legal limit","dangerous":false}],"counts":{"advisory":1}},{"date":"2025-01-10","result":"pass","expiryDate":"2026-01-14","odometer":{"value":96100,"unit":"mi"},"testNumber":"100000000002","defects":[],"counts":{}},{"date":"2024-01-12","result":"pass","expiryDate":"2025-01-14","odometer":{"value":104250,"unit":"mi"},"testNumber":"100000000001","defects":[],"counts":{}}]},"mileage":{"latest":{"date":"2026-01-15","miles":118400,"recorded":{"value":118400,"unit":"mi"}},"readings":[{"date":"2024-01-12","miles":104250,"recorded":{"value":104250,"unit":"mi"}},{"date":"2025-01-10","miles":96100,"recorded":{"value":96100,"unit":"mi"}},{"date":"2026-01-15","miles":118400,"recorded":{"value":118400,"unit":"mi"}}],"averageMilesPerYear":7036,"anomalies":[{"type":"reading_went_down","from":{"date":"2024-01-12","miles":104250,"recorded":{"value":104250,"unit":"mi"}},"to":{"date":"2025-01-10","miles":96100,"recorded":{"value":96100,"unit":"mi"}},"differenceMiles":8150,"detail":"Recorded mileage fell by 8150 miles. Possible clocking, a replaced instrument cluster or a typing error at the test."}],"anomalyFound":true},"cleanAirZone":{"estimate":true,"appliesTo":["London ULEZ","Class C and D clean air zones in England","Scottish low emission zones"],"note":"Estimate from published Euro-standard rules and the vehicle’s first registration date. Always confirm with the official TfL or GOV.UK vehicle checker before relying on it.","result":"likely_non_compliant","basis":"euro_status","euroStandard":5,"requiredEuro":6}},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"sources":{"dvla":{"status":"ok"},"mot":{"status":"ok"}},"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_registration":{"value":{"error":{"code":"invalid_registration","message":"Send a UK registration, for example AB12CDE."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No vehicle found (billed). Sandbox: ZZ99ZZZ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"vehicle_not_found","message":"No vehicle found for that registration."},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/vehicles/bulk":{"post":{"summary":"Look up up to 25 registrations","operationId":"bulkVehicles","tags":["Vehicles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"registrations":{"type":"array","items":{"type":"string"},"maxItems":25}},"required":["registrations"]},"example":{"registrations":["AB12CDE","TL12OLD"]}}}},"responses":{"200":{"description":"One result per registration (each has data or error). Each found vehicle counts as one lookup.","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"registration":{"type":"string"},"data":{"$ref":"#/components/schemas/Vehicle"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"two":{"summary":"Two registrations (shortened)","value":{"data":[{"registration":"AB12CDE","data":{"registration":"AB12CDE","make":"FORD","model":"FIESTA","mot":{"status":"Valid","expiryDate":"2026-12-09"}}},{"registration":"TL12OLD","data":{"registration":"TL12OLD","make":"VAUXHALL","model":"INSIGNIA","mot":{"status":"Valid","expiryDate":"2027-01-14"}}}],"meta":{"requestId":"req_3f9a1c2b7d","billed":0,"sandbox":true}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"too_many":{"value":{"error":{"code":"too_many","message":"Up to 25 registrations per bulk call."},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_body":{"value":{"error":{"code":"invalid_body","message":"Send {\"registrations\": [\"AB12CDE\", ...]} with up to 25 registrations."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/watches":{"get":{"summary":"List your watches","operationId":"listWatches","tags":["Watches"],"responses":{"200":{"description":"Watches"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}},"post":{"summary":"Create a watch (webhook alerts)","operationId":"createWatch","tags":["Watches"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"registration":{"type":"string"},"companyNumber":{"type":"string"},"url":{"type":"string","format":"uri","description":"HTTPS endpoint that receives signed POSTs"},"daysBefore":{"type":"array","items":{"type":"integer"},"description":"Vehicle only. Default [30, 7, 1]."}},"required":["url"]},"examples":{"vehicle":{"summary":"MOT and tax reminders for a vehicle","value":{"registration":"AB12CDE","url":"https://example.com/hooks/tyche","daysBefore":[30,7,1]}},"company":{"summary":"Status and risk changes for a company","value":{"companyNumber":"16716814","url":"https://example.com/hooks/tyche"}}}}}},"responses":{"201":{"description":"Created"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_body":{"value":{"error":{"code":"invalid_body","message":"Send {\"registration\": \"AB12CDE\", \"url\": \"https://...\"} or {\"companyNumber\": \"16716814\", \"url\": \"https://...\"}."},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_target":{"value":{"error":{"code":"invalid_target","message":"That registration or company number is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}},"live_key_required":{"value":{"error":{"code":"live_key_required","message":"Watches need a live key. Use POST /v1/watches/test-event with a test key to try a delivery."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"403":{"description":"Plan watch limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"watch_limit":{"value":{"error":{"code":"watch_limit","message":"Your Free plan allows 5 vehicle watches."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"409":{"description":"Already watching","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"watch_exists":{"value":{"error":{"code":"watch_exists","message":"You already watch that target with that URL."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/watches/{id}":{"delete":{"summary":"Delete a watch","operationId":"deleteWatch","tags":["Watches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"No watch with that id."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/watches/test-event":{"post":{"summary":"Send a sample signed event to a URL","operationId":"testEvent","tags":["Watches"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"}}}}}},"responses":{"200":{"description":"Sent. data.ok is true when your endpoint answered 2xx, false otherwise (with status or error)."},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_url":{"value":{"error":{"code":"invalid_url","message":"The webhook URL must be HTTPS and resolve to a public address."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"403":{"description":"The public docs key cannot send test deliveries: use your own key."},"429":{"description":"Up to 6 test deliveries a minute."}}}},"/v1/account":{"get":{"summary":"Your plan, usage this month and webhook secret","operationId":"getAccount","tags":["Account"],"responses":{"200":{"description":"Account"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/companies/{number}":{"get":{"summary":"Check a company","operationId":"checkCompany","tags":["Companies"],"parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string"},"example":"16716814","description":"Companies House number (8 characters; leading zeros added for you)."},{"name":"vat","in":"query","schema":{"type":"string"},"example":"GB553557881","description":"Optional VAT number to validate with HMRC and compare with the company name."},{"name":"include","in":"query","schema":{"type":"string"},"example":"charity","description":"Comma-separated extra sources. Default: charity."}],"responses":{"200":{"description":"Company check","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Check"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"active":{"summary":"Active company with a VAT number check (sandbox)","value":{"data":{"company":{"number":"12345678","name":"EXAMPLE TRADING LIMITED","status":"active","statusDetail":null,"type":"ltd","jurisdiction":"england-wales","incorporatedOn":"2019-04-02","dissolvedOn":null,"ageYears":7.6,"sicCodes":["62012"],"registeredOffice":{"locality":"London","postcode":"EC1A 1AA","country":"England","inDispute":false,"undeliverable":false},"accounts":{"nextDue":"2027-01-31","overdue":false,"lastMadeUpTo":"2025-04-30","lastType":"micro-entity"},"confirmationStatement":{"nextDue":"2027-04-16","overdue":false,"lastMadeUpTo":"2026-04-02"},"hasInsolvencyHistory":false,"hasCharges":true,"officers":{"active":2,"resigned":1},"personsWithSignificantControl":{"active":1,"ceased":0},"filings":{"total":21,"registeredOfficeChanges12Months":1,"latest":[{"date":"2026-04-10","category":"confirmation-statement","type":"CS01","description":"confirmation-statement-with-no-updates"},{"date":"2026-01-20","category":"accounts","type":"AA","description":"accounts-with-accounts-type-micro-entity"},{"date":"2026-08-01","category":"address","type":"AD01","description":"change-registered-office-address-company-with-date-old-address-new-address"}]}},"vat":{"valid":true,"vatNumber":"GB553557881","name":"EXAMPLE TRADING LIMITED","address":{"line1":"1 Example Street","postcode":"EC1A 1AA","countryCode":"GB"},"checkedAt":"2026-11-22T09:00:00.000Z"},"fca":null,"charity":{"found":false},"flags":[{"code":"has_charges","severity":"info","message":"Company has registered charges (secured lending)."}],"risk":"none"},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"sources":{"companiesHouse":{"status":"ok"}},"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_company_number":{"value":{"error":{"code":"invalid_company_number","message":"Send a Companies House number, for example 16716814 or SC123456."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No company found (billed). Sandbox: 00000000.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"company_not_found","message":"No company found with that number."},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"upstream_unavailable","message":"Companies House is unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/companies/{number}/officers":{"get":{"summary":"Company officers (one check)","operationId":"listOfficers","tags":["Companies"],"description":"As published by Companies House: names, roles, dates, nationality, country of residence, occupation or nature of control, month and year of birth. Never the day of birth or an address of an individual.","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string"},"example":"16716814"},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"size","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"items[] with totals and paging (page, size, hasMore)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_company_number":{"value":{"error":{"code":"invalid_company_number","message":"Send a Companies House number, for example 16716814 or SC123456."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No company found (billed)"},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/companies/{number}/persons-with-significant-control":{"get":{"summary":"Persons with significant control (one check)","operationId":"listPsc","tags":["Companies"],"description":"As published by Companies House: names, roles, dates, nationality, country of residence, occupation or nature of control, month and year of birth. Never the day of birth or an address of an individual.","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string"},"example":"16716814"},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"size","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"items[] with totals and paging (page, size, hasMore)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_company_number":{"value":{"error":{"code":"invalid_company_number","message":"Send a Companies House number, for example 16716814 or SC123456."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No company found (billed)"},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/companies/{number}/charges":{"get":{"summary":"Registered charges (one check)","operationId":"listCharges","tags":["Companies"],"parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string"},"example":"16716814"},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"size","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"items[] with totals and paging (page, size, hasMore)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_company_number":{"value":{"error":{"code":"invalid_company_number","message":"Send a Companies House number, for example 16716814 or SC123456."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No company found (billed)"},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/companies/{number}/filing-history":{"get":{"summary":"Filing history (one check)","operationId":"listFilings","tags":["Companies"],"parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string"},"example":"16716814"},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"size","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"category","in":"query","schema":{"type":"string"},"example":"accounts"}],"responses":{"200":{"description":"items[] with totals and paging (page, size, hasMore)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_company_number":{"value":{"error":{"code":"invalid_company_number","message":"Send a Companies House number, for example 16716814 or SC123456."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No company found (billed)"},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/companies/{number}/ownership":{"get":{"summary":"UK ownership check: owners at 50% or more with potential sanctions matches","operationId":"ownershipCheck","tags":["Companies"],"description":"Follows persons with significant control up through UK corporate owners and screens each owner. One business check per company read; sanctions screens included. A screening aid, not legal advice.","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string"},"example":"09999997"},{"name":"depth","in":"query","schema":{"type":"integer","minimum":1,"maximum":5}},{"name":"threshold","in":"query","schema":{"type":"integer","minimum":70,"maximum":100,"default":85}}],"responses":{"200":{"description":"result (clear, review, flag), flags[], owners[], companies[], incomplete[], lists[], disclaimer"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_query":{"value":{"error":{"code":"invalid_query","message":"depth must be between 1 and 2 on your plan."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No company found (billed)"},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/companies/search":{"get":{"summary":"Search companies by name","operationId":"searchCompanies","tags":["Companies"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2},"example":"example trading"}],"responses":{"200":{"description":"Up to 10 matches","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusDetail":{"type":["string","null"]},"type":{"type":"string"},"jurisdiction":{"type":["string","null"]},"dissolvedOn":{"type":["string","null"],"format":"date"},"incorporatedOn":{"type":["string","null"]},"postcode":{"type":["string","null"]}}}}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"one":{"summary":"One match (sandbox)","value":{"data":{"items":[{"number":"09999999","name":"EXAMPLE TRADING LIMITED","status":"active","incorporatedOn":"2019-04-02","postcode":"EC1A 1AA"}]},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_query":{"value":{"error":{"code":"invalid_query","message":"Send q with 2 to 160 characters."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/eori/{eori}":{"get":{"summary":"Check a UK or EU EORI number","operationId":"checkEori","tags":["VAT"],"parameters":[{"name":"eori","in":"path","required":true,"schema":{"type":"string"},"example":"GB123456789000"}],"responses":{"200":{"description":"Whether the EORI is registered","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"eori":{"type":"string"},"valid":{"type":"boolean"},"name":{"type":["string","null"]},"address":{"type":["object","null"]},"processingDate":{"type":"string"},"source":{"type":"string","enum":["hmrc","eu_eos"]}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"uk":{"summary":"Registered UK EORI (sandbox)","value":{"data":{"eori":"GB123456789000","valid":true,"name":null,"address":null,"processingDate":"2026-11-24T09:00:00+00:00","source":"hmrc"},"meta":{"requestId":"req_7e1a9c3b5d2f4a80","sandbox":true,"sources":{"hmrc":{"status":"ok"}},"usage":{"plan":"free","used":2,"limit":50,"period":"2026-11"}}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_eori":{"value":{"error":{"code":"invalid_eori","message":"Send an EORI number with its country prefix, for example GB123456789000 or DE1234567."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/vat/{vatNumber}":{"get":{"summary":"Validate a UK VAT number with HMRC (coming soon)","operationId":"checkVat","tags":["VAT"],"parameters":[{"name":"vatNumber","in":"path","required":true,"schema":{"type":"string"},"example":"GB553557881"}],"responses":{"200":{"description":"Validity, registered name and address","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Vat"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"valid":{"summary":"Valid VAT number (sandbox)","value":{"data":{"valid":true,"vatNumber":"GB553557881","name":"EXAMPLE TRADING LIMITED","address":{"line1":"1 Example Street","postcode":"EC1A 1AA","countryCode":"GB"},"checkedAt":"2026-11-22T09:00:00.000Z"},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"sources":{"hmrc":{"status":"ok"}},"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_vat_number":{"value":{"error":{"code":"invalid_vat_number","message":"Send a UK VAT number, for example GB123456789."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/sanctions/screen":{"post":{"summary":"Screen a name against the UK, OFAC and EU sanctions lists","operationId":"screenSanctions","tags":["Sanctions"],"description":"Fuzzy screening of a person or an organisation. A screening aid, not legal advice: review every potential match. Names are never logged, and are stored only when you ask for a screening record (record: true).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenQuery"},"example":{"name":"Example Trading Sanctioned LLC","type":"entity","threshold":80}}}},"responses":{"200":{"description":"Potential matches, with the list versions checked","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ScreenResult"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"entity":{"summary":"Entity with two potential matches (sandbox)","value":{"data":{"query":{"type":"entity","dob":null,"country":null,"threshold":80,"lists":["uk","ofac_sdn","ofac_cons","eu"]},"matchCount":2,"matches":[{"score":100,"entryId":"ofac-sdn:900001","list":"ofac_sdn","type":"entity","name":"EXAMPLE TRADING SANCTIONED LLC","matchedName":"EXAMPLE TRADING SANCTIONED LLC","matchedOn":"name","aliases":["OOO EXAMPLE TRADING SANCTIONED"],"dob":[],"nationalities":[],"countries":["XX"],"programmes":["SANDBOX-EO00000"],"listedOn":null,"reasons":["exact name"]},{"score":100,"entryId":"uk:TST0001","list":"uk","type":"entity","name":"Example Trading Sanctioned LLC","matchedName":"Example Trading Sanctioned LLC","matchedOn":"name","aliases":["Example Trading Sanctioned Limited Liability Company","ETS LLC"],"dob":[],"nationalities":[],"countries":["XX"],"programmes":["Sandbox (Example) Regulations 2026"],"listedOn":"2026-01-15","reasons":["exact name"]}],"lists":[{"list":"uk","name":"UK Sanctions List (FCDO)","version":"sandbox","publishedAt":"2026-01-01","checkedAt":"2026-01-01T00:00:00.000Z","stale":false,"sandbox":true},{"list":"ofac_sdn","name":"OFAC Specially Designated Nationals","version":"sandbox","publishedAt":"2026-01-01","checkedAt":"2026-01-01T00:00:00.000Z","stale":false,"sandbox":true},{"list":"ofac_cons","name":"OFAC consolidated (non-SDN) lists","version":"sandbox","publishedAt":"2026-01-01","checkedAt":"2026-01-01T00:00:00.000Z","stale":false,"sandbox":true},{"list":"eu","name":"EU consolidated financial sanctions list","version":"sandbox","publishedAt":"2026-01-01","checkedAt":"2026-01-01T00:00:00.000Z","stale":false,"sandbox":true}],"screenedAt":"2026-11-24T09:00:00.000Z","disclaimer":"Screening aid, not legal advice or a clearance. Review every potential match before you act."},"meta":{"requestId":"req_5b2e7c1d9a3f4e60","sandbox":true,"stale":false,"partial":false,"sources":{"uk":{"status":"ok"},"ofac_sdn":{"status":"ok"},"ofac_cons":{"status":"ok"},"eu":{"status":"ok"}},"usage":{"plan":"free","used":7,"limit":50,"period":"2026-11"}}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_name":{"value":{"error":{"code":"invalid_name","message":"Send name with 2 to 200 characters."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/sanctions/screen/bulk":{"post":{"summary":"Screen up to 25 names","operationId":"screenSanctionsBulk","tags":["Sanctions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"queries":{"type":"array","maxItems":25,"items":{"$ref":"#/components/schemas/ScreenQuery"}}},"required":["queries"]},"example":{"queries":[{"name":"Example Trading Sanctioned LLC"},{"name":"Ivan Sandboxov","type":"individual","dob":"1965"}]}}}},"responses":{"200":{"description":"One result per query, in order. Each query counts as one screen."},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"too_many":{"value":{"error":{"code":"too_many","message":"Up to 25 queries per bulk call."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/sanctions/screen/csv":{"post":{"summary":"Screen a CSV file of names","operationId":"screenSanctionsCsv","tags":["Sanctions"],"description":"A header row with a name column (optional type, dob, country, reference), or one column of names. Each screened row counts as one screen; rows that cannot be screened are not counted. Rows per file depend on your plan. Up to 4 MB.","parameters":[{"name":"record","in":"query","schema":{"type":"boolean"}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"]}},{"name":"threshold","in":"query","schema":{"type":"integer","minimum":50,"maximum":100}},{"name":"lists","in":"query","schema":{"type":"string"},"example":"uk,ofac_sdn"},{"name":"type","in":"query","schema":{"type":"string","enum":["individual","entity","any"]}}],"requestBody":{"required":true,"content":{"text/csv":{"schema":{"type":"string"},"example":"name,type,dob,country,reference\nExample Trading Sanctioned LLC,entity,,RU,C-1\nIvan Sandboxov,individual,1965,,C-2\n"},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"JSON summary with results[] (rows, screened, matchRows, notScreened, billed, checkId, resultsSha256), or a CSV file with format=csv"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_csv":{"value":{"error":{"code":"invalid_csv","message":"Add a header row with a \"name\" column (optional: type, dob, country, reference)."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"413":{"description":"Too many rows for your plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"too_many_rows":{"value":{"error":{"code":"too_many_rows","message":"Your Free plan screens up to 50 rows per upload."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/sanctions/checks":{"get":{"summary":"Your screening records, newest first (not counted)","operationId":"listSanctionsChecks","tags":["Sanctions"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"before","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Records: id, at, expiresAt, channel, requestId, rows, matchRows, lists with versions"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/sanctions/checks/{id}":{"get":{"summary":"One screening record with its results","operationId":"getSanctionsCheck","tags":["Sanctions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The record and results[]"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No such record on your account"}}},"delete":{"summary":"Delete a screening record","operationId":"deleteSanctionsCheck","tags":["Sanctions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No such record on your account"}}}},"/v1/sanctions/checks/{id}/certificate":{"get":{"summary":"PDF screening certificate","operationId":"sanctionsCertificate","tags":["Sanctions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"row","in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The certificate: query, lists and versions, time, result, check ID and request ID","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No such record on your account"}}}},"/v1/sanctions/checks/{id}/results.csv":{"get":{"summary":"Results file of a recorded CSV batch","operationId":"sanctionsCheckCsv","tags":["Sanctions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"CSV, same bytes as when screened (x-results-sha256)","content":{"text/csv":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No such record on your account"}}}},"/v1/sanctions/lists":{"get":{"summary":"List versions and publication dates (not counted)","operationId":"sanctionsLists","tags":["Sanctions"],"responses":{"200":{"description":"Each list with version, publishedAt, checkedAt and stale"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/watches/bulk":{"post":{"summary":"Watch up to 500 companies (company monitoring)","operationId":"bulkWatches","tags":["Watches"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyNumbers":{"type":"array","maxItems":500,"items":{"type":"string"}},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"}},"emailDigest":{"type":"boolean"}},"required":["companyNumbers"]},"example":{"companyNumbers":["16716814","SC123456"],"url":"https://example.com/hooks/tyche","emailDigest":true}}}},"responses":{"201":{"description":"Created watches and per-number errors"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"too_many":{"value":{"error":{"code":"too_many","message":"Up to 500 company numbers per call."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"503":{"description":"Not open yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"coming_soon":{"value":{"error":{"code":"coming_soon","message":"Company monitoring opens when the Companies House feeds are connected."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/postcodes/{postcode}":{"get":{"summary":"Check a postcode: area codes, flood risk, crime and schools","operationId":"checkPostcode","tags":["Postcodes"],"parameters":[{"name":"postcode","in":"path","required":true,"schema":{"type":"string"},"example":"SW1A2AA","description":"A postcode in Great Britain. Spaces and case are ignored."},{"name":"include","in":"query","schema":{"type":"string"},"example":"areas,flood,crime,schools","description":"Comma-separated parts to return (default all)."},{"name":"schools","in":"query","schema":{"type":"integer","minimum":1,"maximum":10},"example":5,"description":"How many schools to return."},{"name":"phase","in":"query","schema":{"type":"string","enum":["primary","secondary","all"]},"example":"all"}],"responses":{"200":{"description":"Postcode check","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PostcodeCheck"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"westminster":{"summary":"Westminster postcode (sandbox)","value":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_postcode":{"value":{"error":{"code":"invalid_postcode","message":"Send a UK postcode, for example SW1A 1AA."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"Not in the ONS Postcode Directory (billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"postcode_not_found":{"value":{"error":{"code":"postcode_not_found","message":"That postcode is not in the ONS Postcode Directory (live or terminated)."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"422":{"description":"Outside coverage (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unsupported_region":{"value":{"error":{"code":"unsupported_region","message":"Northern Ireland postcodes are not covered."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/fuel/nearest":{"get":{"summary":"Nearest or cheapest forecourts for a fuel","operationId":"fuelNearest","tags":["Fuel"],"parameters":[{"name":"postcode","in":"query","schema":{"type":"string"},"example":"SW1A2AA","description":"A GB postcode (or send lat and lng)"},{"name":"lat","in":"query","schema":{"type":"number"}},{"name":"lng","in":"query","schema":{"type":"number"}},{"name":"fuel","in":"query","schema":{"type":"string","enum":["E10","E5","B7_STANDARD","B7_PREMIUM","B10","HVO","B7","SDV"]},"example":"E10"},{"name":"radius","in":"query","schema":{"type":"number","maximum":25},"example":5,"description":"Kilometres"},{"name":"sort","in":"query","schema":{"type":"string","enum":["price","distance"]}},{"name":"limit","in":"query","schema":{"type":"integer","maximum":50}}],"responses":{"200":{"description":"Forecourts with prices as reported, sorted on price or distance only","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FuelNearest"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"e10":{"summary":"Cheapest E10 near Westminster (sandbox)","value":{"data":{"fuel":"E10","location":{"lat":51.50101,"lng":-0.141563},"radiusKm":5,"sort":"price","total":4,"items":[{"station":{"id":"0505050505050505050505050505050505050505050505050505050505050505","name":"PLACEHOLDER ENERGY VAUXHALL","brand":"PLACEHOLDER ENERGY","address":{"line1":"5 Placeholder Place","line2":null,"city":"LONDON","county":null,"postcode":"SE11 1AA","country":"England"},"location":{"lat":51.4862,"lng":-0.1229},"isMotorway":false,"isSupermarket":false,"temporaryClosure":false,"permanentClosure":false},"distanceKm":2.09,"fuel":"E10","price":132.9,"unit":"pence_per_litre","priceLastUpdated":"2026-11-24T06:31:12.000Z","priceEffectiveAt":"2026-11-24T06:30:00.000Z"},{"station":{"id":"0202020202020202020202020202020202020202020202020202020202020202","name":"SAMPLE SUPERSTORE BATTERSEA","brand":"SAMPLE SUPERSTORE","address":{"line1":"2 Sample Way","line2":null,"city":"LONDON","county":null,"postcode":"SW11 1AA","country":"England"},"location":{"lat":51.4791,"lng":-0.15},"isMotorway":false,"isSupermarket":true,"temporaryClosure":false,"permanentClosure":false},"distanceKm":2.51,"fuel":"E10","price":132.9,"unit":"pence_per_litre","priceLastUpdated":"2026-11-24T06:31:12.000Z","priceEffectiveAt":"2026-11-24T06:30:00.000Z"}]},"meta":{"requestId":"req_4d8b2a6c1e9f3b70","sandbox":true,"source":"fuel_finder","dataRefreshedAt":"2026-11-24T07:55:00.000Z","dataAgeSeconds":22505,"reportDiscrepancyUrl":"https://www.fuel-finder.service.gov.uk/motorist/price-report","ranking":"price, then distance","excluded":{"closed":1,"implausiblePrice":0},"plausiblePriceRange":{"min":50,"max":400,"unit":"pence_per_litre"},"usage":{"plan":"free","used":9,"limit":1000,"period":"2026-11"}}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_location":{"value":{"error":{"code":"invalid_location","message":"Send postcode, or lat and lng."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/fuel/stations/{id}":{"get":{"summary":"Every price at one forecourt","operationId":"fuelStation","tags":["Fuel"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Station and prices"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"station_not_found":{"value":{"error":{"code":"station_not_found","message":"No forecourt with that id."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/fuel/stations/{id}/history":{"get":{"summary":"Price history for a forecourt (up to 90 days)","operationId":"fuelHistory","tags":["Fuel"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90}}],"responses":{"200":{"description":"Price series by fuel"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"station_not_found":{"value":{"error":{"code":"station_not_found","message":"No forecourt with that id."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your tl_live_ or tl_test_ key. Free keys at https://api.tychelabs.net/signup. A tl_test_ key returns sandbox data and is never billed."}},"schemas":{"Vehicle":{"type":"object","properties":{"registration":{"type":"string","example":"AB12CDE"},"make":{"type":"string"},"model":{"type":"string"},"colour":{"type":"string"},"fuelType":{"type":"string"},"engineCapacityCc":{"type":["integer","null"]},"co2EmissionsGPerKm":{"type":["integer","null"]},"euroStatus":{"type":["string","null"]},"realDrivingEmissions":{"type":["string","null"]},"yearOfManufacture":{"type":["integer","null"]},"firstRegistered":{"type":["string","null"],"description":"YYYY-MM"},"firstDvlaRegistered":{"type":["string","null"],"description":"YYYY-MM, for imports"},"typeApproval":{"type":["string","null"]},"wheelplan":{"type":["string","null"]},"revenueWeightKg":{"type":["integer","null"]},"markedForExport":{"type":["boolean","null"]},"markedAsScrapped":{"type":["boolean","null"]},"vehicleStatus":{"type":["string","null"]},"lastV5CIssued":{"type":["string","null"],"format":"date"},"hasOutstandingRecall":{"type":["string","null"]},"tax":{"type":"object","properties":{"status":{"type":["string","null"]},"dueDate":{"type":["string","null"],"format":"date"},"daysUntilDue":{"type":["integer","null"]},"additionalRateEndDate":{"type":["string","null"],"format":"date"}}},"mot":{"type":"object","properties":{"status":{"type":["string","null"]},"expiryDate":{"type":["string","null"],"format":"date"},"daysUntilExpiry":{"type":["integer","null"]},"firstDueDate":{"type":["string","null"],"format":"date","description":"For vehicles not yet tested"},"testCount":{"type":"integer"},"latestResult":{"type":["string","null"]},"tests":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"result":{"type":"string","enum":["pass","fail"]},"expiryDate":{"type":["string","null"]},"odometer":{"type":"object"},"testNumber":{"type":"string"},"defects":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"text":{"type":"string"},"dangerous":{"type":"boolean"}}}},"counts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Defects by type"}}}}}},"mileage":{"type":"object","properties":{"latest":{"type":["object","null"]},"readings":{"type":"array","items":{"type":"object"}},"averageMilesPerYear":{"type":["integer","null"]},"anomalyFound":{"type":"boolean"},"anomalies":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["reading_went_down","unusually_high_rate","unit_changed"]},"from":{"type":"object"},"to":{"type":"object"},"differenceMiles":{"type":"integer"},"detail":{"type":"string"}}}}}},"cleanAirZone":{"type":["object","null"],"properties":{"estimate":{"type":"boolean","const":true},"result":{"type":"string","enum":["likely_compliant","likely_non_compliant","uncertain","unknown"]},"basis":{"type":"string"},"euroStandard":{"type":["integer","null"]},"requiredEuro":{"type":["integer","null"]},"appliesTo":{"type":"array","items":{"type":"string"}},"firstRegistered":{"type":["string","null"]},"note":{"type":"string"}}}}},"Meta":{"type":"object","properties":{"requestId":{"type":"string"},"sandbox":{"type":"boolean"},"partial":{"type":"boolean","description":"True when one source failed and the response holds the others."},"stale":{"type":"boolean","description":"True when a source was down and we served our last good copy."},"billed":{"type":"integer","description":"Bulk only: lookups counted against your plan."},"attribution":{"type":"string","description":"Open Government Licence v3.0 attribution. Show it wherever you display the data to others."},"sources":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string","enum":["ok","stale","not_found","unavailable","rate_limited","skipped"]},"fetchedAt":{"type":"string","format":"date-time"},"cache":{"type":"string"},"message":{"type":"string"}}}},"usage":{"type":"object","properties":{"plan":{"type":"string"},"used":{"type":"integer"},"limit":{"type":"integer"},"period":{"type":"string"}}}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["coming_soon","invalid_name","invalid_eori","invalid_postcode","unsupported_region","postcode_not_found","station_not_found","missing_api_key","invalid_api_key","invalid_registration","invalid_company_number","invalid_vat_number","invalid_query","invalid_body","invalid_url","invalid_target","live_key_required","invalid_marketplace_secret","too_many","vehicle_not_found","company_not_found","not_found","watch_exists","watch_limit","quota_exceeded","rate_limited","upstream_unavailable","internal_error"],"description":"Stable machine-readable code. See https://api.tychelabs.net/docs#errors"},"message":{"type":"string"}},"required":["code","message"]},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["error"]},"Company":{"type":"object","properties":{"number":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusDetail":{"type":["string","null"]},"type":{"type":"string"},"jurisdiction":{"type":["string","null"]},"dissolvedOn":{"type":["string","null"],"format":"date"},"incorporatedOn":{"type":"string","format":"date"},"ageYears":{"type":"number"},"sicCodes":{"type":"array","items":{"type":"string"}},"registeredOffice":{"type":"object","properties":{"locality":{"type":["string","null"]},"postcode":{"type":["string","null"]},"country":{"type":["string","null"]},"inDispute":{"type":"boolean"},"undeliverable":{"type":"boolean"}}},"accounts":{"type":"object","properties":{"nextDue":{"type":["string","null"]},"overdue":{"type":"boolean"},"lastMadeUpTo":{"type":["string","null"]},"lastType":{"type":["string","null"]}}},"confirmationStatement":{"type":"object","properties":{"nextDue":{"type":["string","null"]},"overdue":{"type":"boolean"},"lastMadeUpTo":{"type":["string","null"]}}},"hasInsolvencyHistory":{"type":"boolean"},"hasCharges":{"type":"boolean"},"officers":{"type":["object","null"],"description":"Counts only. We do not return officer names or personal details.","properties":{"active":{"type":"integer"},"resigned":{"type":"integer"}}},"personsWithSignificantControl":{"type":["object","null"],"description":"Counts only.","properties":{"active":{"type":"integer"},"ceased":{"type":"integer"}}},"filings":{"type":["object","null"],"properties":{"total":{"type":"integer"},"registeredOfficeChanges12Months":{"type":"integer"},"latest":{"type":"array","items":{"type":"object"}}}}}},"Vat":{"type":["object","null"],"properties":{"valid":{"type":"boolean"},"vatNumber":{"type":"string"},"name":{"type":["string","null"]},"address":{"type":["object","null"]},"checkedAt":{"type":["string","null"]}}},"Check":{"type":"object","properties":{"company":{"$ref":"#/components/schemas/Company"},"vat":{"$ref":"#/components/schemas/Vat"},"charity":{"type":["object","null"],"properties":{"found":{"type":"boolean"},"charityNumber":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"registeredOn":{"type":["string","null"]},"removedOn":{"type":["string","null"]},"insolvent":{"type":"boolean"},"inAdministration":{"type":"boolean"}}},"fca":{"type":["object","null"],"description":"Not available yet (always null)."},"risk":{"type":"string","enum":["none","low","medium","high"]},"flags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["info","low","medium","high"]},"message":{"type":"string"}}}}}},"ScreenQuery":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":2,"maxLength":200},"type":{"type":"string","enum":["individual","entity","vessel","aircraft","any"]},"dob":{"type":"string","description":"YYYY, YYYY-MM or YYYY-MM-DD"},"country":{"type":"string","description":"ISO 3166 alpha-2"},"lists":{"type":"array","items":{"type":"string","enum":["uk","ofac_sdn","ofac_cons","eu"]}},"threshold":{"type":"integer","minimum":50,"maximum":100,"default":80},"limit":{"type":"integer","minimum":1,"maximum":50,"default":10},"record":{"type":"boolean","description":"Keep a screening record and PDF certificate (default: your account setting)"},"reference":{"type":"string","maxLength":100,"description":"Your own reference, shown on the record"}}},"ScreenResult":{"type":"object","properties":{"query":{"type":"object"},"matchCount":{"type":"integer"},"matches":{"type":"array","items":{"type":"object","properties":{"score":{"type":"number"},"entryId":{"type":"string"},"list":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"matchedName":{"type":"string"},"matchedOn":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"dob":{"type":"array","items":{"type":"string"}},"nationalities":{"type":"array","items":{"type":"string"}},"countries":{"type":"array","items":{"type":"string"}},"programmes":{"type":"array","items":{"type":"string"}},"listedOn":{"type":["string","null"]},"reasons":{"type":"array","items":{"type":"string"}}}}},"lists":{"type":"array","items":{"type":"object","properties":{"list":{"type":"string"},"name":{"type":"string"},"version":{"type":["string","null"]},"publishedAt":{"type":["string","null"]},"checkedAt":{"type":["string","null"]},"stale":{"type":"boolean"}}}},"screenedAt":{"type":"string","format":"date-time"},"disclaimer":{"type":"string"}}},"PostcodeCheck":{"type":"object","properties":{"postcode":{"type":"string"},"areas":{"type":"object","description":"ONS Postcode Directory: outcode, incode, status, terminated, latitude, longitude, eastings, northings, country, region, localAuthority, county, ward, parish, parliamentaryConstituency, lsoa21, msoa21, outputArea21, policeForceArea, nhs, ruralUrban"},"flood":{"type":["object","null"],"description":"Environment Agency flood risk for the postcode (England)"},"crime":{"type":["object","null"],"description":"police.uk street-level crime around the postcode for the last 12 months (England and Wales)"},"schools":{"type":["object","null"],"description":"Nearest open schools with their latest Ofsted outcome (England)"}}},"FuelNearest":{"type":"object","properties":{"fuel":{"type":"string"},"location":{"type":"object"},"radiusKm":{"type":"number"},"sort":{"type":"string"},"total":{"type":"integer"},"items":{"type":"array","items":{"type":"object","properties":{"station":{"type":"object"},"distanceKm":{"type":"number"},"fuel":{"type":"string"},"price":{"type":"number","description":"Pence a litre"},"priceLastUpdated":{"type":"string"},"priceEffectiveAt":{"type":"string"}}}}}}}}}