Using APIs in Rapid API


I want to use APIs which are provided by I have seen your example of openweather API and that is working fine for me. However in RapidAPI I dont get a single URL which can be used like open weather.

Below is Open weather URL:{{city}}&appid={{key}}

Can I get something like above from rapid API too, else what is the way to use it?

1 Like

Hey @Pranav,

Can you please share the CURL request of the API from Rapid API?

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, “GET”);
curl_easy_setopt(hnd, CURLOPT_URL, “”);

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, “x-rapidapi-host:”);
headers = curl_slist_append(headers, “x-rapidapi-key: b7130cd11emsh69c66e351fdc6a0p151e09jsne8a300fc200c”);
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

@Pratik above is from Veriphone API. In case you want to validate, you may check the API on their site.

1 Like

I’ve checked the veriphone API, API request you’ve provided doesn’t seem right though.

Can you please make sure you’ve selected Shell cURL from the dropdown menu, as shown in the screenshot below:

Thanks @Pratik , I was able to import the API into YM. Thanks for your help.

1 Like