- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Power BI - Need data from a POST Api
I am trying to get data forma an API with <post method from Power query but I cannot do it, and I don't find the error...here is my code:
There is some parts commented because I think the problem is how I send parameters...
La descripción de la API es la siguiente:
I hope someone can help me!!
THANK YOU
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please follow the documentation. Use a body payload. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. You should try running the following two examples (check the "json" fields in the result to see if your program is correct). I believe you will truly understand how to post data.
let
resp = Web.Contents(
"https://httpbin.org",
[
RelativePath = "post",
Content = Json.FromValue([A = 1, B = "2025/01/02"])
]
),
data = Json.Document(resp)
in
data
let
resp = Web.Contents(
"https://httpbin.org",
[
RelativePath = "post",
Content = Text.ToBinary("{""A"": 1, ""B"": ""2025/01/02""}", TextEncoding.Utf8)
]
),
data = Json.Document(resp)
in
data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @gbros ,
Thank you for reaching out to the Microsoft Fabric Community.
I wanted to check if you had the opportunity to review the information provided @ZhangKun and @lbendlin .
Please feel free to contact us if you have any further questions. If the responses provided has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @gbros ,
I wanted to follow up on our previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.
If the response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @gbros ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. You should try running the following two examples (check the "json" fields in the result to see if your program is correct). I believe you will truly understand how to post data.
let
resp = Web.Contents(
"https://httpbin.org",
[
RelativePath = "post",
Content = Json.FromValue([A = 1, B = "2025/01/02"])
]
),
data = Json.Document(resp)
in
data
let
resp = Web.Contents(
"https://httpbin.org",
[
RelativePath = "post",
Content = Text.ToBinary("{""A"": 1, ""B"": ""2025/01/02""}", TextEncoding.Utf8)
]
),
data = Json.Document(resp)
in
data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please follow the documentation. Use a body payload. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-2

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
05-28-2024 12:45 PM | |||
03-13-2024 04:30 AM | |||
06-06-2024 01:37 AM | |||
12-14-2023 10:48 PM | |||
04-08-2024 06:06 AM |
User | Count |
---|---|
29 | |
26 | |
18 | |
12 | |
10 |
User | Count |
---|---|
27 | |
24 | |
23 | |
17 | |
13 |