Description

Rapid API, including https protocol, data is mainly obtained through https

https protocol

  • The domain name is: open.rapid-api.icu
  • Support http and https
  • Each interface needs to pass the user name and key to verify the interface permissions, whitelist ip to get data
Global request parameters
parameter description
secret User key, please contact our business staff
Global response structure
Field description
type Type status
date Data date (Default: Ymd)
Sample code

Provide Curl php examples, other languages can be implemented by themselves

# Curl php example
	
$url = "https://open.rapid-api.icu/Api";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
	'content-type: application/x-www-form-urlencoded',
	'token: secret',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'type=1&date='.date('Ymd'));
$cu = curl_exec($ch);
echo $cu;
curl_close($ch);

Sample code

Provide Curl POST examples, other languages can be implemented by themselves

# Curl POST example
curl -X POST "https://open.rapid-api.icu/Api" \
     -H "content-type: application/x-www-form-urlencoded" \
     -H "token: secret" \
     -d "type=1&date=$(date +%Y%m%d)"