Within Operation
curl --request POST \
--url https://api.iklim.co/v1/lightnings/within \
--header 'Content-Type: application/json' \
--data '
{
"latitude": 39.869847,
"longitude": 32.745468,
"radius": 1000,
"backwardInterval": 600,
"endTimeEpoch": 1746454091000,
"pageNumber": 0,
"pageSize": 10
}
'import requests
url = "https://api.iklim.co/v1/lightnings/within"
payload = {
"latitude": 39.869847,
"longitude": 32.745468,
"radius": 1000,
"backwardInterval": 600,
"endTimeEpoch": 1746454091000,
"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({
latitude: 39.869847,
longitude: 32.745468,
radius: 1000,
backwardInterval: 600,
endTimeEpoch: 1746454091000,
pageNumber: 0,
pageSize: 10
})
};
fetch('https://api.iklim.co/v1/lightnings/within', 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/lightnings/within",
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([
'latitude' => 39.869847,
'longitude' => 32.745468,
'radius' => 1000,
'backwardInterval' => 600,
'endTimeEpoch' => 1746454091000,
'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/lightnings/within"
payload := strings.NewReader("{\n \"latitude\": 39.869847,\n \"longitude\": 32.745468,\n \"radius\": 1000,\n \"backwardInterval\": 600,\n \"endTimeEpoch\": 1746454091000,\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/lightnings/within")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 39.869847,\n \"longitude\": 32.745468,\n \"radius\": 1000,\n \"backwardInterval\": 600,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/lightnings/within")
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 \"latitude\": 39.869847,\n \"longitude\": 32.745468,\n \"radius\": 1000,\n \"backwardInterval\": 600,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 10\n}"
response = http.request(request)
puts response.read_body{
"lightnings": [],
"totalRecords": 1000,
"pageNumber": 0,
"pageSize": 10
}Within Operation
Query Lightnings Within Given Point and Radius. Maximum backward interval is 30 days, maximum radius is 50 km.
POST
/
v1
/
lightnings
/
within
Within Operation
curl --request POST \
--url https://api.iklim.co/v1/lightnings/within \
--header 'Content-Type: application/json' \
--data '
{
"latitude": 39.869847,
"longitude": 32.745468,
"radius": 1000,
"backwardInterval": 600,
"endTimeEpoch": 1746454091000,
"pageNumber": 0,
"pageSize": 10
}
'import requests
url = "https://api.iklim.co/v1/lightnings/within"
payload = {
"latitude": 39.869847,
"longitude": 32.745468,
"radius": 1000,
"backwardInterval": 600,
"endTimeEpoch": 1746454091000,
"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({
latitude: 39.869847,
longitude: 32.745468,
radius: 1000,
backwardInterval: 600,
endTimeEpoch: 1746454091000,
pageNumber: 0,
pageSize: 10
})
};
fetch('https://api.iklim.co/v1/lightnings/within', 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/lightnings/within",
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([
'latitude' => 39.869847,
'longitude' => 32.745468,
'radius' => 1000,
'backwardInterval' => 600,
'endTimeEpoch' => 1746454091000,
'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/lightnings/within"
payload := strings.NewReader("{\n \"latitude\": 39.869847,\n \"longitude\": 32.745468,\n \"radius\": 1000,\n \"backwardInterval\": 600,\n \"endTimeEpoch\": 1746454091000,\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/lightnings/within")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 39.869847,\n \"longitude\": 32.745468,\n \"radius\": 1000,\n \"backwardInterval\": 600,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/lightnings/within")
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 \"latitude\": 39.869847,\n \"longitude\": 32.745468,\n \"radius\": 1000,\n \"backwardInterval\": 600,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 10\n}"
response = http.request(request)
puts response.read_body{
"lightnings": [],
"totalRecords": 1000,
"pageNumber": 0,
"pageSize": 10
}Body
application/json
Latitude in decimal degrees
Required range:
-90 <= x <= 90Example:
39.869847
Longitude in decimal degrees
Required range:
-180 <= x <= 180Example:
32.745468
Radius in meters
Required range:
0 <= x <= 50000Example:
1000
Backward Interval in seconds
Required range:
60 <= x <= 2592000Example:
600
End time in Epoch milliseconds
Required range:
x >= 0Example:
1746454091000
Page number
Required range:
x >= 0Example:
0
Page size
Required range:
x <= 100Example:
10
Response
Lightnings Found Within Given Point and Radius. This Response is Paged.
⌘I