{"uid":"cap_haEW3PETyFmqBT8LBIuF7","slug":"saylor-innovations-data-desk-san-francisco-311-cases-c4c3a2ee","name":"Saylor Innovations Data Desk – San Francisco 311 Cases","description":"San Francisco 311 cases by service type and neighborhood - the newest cases with status, agency and location plus the top services in the window","url":"https://saylorinnovations.com/api/city/sf-311?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"days":{"type":"string","description":"optional 1-60, default 7"},"limit":{"type":"string","description":"optional 1-50, default 10"},"service":{"type":"string","description":"optional service text such as graffiti, street, noise"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["filters","recent"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"recent":{"type":"array","items":{"type":"object","properties":{"lat":{"description":"Latitude in decimal degrees"},"lon":{"description":"Longitude in decimal degrees"},"notes":{"type":["string","null"],"description":"Status notes"},"agency":{"type":["string","null"],"description":"Responsible agency"},"opened":{"type":["string","null"],"description":"When the case was opened (UTC)"},"status":{"description":"Current status"},"address":{"description":"Account or contract address"},"service":{"description":"Service name"},"subtype":{"type":["string","null"],"description":"Case subtype"},"neighborhood":{"type":["string","null"],"description":"Neighbourhood"},"source_channel":{"description":"Source channel"}}},"description":"Most recent matching cases with opened time, service name, status, neighbourhood and address"},"source":{"type":"string","description":"Data source the values come from"},"filters":{"type":"object","properties":{"days":{"type":["number","null"],"description":"Number of days"},"service":{"type":["string","null"],"description":"Service name"},"neighborhood":{"description":"Neighbourhood filter applied"}},"description":"Filters applied to this query"},"top_services":{"type":"array","description":"Top services"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kINATSxkOWY-BJBGHqZ0w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the most recent San Francisco 311 service cases filtered by type and/or time window, including status, agency, neighborhood, and location, plus a summary of top service categories.","exampleAgentPrompt":"Pull the 20 most recent SF 311 graffiti cases from the last 14 days — I want to see the status, responsible agency, neighborhood, and location for each.","exampleUseCases":[{"title":"Neighborhood blight monitoring","prompt":"Show me the 15 most recent 311 complaints related to graffiti in San Francisco over the past 30 days, with neighborhood and status for each."},{"title":"City service trends dashboard","prompt":"What are the most common 311 service types reported in San Francisco in the last 7 days? Give me the top categories and a sample of recent cases."},{"title":"Noise complaint tracking","prompt":"Pull the latest 10 noise-related 311 cases filed in SF this week — I need the address, agency handling it, and current status for each one."}],"resultDescription":"A JSON object containing: a list of recent 311 case records (each with opened timestamp, service name, subtype, status, responsible agency, neighborhood, address, latitude/longitude, source channel, and notes), a filters object showing what was applied (days, service keyword), a ranked list of top service types in the window, and a data source attribution note.","failureModes":["Invalid days value (outside 1-60 range) may return an error or default behavior","No matching cases for a very specific service keyword returns an empty recent array","Service may return stale data if upstream SF 311 feed is delayed","Limit values outside 1-50 may be clamped or rejected","Network or payment (x402) failure prevents response entirely"],"whenToPreferThis":"Choose this endpoint when you need real-time, filterable access to San Francisco 311 case data — especially when you want to combine recent individual case records with aggregate top-service statistics in a single call. Prefer it over raw SF open data portals when you want a clean, pre-filtered JSON response ready for agent consumption without parsing raw CSVs or managing pagination.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:34.934Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-data-desk-san-francisco-311-cases-c4c3a2ee"}