Skip to content

Instantly share code, notes, and snippets.

@chao-xian
Created October 11, 2021 18:40
Show Gist options
  • Save chao-xian/437e4cbc11555732f1f566f4876cc204 to your computer and use it in GitHub Desktop.
Save chao-xian/437e4cbc11555732f1f566f4876cc204 to your computer and use it in GitHub Desktop.
Xuntos copy paste
orgs = await fetch("https://www.gov.uk/api/content/government/organisations").then(response => response.json())
ministers = await fetch("https://www.gov.uk/api/content/government/ministers").then(results => results.json())
console.log(`${ministers["links"]["ministers"][12]["links"]["role_appointments"][0]["title"]} - ${orgs["details"]["ordered_ministerial_departments"][5]["title"]}`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment