curl --request POST \
--url https://api.iklim.co/v1/precipitations/page \
--header 'Content-Type: application/json' \
--data '
{
"backwardInterval": 3600,
"endTimeEpoch": 1646374400000,
"intensityThreshold": "MODERATE",
"pageNumber": 0,
"pageSize": 10
}
'import requests
url = "https://api.iklim.co/v1/precipitations/page"
payload = {
"backwardInterval": 3600,
"endTimeEpoch": 1646374400000,
"intensityThreshold": "MODERATE",
"pageNumber": 0,
"pageSize": 10
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
backwardInterval: 3600,
endTimeEpoch: 1646374400000,
intensityThreshold: 'MODERATE',
pageNumber: 0,
pageSize: 10
})
};
fetch('https://api.iklim.co/v1/precipitations/page', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/precipitations/page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'backwardInterval' => 3600,
'endTimeEpoch' => 1646374400000,
'intensityThreshold' => 'MODERATE',
'pageNumber' => 0,
'pageSize' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/precipitations/page"
payload := strings.NewReader("{\n \"backwardInterval\": 3600,\n \"endTimeEpoch\": 1646374400000,\n \"intensityThreshold\": \"MODERATE\",\n \"pageNumber\": 0,\n \"pageSize\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/precipitations/page")
.header("Content-Type", "application/json")
.body("{\n \"backwardInterval\": 3600,\n \"endTimeEpoch\": 1646374400000,\n \"intensityThreshold\": \"MODERATE\",\n \"pageNumber\": 0,\n \"pageSize\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/precipitations/page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"backwardInterval\": 3600,\n \"endTimeEpoch\": 1646374400000,\n \"intensityThreshold\": \"MODERATE\",\n \"pageNumber\": 0,\n \"pageSize\": 10\n}"
response = http.request(request)
puts response.read_body{
"precipitations": [
{
"eventId": "6932e0b4d4a02eb8afdf2951",
"radarTimeStamp": 1646374400000,
"forecast": false,
"intensity": "MODERATE"
}
],
"queryTimestamp": 123,
"totalRecords": 123,
"pageNumber": 0,
"pageSize": 10
}Page Operation
Retrieves a paginated list of precipitation records within the subscription’s geographic boundaries for a specified time range.
curl --request POST \
--url https://api.iklim.co/v1/precipitations/page \
--header 'Content-Type: application/json' \
--data '
{
"backwardInterval": 3600,
"endTimeEpoch": 1646374400000,
"intensityThreshold": "MODERATE",
"pageNumber": 0,
"pageSize": 10
}
'import requests
url = "https://api.iklim.co/v1/precipitations/page"
payload = {
"backwardInterval": 3600,
"endTimeEpoch": 1646374400000,
"intensityThreshold": "MODERATE",
"pageNumber": 0,
"pageSize": 10
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
backwardInterval: 3600,
endTimeEpoch: 1646374400000,
intensityThreshold: 'MODERATE',
pageNumber: 0,
pageSize: 10
})
};
fetch('https://api.iklim.co/v1/precipitations/page', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/precipitations/page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'backwardInterval' => 3600,
'endTimeEpoch' => 1646374400000,
'intensityThreshold' => 'MODERATE',
'pageNumber' => 0,
'pageSize' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/precipitations/page"
payload := strings.NewReader("{\n \"backwardInterval\": 3600,\n \"endTimeEpoch\": 1646374400000,\n \"intensityThreshold\": \"MODERATE\",\n \"pageNumber\": 0,\n \"pageSize\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/precipitations/page")
.header("Content-Type", "application/json")
.body("{\n \"backwardInterval\": 3600,\n \"endTimeEpoch\": 1646374400000,\n \"intensityThreshold\": \"MODERATE\",\n \"pageNumber\": 0,\n \"pageSize\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/precipitations/page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"backwardInterval\": 3600,\n \"endTimeEpoch\": 1646374400000,\n \"intensityThreshold\": \"MODERATE\",\n \"pageNumber\": 0,\n \"pageSize\": 10\n}"
response = http.request(request)
puts response.read_body{
"precipitations": [
{
"eventId": "6932e0b4d4a02eb8afdf2951",
"radarTimeStamp": 1646374400000,
"forecast": false,
"intensity": "MODERATE"
}
],
"queryTimestamp": 123,
"totalRecords": 123,
"pageNumber": 0,
"pageSize": 10
}Body
Backward interval in seconds counting back from the end time. Maximum 5 days.
60 <= x <= 4320003600
Query end time in Epoch milliseconds.
x >= 01646374400000
Precipitation intensity threshold for filtering results.
DRIZZLE, LIGHT, MODERATE, HEAVY, VERY_HEAVY, EXTREME "MODERATE"
Zero-based page number to fetch from the paged results.
x >= 00
Number of results returned per page.
x <= 10010
Response
Returns a paginated list of precipitation records matching the subscription's geographic boundaries and the specified time range, along with total record count, query timestamp, and current page information.
List of precipitation records matching the query.
Show child attributes
Show child attributes
The timestamp when the query was executed, in Epoch milliseconds.
Total number of records found for the given query.
The current page number of the paginated response.
0
The number of records returned per page.
10