curl -X POST "https://plaza.fyi/api/v1/geocode/reverse" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"radius": 200
}'
const response = await fetch("https://plaza.fyi/api/v1/geocode/reverse", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"radius": 200
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://plaza.fyi/api/v1/geocode/reverse",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"radius": 200
},
)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
payload := "{\"radius\":200}"
req, err := http.NewRequest("POST", "https://plaza.fyi/api/v1/geocode/reverse", strings.NewReader(payload))
if err != nil {
panic(err)
}
req.Header.Set("X-API-Key", "YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}