Skip to content

Instantly share code, notes, and snippets.

@bjulius
Created October 8, 2023 18:14
Show Gist options
  • Save bjulius/f82d3d11b1481a9992e1c4b7be97369e to your computer and use it in GitHub Desktop.
Save bjulius/f82d3d11b1481a9992e1c4b7be97369e to your computer and use it in GitHub Desktop.
Download Gists from Github API to Power Query
let
// Your GitHub token for authentication
github_token = "Your Github Token Here",
// GitHub API URL for listing your gists
api_url = "https://api.github.com/gists",
// Make the API request
Source = Json.Document(Web.Contents(api_url,
[Headers=[#"Authorization"="token " & github_token]])),
// Transform the JSON to table (customize this part as needed)
ToTable = Table.FromList(Source, Splitter.SplitByNothing())
in
ToTable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment