{"openapi":"3.1.0","info":{"title":"api-triangle","version":"1.0.0","description":"Historical deed and assessor snapshots for Wake, Durham, and Orange, plus off-market lead and surplus calls. Each exact paid URL is 0.005 USDC on Base (5000 atomic units), or a county API key on the record routes. Call GET /api/v1/leads/quote before paying for leads. Responses include data_provenance and are not a title search.","x-guidance":"Call GET /api/v1/leads/quote before GET /api/v1/leads. County record routes are GET /api/v1/{county}/{deeds|assessor|filings} for wake, durham, or orange. Assessor rows carry tax-lien flags. Query limit, offset, and since are optional. A new query string is a new payment.","contact":{"url":"https://api-triangle.com","email":"owner@api-triangle.com"}},"servers":[{"url":"https://api-triangle.com"}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Health check","security":[],"responses":{"200":{"description":"Process is up","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}}}}},"/api/v1":{"get":{"operationId":"catalog","summary":"Free catalog of counties, datasets, and the USDC price","security":[],"responses":{"200":{"description":"Catalog","content":{"application/json":{"schema":{"type":"object","properties":{"counties":{"type":"array","items":{"type":"object"}},"datasets":{"type":"array","items":{"type":"string"}},"amount":{"type":"string"}},"required":["counties","datasets","amount"]}}}}}}},"/api/public/stats":{"get":{"operationId":"publicLeadStats","summary":"Free counts of active tax liens and absentee owners","description":"Public totals for Wake, Durham, and Orange. No owner names, addresses, or payment.","security":[],"responses":{"200":{"description":"Lead totals and the latest capture time","content":{"application/json":{"schema":{"type":"object","properties":{"active_tax_liens":{"type":"integer"},"absentee_owners":{"type":"integer"},"last_updated":{"type":["string","null"],"format":"date-time"}},"required":["active_tax_liens","absentee_owners","last_updated"]}}}}}}},"/api/v1/leads/quote":{"get":{"operationId":"quoteTriangleLeads","summary":"Free count and x402 price before paying for leads","description":"Counts records that match the same filters as GET /api/v1/leads. Returns the match count, last refresh time, and price_usdc. Does not return owner names or property addresses. price_usdc is 0.005, taken from the same USDC atomic amount the paid call charges.","security":[],"parameters":[{"name":"county","in":"query","required":false,"description":"Triangle county. Omit to search Wake, Durham, and Orange together. wake, durham, and orange are the only values.","schema":{"type":"string","enum":["wake","durham","orange"]}},{"name":"distress","in":"query","required":false,"description":"stacked means an absentee owner and an active tax lien. tax_lien means any active tax lien, including stacked rows. absentee means any absentee owner, including stacked rows. Omit to return rows that have either signal.","schema":{"type":"string","enum":["stacked","tax_lien","absentee"]}},{"name":"min_lien","in":"query","required":false,"description":"Minimum tax delinquency in US dollars. Example: 1000 keeps rows owing at least $1,000.","schema":{"type":"number","exclusiveMinimum":0}},{"name":"out_of_state","in":"query","required":false,"description":"When true, keep absentee owners whose mailing state is outside North Carolina.","schema":{"type":"boolean"}},{"name":"new_this_week","in":"query","required":false,"description":"When true, keep rows first stored in the last 7 days or whose lien amount changed in that window.","schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Page size for the paid leads call. Default 100, maximum 200. The quote count ignores limit and reports every match.","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}}],"responses":{"200":{"description":"Match count and the price of the paid fetch","content":{"application/json":{"schema":{"type":"object","properties":{"matching_records":{"type":"integer","description":"Rows matching the filters. limit does not reduce this number."},"last_updated":{"type":["string","null"],"format":"date-time"},"payment_protocol":{"type":"string","const":"x402"},"price_usdc":{"type":"string","description":"USDC charged for one paid call, as a decimal string."},"fetch_url":{"type":"string","description":"Paid URL with the same filters."}},"required":["matching_records","last_updated","payment_protocol","price_usdc","fetch_url"]}}}},"400":{"description":"A filter value is not in the allowed set"}}}},"/api/v1/leads":{"get":{"operationId":"fetchTriangleLeads","summary":"Paid off-market leads for Wake, Durham, and Orange","description":"Absentee owners, active tax liens, and stacked distress (both). One call costs 0.005 USDC on Base via x402. Unpaid calls return 402 and a PAYMENT-REQUIRED header. A subscription API key can be sent as X-API-Key instead of a payment. Call GET /api/v1/leads/quote first.","parameters":[{"name":"county","in":"query","required":false,"description":"Triangle county. Omit to search Wake, Durham, and Orange together. wake, durham, and orange are the only values.","schema":{"type":"string","enum":["wake","durham","orange"]}},{"name":"distress","in":"query","required":false,"description":"stacked means an absentee owner and an active tax lien. tax_lien means any active tax lien, including stacked rows. absentee means any absentee owner, including stacked rows. Omit to return rows that have either signal.","schema":{"type":"string","enum":["stacked","tax_lien","absentee"]}},{"name":"min_lien","in":"query","required":false,"description":"Minimum tax delinquency in US dollars. Example: 1000 keeps rows owing at least $1,000.","schema":{"type":"number","exclusiveMinimum":0}},{"name":"out_of_state","in":"query","required":false,"description":"When true, keep absentee owners whose mailing state is outside North Carolina.","schema":{"type":"boolean"}},{"name":"new_this_week","in":"query","required":false,"description":"When true, keep rows first stored in the last 7 days or whose lien amount changed in that window.","schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Page size for the paid leads call. Default 100, maximum 200. The quote count ignores limit and reports every match.","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"JSON page. No HTML.","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required. This URL costs 0.005 USDC on Base. Retry with the PAYMENT-SIGNATURE header. The PAYMENT-REQUIRED response header is the base64 form of the JSON body.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}}}}},"/api/v1/surplus":{"get":{"operationId":"searchTriangleSurplus","summary":"Paid Triangle municipal surplus auctions","description":"GovDeals, PublicSurplus, and NC State Surplus listings around the Triangle. One call costs 0.005 USDC on Base via x402, unless the caller has a Surplus Scout session. Unpaid anonymous calls return 402.","parameters":[{"name":"q","in":"query","required":false,"description":"Title or seller text, up to 120 characters.","schema":{"type":"string","maxLength":120}},{"name":"category","in":"query","required":false,"description":"Listing category.","schema":{"type":"string","enum":["Vehicles","Heavy Equipment","Tools","Building Materials","Land","IT","Other"]}},{"name":"place","in":"query","required":false,"description":"City or county slug.","schema":{"type":"string","enum":["wake","durham","orange","raleigh","cary","apex","holly_springs","garner","wake_forest","morrisville","chapel_hill","carrboro","hillsborough"]}},{"name":"radius","in":"query","required":false,"description":"Miles from downtown Raleigh. Default covers the wider feed.","schema":{"type":"number"}},{"name":"window","in":"query","required":false,"description":"Close or freshness window.","schema":{"type":"string","enum":["today","week","new"]}},{"name":"sources","in":"query","required":false,"description":"Comma-separated source ids. Tokens: govdeals, publicsurplus, nc_state.","schema":{"type":"string"}},{"name":"min_bid","in":"query","required":false,"description":"Minimum current bid in dollars.","schema":{"type":"number","minimum":0}},{"name":"max_bid","in":"query","required":false,"description":"Maximum current bid in dollars.","schema":{"type":"number","minimum":0}},{"name":"limit","in":"query","required":false,"description":"Page size.","schema":{"type":"integer","minimum":1}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"JSON page. No HTML.","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required. This URL costs 0.005 USDC on Base. Retry with the PAYMENT-SIGNATURE header. The PAYMENT-REQUIRED response header is the base64 form of the JSON body.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}}}}},"/api/v1/surplus/lots":{"get":{"operationId":"searchTriangleSurplusLots","summary":"Paid Triangle surplus auction lots","description":"Lot-level surplus search used by the surplus desk: GovDeals, Triangle Liquidators, NC State Surplus, Ritchie Bros in Butner, HiBid, PublicSurplus, GovPlanet, and PropertyRoom. One call costs 0.005 USDC on Base via x402. Unpaid anonymous calls return 402.","parameters":[{"name":"q","in":"query","required":false,"description":"Words matched against title, description, category, and pickup location.","schema":{"type":"string","maxLength":120}},{"name":"place","in":"query","required":false,"description":"Pickup area slug.","schema":{"type":"string","enum":["wake","durham","orange","raleigh","cary","apex","holly_springs","garner","wake_forest","morrisville","chapel_hill","carrboro","hillsborough","butner","johnston","chatham","granville","person","franklin","alamance"]}},{"name":"sources","in":"query","required":false,"description":"Comma-separated lot source ids. Tokens: govdeals, triangle_liquidators, nc_state_surplus, ritchie_bros_butner, public_surplus, govplanet, property_room, hibid_local.","schema":{"type":"string"}},{"name":"ending","in":"query","required":false,"description":"Lots closing inside this window.","schema":{"type":"string","enum":["24h","48h","7d","all"]}},{"name":"sort","in":"query","required":false,"description":"Sort order. Default is closing soonest.","schema":{"type":"string","enum":["closing","total_asc","total_desc","newest","deal"]}},{"name":"min_bid","in":"query","required":false,"description":"Minimum current bid in dollars.","schema":{"type":"number","minimum":0}},{"name":"max_bid","in":"query","required":false,"description":"Maximum current bid in dollars.","schema":{"type":"number","minimum":0}},{"name":"limit","in":"query","required":false,"description":"Page size.","schema":{"type":"integer","minimum":1}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"JSON page. No HTML.","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required. This URL costs 0.005 USDC on Base. Retry with the PAYMENT-SIGNATURE header. The PAYMENT-REQUIRED response header is the base64 form of the JSON body.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}}}}},"/api/v1/wake/deeds":{"get":{"operationId":"wake_deeds","summary":"Wake Recorded deeds","description":"Recorded deeds for one Research Triangle county.","tags":["Wake"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/wake/assessor":{"get":{"operationId":"wake_assessor","summary":"Wake Assessor parcels","description":"Assessor parcels for one Research Triangle county. Rows include has_active_tax_lien and lien_amount when a county lien file matches the parcel.","tags":["Wake"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/wake/filings":{"get":{"operationId":"wake_filings","summary":"Wake Clerk filings","description":"Clerk filings for one Research Triangle county. The route returns rows only after that county clerk feed is configured.","tags":["Wake"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/durham/deeds":{"get":{"operationId":"durham_deeds","summary":"Durham Recorded deeds","description":"Recorded deeds for one Research Triangle county.","tags":["Durham"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/durham/assessor":{"get":{"operationId":"durham_assessor","summary":"Durham Assessor parcels","description":"Assessor parcels for one Research Triangle county. Rows include has_active_tax_lien and lien_amount when a county lien file matches the parcel.","tags":["Durham"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/durham/filings":{"get":{"operationId":"durham_filings","summary":"Durham Clerk filings","description":"Clerk filings for one Research Triangle county. The route returns rows only after that county clerk feed is configured.","tags":["Durham"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/orange/deeds":{"get":{"operationId":"orange_deeds","summary":"Orange Recorded deeds","description":"Recorded deeds for one Research Triangle county.","tags":["Orange"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/orange/assessor":{"get":{"operationId":"orange_assessor","summary":"Orange Assessor parcels","description":"Assessor parcels for one Research Triangle county. Rows include has_active_tax_lien and lien_amount when a county lien file matches the parcel.","tags":["Orange"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}},"/api/v1/orange/filings":{"get":{"operationId":"orange_filings","summary":"Orange Clerk filings","description":"Clerk filings for one Research Triangle county. The route returns rows only after that county clerk feed is configured.","tags":["Orange"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO recording date."}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"A page of normalized records","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string"},"county":{"type":"string"},"fips":{"type":"string"},"record_type":{"type":"string"},"total":{"type":"integer"},"offset":{"type":"integer"},"limit":{"type":"integer"},"count":{"type":"integer"},"data":{"type":"array","items":{"type":"object"}}},"required":["schema_version","county","data"]}}}},"402":{"description":"Payment required"}}}}},"components":{"schemas":{"PaymentRequired":{"type":"object","description":"x402 challenge. The same JSON is base64-encoded in the PAYMENT-REQUIRED response header.","properties":{"x402Version":{"type":"integer","const":2},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"}}},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","const":"exact"},"network":{"type":"string","const":"eip155:8453","description":"Base mainnet."},"amount":{"type":"string","description":"USDC atomic units (6 decimals)."},"asset":{"type":"string","description":"USDC contract on Base."},"payTo":{"type":"string"}},"required":["scheme","network","amount","asset","payTo"]}}},"required":["x402Version","accepts"]}}}}