Problem with rapidapi

I have this curl code:

At test point i get the following result


My code is this:

When i run my code a take the following response
image
Any help?

For this:
image

you used upper case letters in your web component headers, try all lower case.
image

For this:
image

Use dictionary blocks ?

My other thought is that rapid is expecting the call to come from a browser, you may need to include a user agent in your headers ?

This site may help with finding a suitable user-agent: Device Atlas

First of all thanks for your help. I don't know anything about agents but in a quick glimpse a saw that i have to choose an agent regarding the device which is not the case as it must run in all devices of course. Both your suggestions about lower case and dictionaries don't work.

Everything but RapidAPI

1 Like

No, you simply provide a user-agent, e.g. a desktop Chrome user-agent, this will work on all devices running the app.

Are you still getting the same response when using the dictionary to set the POSTText ?

What are the values for url, responseCode, responseType, responseContent ?

I still do. The values are on the screenshot.

I used the guidelines of "Using Web APIs with JSON" and the problem solved! Thanks a lot all of you

Please show your solution so that others may learn ...

Yes sure. You' re right. Sorry...

2 Likes