75trust / 100
Epc Rating
by property.payapi.market in Markets & finance
x402 APIPassing, checked 4 h ago
UK Energy Performance Certificate (EPC) ratings by postcode.
POST https://property.payapi.market/epc-rating
Last 30 days
All checks passedSome failedAll failedNot checked
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 559 ms typical, 854 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
POST https://property.payapi.market/epc-rating
Each call costs $0.001 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://property.payapi.market/epc-rating
content-type: application/json
{
"limit": 20,
"postcode": "EC1A 1BB"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Max certificates to return. Defaults to 20. |
postcode | string | Yes | UK postcode. |
Example response
The provider's example. We can't check it without paying.
{
"average_band": "C",
"average_score": 71,
"band_distribution": {
"A": 0,
"B": 0,
"C": 1,
"D": 0,
"E": 0,
"F": 0,
"G": 0
},
"certificates": [
{
"address": "1 ST MARTIN'S LE GRAND, LONDON",
"current_band": "C",
"current_rating": 71,
"lodgement_date": "2023-04-12",
"potential_band": "B"
}
],
"postcode": "EC1A 1BB",
"total_found": 1
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.001.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://property.payapi.market/epc-rating' \
-H 'content-type: application/json' \
--data-raw '{"limit":20,"postcode":"EC1A 1BB"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://property.payapi.market/epc-rating' \
-H 'content-type: application/json' \
--data-raw '{"limit":20,"postcode":"EC1A 1BB"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.001 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.001" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.001 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fproperty.payapi.market%2Fepc-rating&method=POST
const res = await pay("https://property.payapi.market/epc-rating", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"limit": 20,
"postcode": "EC1A 1BB"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.001 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.001"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://property.payapi.market/epc-rating",
json={
"limit": 20,
"postcode": "EC1A 1BB",
},
)
print(res.status_code, res.text)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 | 822 ms | $0.001 |
| 8 h ago | Passed | 402 | 785 ms | $0.001 |
| 12 h ago | Passed | 402 | 937 ms | $0.001 |
| 16 h ago | Passed | 402 | 585 ms | $0.001 |
| 20 h ago | Passed | 402 | 479 ms | $0.001 |
| 24 h ago | Passed | 402 | 751 ms | $0.001 |
| 28 h ago | Passed | 402 | 559 ms | $0.001 |
| 31 h ago | Passed | 402 | 447 ms | $0.001 |
| 35 h ago | Passed | 402 | 623 ms | $0.001 |
| 38 h ago | Passed | 402 | 802 ms | $0.001 |
| 42 h ago | Passed | 402 | 453 ms | $0.001 |
| 45 h ago | Passed | 402 | 507 ms | $0.001 |
| 2 days ago | Passed | 402 | 540 ms | $0.001 |
| 2 days ago | Passed | 402 | 618 ms | $0.001 |
| 2 days ago | Passed | 402 | 854 ms | $0.001 |