Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Need Help with ISNet Connection

Our safety team is trying to connect to ISNet data using the query below, where the blue text are confidential variables we enter:

 

let
url="https://api.isnetworld.com/token",
url1 = "https://api.isnetworld.com/1.0/SiteTracker/ContractorInfo/[contractorID]/[projectID]/2020/March",
GetJson = Json.Document(Web.Contents(url, [Headers=[#"Content-Type"="application/json", CompanyKey="[companykey]", UserKey="[userkey]"]])),
AccessToken = GetJson[token],
AccessTokenHeader = "bearer "&AccessToken,
GetData = (Web.Contents(url1, [Headers=[Authorization=AccessTokenHeader]]))
in
GetData

 

The token returns perfectly - but we get a 500 Internal Server Error when attempting to use the token with url1.

 

ISNetworld – API syntax guide:
GET /1.0/SiteTracker/ContractorInfo/{Contractor_ISNID}/{Project_ID}/{Year}/{Month}

 

Wondering if anyone has had success connecting to the ISNet data. Any help or suggestions would be appreciated.

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

Your query looks great. It is weird to get the 500 error, such as if the token is expire, it should return authentication fail, if the items does not exist, it should return resource not found, etc...

 

Could you please try to post the request by using other tools outside the power bi desktop? To Verify if the request sent by desktop is correct, you can capture the http request sent by the power bi desktop. Sorry for that we know nothing about this api, but does there any possibility the {Month} mean month number such as 3 other than month name such as march? (if the api document has provided the example ”march“, please ignore this)


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you for the reply. We'll try some other validation tools and see what happens. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors