{"id":"38ed3e9e-9719-40e1-acde-e54128c70a90","type":"API","name":"Treaties API","slug":"treaties-api","description":"An API exposing details of the treaties laid before Parliament.","free_access_class":"FREE_NO_AUTH","auth_type":"NONE","homepage_url":"https://www.parliament.uk/","docs_url":null,"repo_url":"https://treaties-api.parliament.uk/swagger/v1/swagger.json","status":"ACTIVE","verification_state":"VERIFIED","tags":["legislation"],"logo_url":"https://www.google.com/s2/favicons?sz=64&domain=parliament.uk","primary_source_url":"https://treaties-api.parliament.uk/swagger/v1/swagger.json","extraction_confidence":"0.70","created_at":"2026-01-01T19:42:27.460Z","updated_at":"2026-08-16T13:16:29.796Z","last_verified_at":"2026-08-16T13:16:29.796Z","deprecated_at":null,"ranking_score":65,"last_ranked_at":"2026-08-08T19:19:04.131Z","last_seen_at":null,"last_validated_at":null,"last_uptime_at":"2026-08-06T17:44:51.513Z","search_vector":"'a':170B 'access':16B,61B,113B,158B 'allow':47B 'allowing':144B 'an':100B 'analys':55B 'analyse':152B 'and':137B,146B,151B,161B,183B 'api':2A,4B,14B,99A,101B,111B 'at':186B 'authent':68B 'authentication':165B 'before':108B,119B 'broader':74B,171B 'by':124B,178B 'cover':84B 'covering':181B 'data':33B,78B,130B,175B 'detail':6B,18B 'details':103B,115B 'develop':48B 'developers':145B 'does':162B 'expos':5B,31B 'exposes':128B 'exposing':102B 'for':190B 'formal':57B 'formally':154B 'free':63B,160B 'includ':37B 'including':134B 'inform':88B 'information':185B 'is':159B,167B 'it':127B,166B 'kingdom':96B,193B 'laid':10B,21B,107B,118B 'legisl':85B,97C 'legislative':182B 'level':92B,189B 'maintain':26B 'maintained':123B 'nation':91B 'national':188B 'not':163B 'of':104B,116B,169B,173B 'on':131B 'parliament':12B,25B,29B,60B,83B,109B,122B,126B,157B,180B 'parliamentari':44B,77B 'parliamentary':141B,174B 'part':71B,168B 'present':58B 'presented':155B 'procedur':87B 'procedural':184B 'process':46B,143B 'programmat':52B 'programmatically':149B 'progress':41B,138B 'provid':15B 'provides':112B 'publish':80B 'published':177B 'record':36B 'records':133B 'requir':67B 'require':164B 'research':50B 'researchers':147B 'scrutini':45B 'scrutiny':142B 'servic':79B 'services':176B 'set':75B,172B 'status':39B,136B 'structur':32B 'structured':129B 'the':105B,120B,140B,187B,191B 'their':135B 'this':110B 'through':139B 'to':114B,148B,156B 'track':53B,150B 'treati':1A,9B,20B,35B,56B 'treaties':98A,106B,117B,153B 'treaty':132B 'uk':24B,28B,82B,121B,125B,179B 'unit':95B 'united':192B","popularity_score":"0.0000","maintenance_score":"0.5000","institution_id":"80926881-de89-4d9e-a1c5-f2393d25dac7","institution_type":"GOVERNMENT","country_code":"GB","official_confidence":40,"proof_summary":"official domain (parliament.uk)","source_seed_url":null,"is_public_sector":true,"published_at":"2026-01-01T19:42:27.460Z","geographic_scope":"NATIONAL","name_en":null,"description_en":"This API provides access to details of treaties laid before the UK Parliament, maintained by UK Parliament. It exposes structured data on treaty records, including their status and progress through the parliamentary scrutiny process, allowing developers and researchers to programmatically track and analyse treaties formally presented to Parliament. Access is free and does not require authentication. It is part of a broader set of parliamentary data services published by UK Parliament covering legislative and procedural information at the national level for the United Kingdom.","native_lang":"en","access_level":"direct","formats":[],"capability_tier":"sample","trust_score":71,"access":{"level":"direct","primary":{"kind":"query","label":"Run verified request","method":"GET","url":"https://treaties-api.parliament.uk/api/GovernmentOrganisation","source":"probe","runnable":true},"actions":[{"kind":"query","label":"Run verified request","method":"GET","url":"https://treaties-api.parliament.uk/api/GovernmentOrganisation","source":"probe","runnable":true},{"kind":"spec","label":"OpenAPI spec","method":"GET","url":"https://treaties-api.parliament.uk/swagger/v1/swagger.json","source":"openapi","runnable":false},{"kind":"query","label":"API base URL","method":"GET","url":"https://treaties-api.parliament.uk","source":"base_url","runnable":false},{"kind":"landing","label":"Visit homepage","method":"GET","url":"https://www.parliament.uk/","source":"homepage","runnable":false}],"formats":[]},"maturity":{"entry_id":"38ed3e9e-9719-40e1-acde-e54128c70a90","granularity":"entry","granularity_label":"One unit = one catalog entry. A PROXY for the SCOPE.md §4 ladder, which governs source families, not entries: a family with 400 entries moves this reading 400 times as much as a family with one. Never compare or combine with the source_family reading.","level":"profiled","level_index":3,"level_label":"Profiled","meaning":"Schema, dimensions and licence understood","counts_as_coverage":false,"blocked_by":null,"rungs":[{"level":"discovered","level_index":1,"label":"Discovered","meaning":"Source and metadata recorded","evidence":"membership of the named population the ladder is taken over","counts_as_coverage":false,"met":true,"reached":true,"criterion":"TRUE"},{"level":"verified","level_index":2,"label":"Verified","meaning":"Access tested successfully","evidence":"entries.verification_state = 'VERIFIED'","counts_as_coverage":false,"met":true,"reached":true,"criterion":"entries.verification_state = 'VERIFIED'"},{"level":"profiled","level_index":3,"label":"Profiled","meaning":"Schema, dimensions and licence understood","evidence":"a data profile with at least one field (entry_data_profiles.field_count > 0)","counts_as_coverage":false,"met":true,"reached":true,"criterion":"EXISTS (SELECT 1 FROM entry_data_profiles p WHERE p.entry_id = entries.id AND COALESCE(p.field_count, 0) > 0)"},{"level":"executable","level_index":4,"label":"Executable","meaning":"Queries run through Commodity","evidence":"entries.capability_tier = 'live' — today's proxy for \"queryable through us\"","counts_as_coverage":true,"met":false,"reached":false,"criterion":"entries.capability_tier = 'live'"},{"level":"joinable","level_index":5,"label":"Joinable","meaning":"Canonical identifiers and concepts mapped","evidence":"a field link to a canonical identifier whose sampled VALUES match its format","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_field_links efl WHERE efl.entry_id = entries.id AND efl.identifier_id IS NOT NULL AND efl.value_status = 'match')"},{"level":"reproducible","level_index":6,"label":"Reproducible","meaning":"Snapshots and transformation evidence retained","evidence":"at least one retained evidence manifest (migration 078)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM evidence_manifests em WHERE em.entry_id = entries.id)"},{"level":"guaranteed","level_index":7,"label":"Guaranteed","meaning":"Monitored against an operational reliability target","evidence":"an active reliability target with a named monitor (migration 096)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_reliability_targets rt WHERE rt.entry_id = entries.id AND rt.is_active = true)"}],"officialness":{"basis":"catalog_inherited","label":"Inherited from the upstream catalog: this item came from a trusted official government catalog, and that provenance — not per-item proof — is the warrant. Its own proof score is below 80 or it matched no registered institution (apps/worker/src/connectors/catalog/qualify-store.ts).","proof_confidence":40,"proven_threshold":80,"institution_id":"80926881-de89-4d9e-a1c5-f2393d25dac7","definition":"CASE WHEN COALESCE(entries.is_public_sector, false) IS NOT TRUE THEN 'not_official' WHEN COALESCE(entries.official_confidence, 0) >= 80 AND entries.institution_id IS NOT NULL THEN 'per_item_proven' ELSE 'catalog_inherited' END"},"source_family":{"key":"treaties-api.parliament.uk","label":"One unit = one source family, approximated by the serving host of the entry's primary source URL (e.g. bdl.stat.gov.pl). A COMPUTED stand-in for the curated families of SCOPE.md §5, which no table holds yet. A family sits at the highest level any of its entries has reached, because a family is integrated to the depth of its deepest working integration. Never compare or combine with the entry reading."},"generated_at":"2026-08-16T13:49:46.351Z"},"api_details":{"id":"19aba87f-4d5d-44e5-8f94-106895771f63","entry_id":"38ed3e9e-9719-40e1-acde-e54128c70a90","base_url":"https://treaties-api.parliament.uk","openapi_url":"https://treaties-api.parliament.uk/swagger/v1/swagger.json","graphql_url":null,"api_version":"v1","spec_format":"openapi","endpoints_count":6,"endpoints":[{"path":"/api/BusinessItem/{id}","method":"GET","description":"Returns business item by ID."},{"path":"/api/GovernmentOrganisation","method":"GET","description":"Returns all government organisations."},{"path":"/api/SeriesMembership","method":"GET","description":"Returns all series memberships."},{"path":"/api/Treaty","method":"GET","description":"Returns a list of treaties."},{"path":"/api/Treaty/{id}","method":"GET","description":"Returns a treaty by ID."},{"path":"/api/Treaty/{id}/BusinessItems","method":"GET","description":"Returns business items belonging to the treaty with ID."}],"rate_limit_info":null,"free_tier_limits":null,"ping_url":null,"created_at":"2026-01-01T19:42:27.626Z","updated_at":"2026-01-01T19:42:27.626Z"},"dataset_details":null,"license":null,"reuse":{"license_id":null,"license_name":null,"license_url":null,"commercial_use":{"status":"unknown","value":null},"redistribution":{"status":"unknown","value":null},"attribution_required":{"status":"unknown","value":null},"share_alike":{"status":"unknown","value":null},"personal_data_warning":{"status":"unknown","value":null},"cache_and_mirror":{"status":"unknown","value":null},"undetermined":["commercial_use","redistribution","attribution_required","share_alike","personal_data_warning","cache_and_mirror"],"basis":"unverified","confidence":0.1,"confidence_tier":"low","source_text":null,"source_url":null,"reviewed_at":null},"license_raw":null,"latest_check":{"id":"d302bb94-13b0-4034-a122-a3b67701dff3","entry_id":"38ed3e9e-9719-40e1-acde-e54128c70a90","status":"VERIFIED","last_checked_at":"2026-08-16T13:16:29.504Z","p50_latency_ms":1704,"p95_latency_ms":null,"last_error":null,"consecutive_failures":0,"created_at":"2026-06-08T12:42:45.318Z","updated_at":"2026-08-16T13:16:29.504Z","consecutive_successes":120,"probe_url":"https://treaties-api.parliament.uk/api/GovernmentOrganisation","probe_method":"GET","probe_http_status":200,"probe_content_type":"application/json; charset=utf-8","probe_succeeded_at":"2026-08-16T13:16:29.504Z"},"data_profile":{"id":"680fc458-e52f-478f-9867-aac2892e1acc","entry_id":"38ed3e9e-9719-40e1-acde-e54128c70a90","profile_source":"openapi","profile_kind":"dataset","dataset_id":null,"fields":[{"name":"id","role":"parameter","type":"string","label":null,"param_in":"path","required":true,"container":"/api/BusinessItem/{id}","filterable":true,"description":"Business item with the ID specified","description_en":"Unique identifier of the business item."},{"name":"SearchText","role":"parameter","type":"string","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Free-text search term for filtering treaty records."},{"name":"GovernmentOrganisationId","role":"parameter","type":"integer (int32)","label":null,"format":"int32","param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Identifier of the government organisation associated with the treaty."},{"name":"Series","role":"parameter","type":"string","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Name of the treaty series to filter by."},{"name":"ParliamentaryProcess","role":"parameter","type":"string","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Parliamentary process type to filter treaties by."},{"name":"DebateScheduled","role":"parameter","type":"boolean","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Whether a debate has been scheduled for the treaty."},{"name":"MotionsTabledAboutATreaty","role":"parameter","type":"boolean","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Whether motions have been tabled about the treaty."},{"name":"CommitteeRaisedConcerns","role":"parameter","type":"boolean","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Whether a committee has raised concerns about the treaty."},{"name":"House","role":"parameter","type":"string","label":null,"param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"House of Parliament to filter results by."},{"name":"Skip","role":"parameter","type":"integer (int32)","label":null,"format":"int32","param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Number of records to skip for pagination."},{"name":"Take","role":"parameter","type":"integer (int32)","label":null,"format":"int32","param_in":"query","container":"/api/Treaty","filterable":true,"description":null,"description_en":"Maximum number of records to return."},{"name":"treatyId","type":"string","label":"BusinessItem","description":null,"description_en":"Identifier of the treaty related to this business item."},{"name":"stepName","type":"string","label":"BusinessItem","description":null,"description_en":"Name of the procedural step for this business item."},{"name":"steps","type":"array<string>","label":"BusinessItem","description":null,"description_en":"List of procedural steps associated with the business item."},{"name":"itemDate","type":"string (date-time)","label":"BusinessItem","format":"date-time","description":null,"description_en":"Date associated with the business item."},{"name":"houses","type":"array<object>","label":"BusinessItem","description":null,"description_en":"Houses of Parliament involved in the business item."},{"name":"link","type":"string","label":"BusinessItem","description":null,"description_en":"URL link related to the business item."},{"name":"sequence","type":"integer (int32)","label":"BusinessItem","format":"int32","description":null,"description_en":"Order sequence number of the business item."},{"name":"treatyUri","type":"string (uri)","label":"BusinessItem","format":"uri","description":null,"description_en":"URI of the related treaty resource."},{"name":"businessItemUri","type":"string (uri)","label":"BusinessItem","format":"uri","description":null,"description_en":"URI of the business item resource."},{"name":"houseUri","type":"string (uri)","label":"BusinessItem","format":"uri","description":null,"description_en":"URI of the associated house resource."},{"name":"houseName","type":"string","label":"BusinessItem","description":null,"description_en":"Name of the House of Parliament involved."},{"name":"procedureStepUri","type":"string (uri)","label":"BusinessItem","format":"uri","description":null,"description_en":"URI of the associated procedure step resource."},{"name":"houseId","type":"string","label":"BusinessItem","description":null,"description_en":"Identifier of the House of Parliament."},{"name":"procedureStepId","type":"string","label":"BusinessItem","description":null,"description_en":"Identifier of the procedural step."},{"name":"workpackageProcedureUri","type":"string (uri)","label":"BusinessItem","format":"uri","description":null,"description_en":"URI of the related workpackage procedure resource."},{"name":"house","type":"object","label":"BusinessItemHouse","description":null,"description_en":"House of Parliament object associated with the business item."},{"name":"name","type":"string","label":"BusinessItemHouse","description":null,"description_en":"Name of the house."},{"name":"value","type":"object","label":"BusinessItemResource","description":null,"description_en":"Main resource content of the business item."},{"name":"links","type":"array<object>","label":"BusinessItemResource","description":null,"description_en":"List of related hyperlinks for the resource."},{"name":"items","type":"array<object>","label":"BusinessItemResourceCollection","description":null,"description_en":"List of business item resources in the collection."},{"name":"totalResults","type":"integer (int32)","label":"BusinessItemResourceCollection","format":"int32","description":null,"description_en":"Total number of results available."},{"name":"itemsPerPage","type":"integer (int32)","label":"BusinessItemResourceCollection","format":"int32","description":null,"description_en":"Number of items returned per page."},{"name":"description","type":"string","label":"SeriesMembership","description":null,"description_en":"Description text for the series membership."},{"name":"uri","type":"string (uri)","label":"Treaty","format":"uri","description":null,"description_en":"URI identifying the treaty resource."},{"name":"commandPaperPrefix","type":"string","label":"Treaty","description":null,"description_en":"Prefix code of the treaty's command paper."},{"name":"commandPaperNumber","type":"integer (int32)","label":"Treaty","format":"int32","description":null,"description_en":"Number of the treaty's command paper."},{"name":"commonsLayingDate","type":"string (date-time)","label":"Treaty","format":"date-time","description":null,"description_en":"Date the treaty was laid before the House of Commons."},{"name":"lordsLayingDate","type":"string (date-time)","label":"Treaty","format":"date-time","description":null,"description_en":"Date the treaty was laid before the House of Lords."},{"name":"webLink","type":"string (uri)","label":"Treaty","format":"uri","description":null,"description_en":"URL to further information about the treaty."},{"name":"treatySeriesMembership","type":"object","label":"Treaty","description":null,"description_en":"Details of the treaty's membership in a treaty series."},{"name":"leadDepartment","type":"object","label":"Treaty","description":null,"description_en":"Government department responsible for the treaty."},{"name":"layingBodyDepartment","type":"object","label":"Treaty","description":null,"description_en":"Department that laid the treaty before Parliament."},{"name":"parliamentaryConclusion","type":"object","label":"Treaty","description":null,"description_en":"Outcome of the treaty's parliamentary consideration."},{"name":"debateScheduled","type":"string","label":"Treaty","description":null,"description_en":"Indicates whether a debate on the treaty is scheduled."},{"name":"broughtToAttentionDate","type":"string (date-time)","label":"Treaty","format":"date-time","description":null,"description_en":"Date the treaty was brought to Parliament's attention."},{"name":"signedDate","type":"string (date-time)","label":"Treaty","format":"date-time","description":null,"description_en":"Date the treaty was signed."},{"name":"laidDate","type":"string (date-time)","label":"Treaty","format":"date-time","description":null,"description_en":"Date the treaty was laid before Parliament."},{"name":"pertinentDate","type":"string (date-time)","label":"Treaty","format":"date-time","description":null,"description_en":"Relevant date associated with the treaty's process."},{"name":"workpackageId","type":"string","label":"Treaty","description":null,"description_en":"Identifier of the workpackage linked to the treaty."},{"name":"seriesMembershipType","type":"object","label":"TreatySeriesMembership","description":null,"description_en":"Type of treaty series membership."},{"name":"citation","type":"string","label":"TreatySeriesMembership","description":null,"description_en":"Citation reference for the treaty series membership."},{"name":"rel","type":"string","label":"Link","description":null,"description_en":"Relationship type of the linked resource."},{"name":"href","type":"string","label":"Link","description":null,"description_en":"URL of the linked resource."},{"name":"method","type":"string","label":"Link","description":null,"description_en":"HTTP method used for the linked resource."}],"field_count":55,"sample_records":null,"record_count":null,"data_size_bytes":null,"dataset_count":null,"query_examples":[{"url":"https://treaties-api.parliament.uk/swagger/v1/swagger.json","curl":"curl -s 'https://treaties-api.parliament.uk/swagger/v1/swagger.json' -H 'Accept: application/json'","label":"OpenAPI spec","method":"GET","description":"Machine-readable API description (use it to generate clients)."},{"url":"https://treaties-api.parliament.uk/api/GovernmentOrganisation","curl":"curl -s 'https://treaties-api.parliament.uk/api/GovernmentOrganisation' -H 'Accept: application/json'","label":"Returns all government organisations.","method":"GET","description":"Returns all government organisations."}],"status":"partial","error_message":null,"profiled_at":"2026-07-24T20:31:49.276Z","run_id":"54ef0e1f-2063-4276-bbeb-683cf0a83eb5","created_at":"2026-06-12T19:11:45.207Z","updated_at":"2026-07-24T20:31:49.276Z","license_raw":null,"license_id":null,"consecutive_failure_count":0,"last_error_at":null,"last_error_message":null,"previewable":false},"datasets":[],"limits":[]}