Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello!
I have api, https://site.com/api
I have json data that I need to run the query:
{
"aggs": {
"round_aggs": {
"terms": {
"field": "host.hostname.keyword",
"size": 2000
}
}
},
"size": 0
}
How can i get data from web API with my json data?
i have this example:
let
Json = Json.FromValue({[idType= "ID_ISIN", idValue= "US4592001014"], [idType = "ID_WERTPAPIER", idValue = "851399", exchCode = "US" ]}),
Source = Json.Document(Web.Contents("https://api.openfigi.com/v1/mapping?", [Headers=[#"Content-Type"="application/json"], Content=Json]))
in
SourceBut I don't know how to do this with my json data
Thanks in advance
Solved! Go to Solution.
Hello @aignn
use this syntax for your Json-step
Json = Json.Document("{#(cr)#(lf) ""aggs"": {#(cr)#(lf) ""round_aggs"": {#(cr)#(lf) ""terms"": {#(cr)#(lf) ""field"": ""host.hostname.keyword"",#(cr)#(lf) ""size"": 2000#(cr)#(lf) }#(cr)#(lf) }#(cr)#(lf) },#(cr)#(lf) ""size"": 0#(cr)#(lf)}")
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Hello @aignn
use this syntax for your Json-step
Json = Json.Document("{#(cr)#(lf) ""aggs"": {#(cr)#(lf) ""round_aggs"": {#(cr)#(lf) ""terms"": {#(cr)#(lf) ""field"": ""host.hostname.keyword"",#(cr)#(lf) ""size"": 2000#(cr)#(lf) }#(cr)#(lf) }#(cr)#(lf) },#(cr)#(lf) ""size"": 0#(cr)#(lf)}")
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |