Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

327
Views
API Energylabel works from Postman, but not from my code

Postman request is working, but code is not

So I am having a headache here on this API call. It definitely works correctly from Postman itself and gives me the right result. Which means that my API key is correct.

However, I tried to build my call myself from React first, however, it didn't work at all. Then I tried it with the code which Postman gave me as you can see on the right of the screenshot. However, also if I use that code, it still doesn't work. Also tested the "JavaScript fetch()" code from Postman in an individual file. Still no result. It keeps telling me that the API key isn't valid, but it's the same API Key, so it should just work fine.

Also, it doesn't matter if I use the Cookie or not. If I leave it out of the code, it still doesn't work. ( Ofcourse I masked the API KEY itself in the screenshot's code... )

Do I miss something here?

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!