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

WhenResultHTTPTimePrice
4 h agoPassed402355 ms$0.001
7 h agoPassed402239 ms$0.001
10 h agoPassed402251 ms$0.001
14 h agoPassed402187 ms$0.001
18 h agoPassed402193 ms$0.001
21 h agoPassed402227 ms$0.001
25 h agoPassed402195 ms$0.001
29 h agoPassed402223 ms$0.001
32 h agoPassed402190 ms$0.001
36 h agoPassed402201 ms$0.001
40 h agoPassed402233 ms$0.001
43 h agoPassed402286 ms$0.001
2 days agoPassed402209 ms$0.001