Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
data = {
"username": "USERNAME",
"password": "PASSWORD",
"createdFromDate": "2022-05-15",
"createdToDate": "2022-05-19",
"status": "FIX",
"format": "CSV",
"separator": ","
}
resp = requests.post(url="url.com", data=data, verify=False)
print(resp.content)
Hi @vibee1208
Your code looks good. You may also try below code.
let
apiUrl = "https://xxxxxxxxxx",
headers = [#"Content-Type" = "application/json"],
body = [
username = "USERNAME",
password = "PASSWORD",
createdFromDate = "2022-05-15",
createdToDate = "2022-05-19",
status = "FIX",
format = "CSV",
separator = ","
],
Source = Json.Document(Web.Contents(apiUrl, [Headers = headers, Content = Text.ToBinary(Uri.BuildQueryString(body))]))
in
Source
If it still has the same error, you may refer to https://community.powerbi.com/t5/Desktop/We-found-extra-characters-at-the-end-of-JSON-input/m-p/6193... , try the solutions provided by other community users. It seems the way Power Query deals with JSON content is different from other tools.
Or try the solution in Troubleshooting section in this doc https://docs.microsoft.com/power-query/connectors/json#troubleshooting
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Change separator to anything other than comma say to a semi-colon.
Hence replace ""separator"":"",""}" with ""separator"":"";""}"
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.