API & AGENTS
Pay per call with x402.
Absentee owners, active tax liens, and stacked distress for Wake, Durham, and Orange, plus Triangle surplus auctions. Quote the count for free, then pay 0.005 USDC on Base.
Quickstart
Check the count before spending USDC. Reflects historical county filing data. Not a real-time title search.
1. Quote for free
curl "https://api-triangle.com/api/v1/leads/quote?county=wake&distress=stacked"
2. Fetch the paid rows
Install x402-fetch and viem. X402_PRIVATE_KEY is the Base wallet that holds the USDC. The server charges 0.005 USDC (5000 atomic units) to 0xee61dc8ced520bfd384f8aa118aaf0d6c2614566.
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.X402_PRIVATE_KEY);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);
const paid = await fetchWithPayment(
"https://api-triangle.com/api/v1/leads?county=wake&distress=stacked"
);
console.log(await paid.json());
Endpoints
Paid calls without a payment return 402 and a PAYMENT-REQUIRED header. Subscription API keys and the request playground stay on /developers.
| Method | Path | Parameters | Price |
|---|---|---|---|
| GET | /api/public/stats | None | Free |
| GET | /api/v1/leads/quote | county, distress, min_lien, out_of_state, new_this_week, limit | Free |
| GET | /api/v1/leads | county: wake | durham | orange. distress: stacked | tax_lien | absentee. min_lien, out_of_state, new_this_week, limit (1–200) | 0.005 USDC |
| GET | /api/v1/surplus | q, category, place, radius, window, sources, min_bid, max_bid, limit | 0.005 USDC |
| GET | /api/v1/surplus/lots | q, place, sources, ending, sort, min_bid, max_bid, limit | 0.005 USDC |