Hi, I am consistently getting this message in RStudio: {“message”:“Invalid API key. Go to https:\/\/docs.rapidapi.com\/docs\/keys for more info.”}
I believe there may be an issue with the url link provided, as the same error is return when copy and pasting that link into a browser. Is there a different link that should be used?
아래에 의견을 추가하고 토론에 참여하세요.
Hi there,
Sorry for the late reply!
For this specific notation/request that you provided:
response <- VERB(“GET”, url, add_headers(x_rapidapikey = ‘my api key’, x_rapidapihost = ‘realty-mole-property-api.p.rapidapi.com’ ), query = queryString, content_type(“application/octet-stream”))
The header keys are not correct. They should be exactly “X-RapidAPI-Key” and “X-RapidAPI-Host”, and not “x_rapidapikey” and “x_rapidapihost” as you specified.
Additionally, our API is designed to returns JSON responses, so the Content Type should be “application/json”.
I hope this helps, but please llet me know if you’re still having any issues with making API requests.
If you look at our API documentation (https://rapidapi.com/realtymole/api/realty-mole-property-api), you will see ready-to-use code samples for many programming languages on the right side. I would suggest starting with those when building your your integration.
Kevin Willow
Realty Mole Support
Same error for me using globiflow/ workflow automation for podio. When I try it in zapier it works.
following - same error. I’m using R for context
I have inlcuded the API Key that I was assigned, and it still says that there is an error.
response <- VERB(“GET”, url, add_headers(x_rapidapikey = ‘my api key’, x_rapidapihost = ‘realty-mole-property-api.p.rapidapi.com’ ), query = queryString, content_type(“application/octet-stream”))
Is there an error with this notation?
Hi Kilaru,
It looks like you aren’t using the correct API key when you make API calls. The link https://docs.rapidapi.com/docs/keys will give you instructions on how to find your API key in your RapidAPI dashboard and how to use your API key when making requests. You basically just pass a header parameter “X-RapidAPI-Key” with your API key as the value.
Realty Mole Support