78trust / 100
Tools Place Lookup
by energybilltoolkit.co.uk in Weather & location
x402 APIPassing, checked 4 h ago
Place Distance tool: Search for places by name — returns coordinates, population, country, and admin region.
POST https://energybilltoolkit.co.uk/places/api/tools/place-lookup
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 223 ms typical, 286 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://energybilltoolkit.co.uk/places/api/tools/place-lookup" \
-H "content-type: application/json" \
-d '{"name":"Edinburgh"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fenergybilltoolkit.co.uk%2Fplaces%2Fapi%2Ftools%2Fplace-lookup
const res = await pay("https://energybilltoolkit.co.uk/places/api/tools/place-lookup", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"name":"Edinburgh"}),
});
console.log(await res.json());Example input
{
"name": "Edinburgh"
}Example output
{
"match_count": 1,
"matches": [
{
"admin1": "SCT",
"admin2": null,
"country_code": "GB",
"feature_class": "P",
"latitude": 55.95206,
"longitude": -3.19648,
"name": "Edinburgh",
"population": 506520
}
],
"query": "Edinburgh"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 355 ms | $0.001 |
| 7 h ago | Passed | 402 | 239 ms | $0.001 |
| 10 h ago | Passed | 402 | 251 ms | $0.001 |
| 14 h ago | Passed | 402 | 187 ms | $0.001 |
| 18 h ago | Passed | 402 | 193 ms | $0.001 |
| 21 h ago | Passed | 402 | 227 ms | $0.001 |
| 25 h ago | Passed | 402 | 195 ms | $0.001 |
| 29 h ago | Passed | 402 | 223 ms | $0.001 |
| 32 h ago | Passed | 402 | 190 ms | $0.001 |
| 36 h ago | Passed | 402 | 201 ms | $0.001 |
| 40 h ago | Passed | 402 | 233 ms | $0.001 |
| 43 h ago | Passed | 402 | 286 ms | $0.001 |
| 2 days ago | Passed | 402 | 209 ms | $0.001 |