{"uid":"cap_MT811Mb6zgFQfAwnsP0nf","slug":"writerslogic-property-code-enforcement-violation-lookup-55196357","name":"WritersLogic Property Code-Enforcement Violation Lookup","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/property-violations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bbl":{"type":"string","pattern":"^[1-5][0-9]{9}$","description":"NYC borough-block-lot, 10 digits."},"bin":{"type":"string","pattern":"^[1-5][0-9]{6}$","description":"NYC building identification number, 7 digits."},"zip":{"type":"string","maxLength":10,"description":"ZIP code (informational; not used to widen a match)."},"city":{"type":"string","maxLength":60,"description":"City, when not inside address. For NYC a borough name (Brooklyn, Queens, ...) narrows the match."},"state":{"type":"string","maxLength":2,"description":"Two-letter state, when not inside address."},"address":{"type":"string","maxLength":200,"minLength":5,"description":"US street address with city and state, e.g. '447 21st Ave, San Francisco, CA 94121'. Give exactly one of address, bbl or bin."},"lookback_years":{"type":"integer","maximum":30,"minimum":1,"description":"Years of history to read (default 10)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MQwbIqQw82a7AOgsr7JDr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and analyzes city code-enforcement and building violation records for a US property address (or NYC BBL/BIN), returning normalized violations, distress indicators, and lien data.","exampleAgentPrompt":"Can you pull the code-enforcement violation history for 447 21st Ave, San Francisco, CA 94121 going back 5 years and tell me if there are any open or hazardous violations, and what the distress level is?","exampleUseCases":[{"title":"Pre-purchase due diligence on a home","prompt":"I'm thinking about buying a row house at 1247 N Damen Ave, Chicago, IL 60622 — can you check the last 10 years of city code-enforcement records and tell me if there are any open violations, hazardous citations, or lien sale listings I should know about?"},{"title":"Tenant screening a rental property","prompt":"Before I sign a lease at 320 Tremont St, Boston, MA 02116, can you look up any building violations or repeat citations on that address so I know if the landlord has a history of code issues?"},{"title":"NYC tax lien and DOB summons check","prompt":"Can you check the DOB and ECB summons history plus the DOF tax lien sale list for NYC BBL 1000477501 and give me the distress indicator and any open hazardous violations?"}],"resultDescription":"Returns a structured JSON response including: a list of normalized violation records (date opened, category, description, open/closed status, source severity class, record URL); deterministic counts grouped by status, category, and year; days since the most recent violation; the longest repeat-citation streak (citations within 90 days); a rule-based distress indicator (none/watch/elevated) with every rule, threshold, and value shown; and for NYC, DOB/ECB summons and DOF tax/water lien sale data by tax lot.","failureModes":["Unsupported city — returns rejection with the list of supported cities before any charge is applied","Address not found or unresolvable — normalization fails to match number, direction, street, and type","Invalid BBL or BIN format — schema pattern validation rejects malformed identifiers","Upstream city open-data API unavailable — may return partial results or a service error","lookback_years out of range (must be 1–30) — schema validation error returned"],"whenToPreferThis":"Use this endpoint when you need authoritative, city-sourced code-enforcement and building violation data for a specific US property in one of the eight supported cities (NYC, Chicago, SF, Seattle, Austin, LA, Philadelphia, Boston). It is superior to general web searches because it reads live open-data APIs directly, normalizes records deterministically, and applies a transparent rule-based distress scoring system. Prefer this over manual public-records lookups when you need machine-readable results with lien data, repeat-citation streaks, and structured risk indicators for real estate due diligence, insurance underwriting, or tenant screening.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:30:28.533Z","isFirstParty":false,"canonicalSlug":"writerslogic-property-code-enforcement-violation-lookup-55196357"}