Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
// Retrieve data from the specified page
data = Web.Contents(pageUrl),
// Convert the JSON data to a text value
jsonData = Json.Document(data),
#"Converted to Table" = Table.FromList(jsonData, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"source", "earthquake_id", "magnitude", "depth", "region"}, {"Column1.source", "Column1.earthquake_id", "Column1.magnitude", "Column1.depth", "Column1.region"})
in
#"Expanded Column1"
They recommend using ODATA instead of the API
Open A Data & Insights Dataset In Microsoft Power BI – Data & Insights Client Center (socrata.com)
let
Source = OData.Feed("https://soda.demo.socrata.com/api/odata/v4/4tka-6guv", null, [Implementation="2.0"]),
#"Split Column by Delimiter" = Table.SplitColumn(Source, "location", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"location.1", "longitude", "latitude"}),
#"Replaced Value" = Table.ReplaceValue(#"Split Column by Delimiter","(","",Replacer.ReplaceText,{"longitude"}),
#"Replaced Value1" = Table.ReplaceValue(#"Replaced Value",")","",Replacer.ReplaceText,{"latitude"}),
#"Changed Type" = Table.TransformColumnTypes(#"Replaced Value1",{{"longitude", type number}, {"latitude", type number}})
in
#"Changed Type"
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!