77trust / 100

Export

by PremiumPin in Documents & files

x402 APIPassing, checked 3 h ago

PremiumPin validated CSV export

POST https://api.premiumpin.com/x402/export

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
423 ms typical, 515 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.premiumpin.com/x402/export' \
  -H 'content-type: application/json' \
  --data-raw '{"fips":["01001"],"limit":1,"select":["fips","parcel_id"],"slots":{"year_built":1990}}'
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%2Fapi.premiumpin.com%2Fx402%2Fexport
const res = await pay("https://api.premiumpin.com/x402/export", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"fips\":[\"01001\"],\"limit\":1,\"select\":[\"fips\",\"parcel_id\"],\"slots\":{\"year_built\":1990}}",
});
console.log(await res.json());

Example input

{
  "fips": [
    "01001"
  ],
  "limit": 1,
  "select": [
    "fips",
    "parcel_id"
  ],
  "slots": {
    "year_built": 1990
  }
}

Example output

{
  "csv": "fips,parcel_id\n01001,SYNTHETIC-PARCEL\n",
  "receipt": {
    "emitted_rows": 1
  },
  "store_version": "example"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402510 ms$0.5
7 h agoPassed402587 ms$0.5
11 h agoPassed402503 ms$0.5
14 h agoPassed402478 ms$0.5
19 h agoPassed402403 ms$0.5
22 h agoPassed402462 ms$0.5
26 h agoPassed402423 ms$0.5
29 h agoPassed402410 ms$0.5
33 h agoPassed402419 ms$0.5
36 h agoPassed402477 ms$0.5
40 h agoPassed402505 ms$0.5
44 h agoPassed402515 ms$0.5
2 days agoPassed402413 ms$0.5
2 days agoPassed402399 ms$0.5
2 days agoPassed402402 ms$0.5