{
  "x402Version": 2,
  "id": 72305,
  "slug": "saylorinnovations-api-city-sf-311",
  "resource": "https://saylorinnovations.com/api/city/sf-311",
  "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",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "filters": {
        "type": "object",
        "properties": {
          "neighborhood": {
            "description": "Neighbourhood filter applied"
          },
          "days": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of days"
          },
          "service": {
            "type": [
              "string",
              "null"
            ],
            "description": "Service name"
          }
        },
        "description": "Filters applied to this query"
      },
      "top_services": {
        "type": "array",
        "description": "Top services"
      },
      "recent": {
        "type": "array",
        "description": "Most recent matching cases with opened time, service name, status, neighbourhood and address",
        "items": {
          "type": "object",
          "properties": {
            "opened": {
              "description": "When the case was opened (UTC)",
              "type": [
                "string",
                "null"
              ]
            },
            "subtype": {
              "description": "Case subtype",
              "type": [
                "string",
                "null"
              ]
            },
            "agency": {
              "description": "Responsible agency",
              "type": [
                "string",
                "null"
              ]
            },
            "neighborhood": {
              "description": "Neighbourhood",
              "type": [
                "string",
                "null"
              ]
            },
            "notes": {
              "description": "Status notes",
              "type": [
                "string",
                "null"
              ]
            },
            "service": {
              "description": "Service name"
            },
            "status": {
              "description": "Current status"
            },
            "address": {
              "description": "Account or contract address"
            },
            "lat": {
              "description": "Latitude in decimal degrees"
            },
            "lon": {
              "description": "Longitude in decimal degrees"
            },
            "source_channel": {
              "description": "Source channel"
            }
          }
        }
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "filters",
      "recent"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "days": "7",
            "limit": "5",
            "service": "graffiti"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "filters": {
              "days": 7,
              "service": "graffiti",
              "neighborhood": null
            },
            "top_services": [
              {
                "service": "Graffiti Public",
                "cases": 1090
              },
              {
                "service": "Graffiti Private",
                "cases": 361
              }
            ],
            "recent": [
              {
                "opened": "2026-10-16T02:39:29.000Z",
                "service": "Graffiti Public",
                "subtype": "offensive",
                "status": "Open",
                "agency": "PW - Street and Environmental Services",
                "neighborhood": "Potrero Hill",
                "address": "611 PENNSYLVANIA AVE, SAN FRANCISCO, CA 94107, US",
                "notes": "open",
                "lat": 37.758829023386866,
                "lon": -122.39286748453826,
                "source_channel": "Mobile"
              },
              {
                "opened": "2026-10-16T00:35:59.000Z",
                "service": "Graffiti Private",
                "subtype": "not_offensive",
                "status": "Open",
                "agency": "PW - Street and Environmental Services",
                "neighborhood": "Twin Peaks",
                "address": "335 LAGUNA HONDA BLVD, Virtual, SAN FRANCISCO, CA 94116, US",
                "notes": "open",
                "lat": 37.74843133,
                "lon": -122.45889124,
                "source_channel": "Web"
              },
              {
                "opened": "2026-10-16T00:21:58.000Z",
                "service": "Graffiti Public",
                "subtype": "not_offensive",
                "status": "Open",
                "agency": "PW - Street and Environmental Services",
                "neighborhood": "Hayes Valley",
                "address": "497 GROVE ST, Virtual, SAN FRANCISCO, CA 94102, US",
                "notes": "open",
                "lat": 37.77754196,
                "lon": -122.42462694,
                "source_channel": "Web"
              }
            ],
            "note": "San Francisco 311 cases (street cleaning, graffiti, encampments, noise, potholes) from DataSF; top_services counts all matching cases in the window.",
            "source": "DataSF"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "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"
                  }
                }
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "filters": {
                    "type": "object",
                    "properties": {
                      "neighborhood": {
                        "description": "Neighbourhood filter applied"
                      },
                      "days": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Number of days"
                      },
                      "service": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Service name"
                      }
                    },
                    "description": "Filters applied to this query"
                  },
                  "top_services": {
                    "type": "array",
                    "description": "Top services"
                  },
                  "recent": {
                    "type": "array",
                    "description": "Most recent matching cases with opened time, service name, status, neighbourhood and address",
                    "items": {
                      "type": "object",
                      "properties": {
                        "opened": {
                          "description": "When the case was opened (UTC)",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "subtype": {
                          "description": "Case subtype",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "agency": {
                          "description": "Responsible agency",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "neighborhood": {
                          "description": "Neighbourhood",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notes": {
                          "description": "Status notes",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "service": {
                          "description": "Service name"
                        },
                        "status": {
                          "description": "Current status"
                        },
                        "address": {
                          "description": "Account or contract address"
                        },
                        "lat": {
                          "description": "Latitude in decimal degrees"
                        },
                        "lon": {
                          "description": "Longitude in decimal degrees"
                        },
                        "source_channel": {
                          "description": "Source channel"
                        }
                      }
                    }
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "filters",
                  "recent"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "san francisco 311 requests",
    "graffiti reports in the mission",
    "sf street cleaning complaints",
    "top 311 services in san",
    "tenderloin 311 cases this week"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.878Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "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"
        }
      },
      "required": []
    },
    "exampleResponse": {
      "filters": {
        "days": 7,
        "service": "graffiti",
        "neighborhood": null
      },
      "top_services": [
        {
          "service": "Graffiti Public",
          "cases": 1090
        },
        {
          "service": "Graffiti Private",
          "cases": 361
        }
      ],
      "recent": [
        {
          "opened": "2026-10-16T02:39:29.000Z",
          "service": "Graffiti Public",
          "subtype": "offensive",
          "status": "Open",
          "agency": "PW - Street and Environmental Services",
          "neighborhood": "Potrero Hill",
          "address": "611 PENNSYLVANIA AVE, SAN FRANCISCO, CA 94107, US",
          "notes": "open",
          "lat": 37.758829023386866,
          "lon": -122.39286748453826,
          "source_channel": "Mobile"
        },
        {
          "opened": "2026-10-16T00:35:59.000Z",
          "service": "Graffiti Private",
          "subtype": "not_offensive",
          "status": "Open",
          "agency": "PW - Street and Environmental Services",
          "neighborhood": "Twin Peaks",
          "address": "335 LAGUNA HONDA BLVD, Virtual, SAN FRANCISCO, CA 94116, US",
          "notes": "open",
          "lat": 37.74843133,
          "lon": -122.45889124,
          "source_channel": "Web"
        },
        {
          "opened": "2026-10-16T00:21:58.000Z",
          "service": "Graffiti Public",
          "subtype": "not_offensive",
          "status": "Open",
          "agency": "PW - Street and Environmental Services",
          "neighborhood": "Hayes Valley",
          "address": "497 GROVE ST, Virtual, SAN FRANCISCO, CA 94102, US",
          "notes": "open",
          "lat": 37.77754196,
          "lon": -122.42462694,
          "source_channel": "Web"
        }
      ],
      "note": "San Francisco 311 cases (street cleaning, graffiti, encampments, noise, potholes) from DataSF; top_services counts all matching cases in the window.",
      "source": "DataSF"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "days": "7",
              "limit": "5",
              "service": "graffiti"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "filters": {
                "days": 7,
                "service": "graffiti",
                "neighborhood": null
              },
              "top_services": [
                {
                  "service": "Graffiti Public",
                  "cases": 1090
                },
                {
                  "service": "Graffiti Private",
                  "cases": 361
                }
              ],
              "recent": [
                {
                  "opened": "2026-10-16T02:39:29.000Z",
                  "service": "Graffiti Public",
                  "subtype": "offensive",
                  "status": "Open",
                  "agency": "PW - Street and Environmental Services",
                  "neighborhood": "Potrero Hill",
                  "address": "611 PENNSYLVANIA AVE, SAN FRANCISCO, CA 94107, US",
                  "notes": "open",
                  "lat": 37.758829023386866,
                  "lon": -122.39286748453826,
                  "source_channel": "Mobile"
                },
                {
                  "opened": "2026-10-16T00:35:59.000Z",
                  "service": "Graffiti Private",
                  "subtype": "not_offensive",
                  "status": "Open",
                  "agency": "PW - Street and Environmental Services",
                  "neighborhood": "Twin Peaks",
                  "address": "335 LAGUNA HONDA BLVD, Virtual, SAN FRANCISCO, CA 94116, US",
                  "notes": "open",
                  "lat": 37.74843133,
                  "lon": -122.45889124,
                  "source_channel": "Web"
                },
                {
                  "opened": "2026-10-16T00:21:58.000Z",
                  "service": "Graffiti Public",
                  "subtype": "not_offensive",
                  "status": "Open",
                  "agency": "PW - Street and Environmental Services",
                  "neighborhood": "Hayes Valley",
                  "address": "497 GROVE ST, Virtual, SAN FRANCISCO, CA 94102, US",
                  "notes": "open",
                  "lat": 37.77754196,
                  "lon": -122.42462694,
                  "source_channel": "Web"
                }
              ],
              "note": "San Francisco 311 cases (street cleaning, graffiti, encampments, noise, potholes) from DataSF; top_services counts all matching cases in the window.",
              "source": "DataSF"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "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"
                    }
                  }
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "filters": {
                      "type": "object",
                      "properties": {
                        "neighborhood": {
                          "description": "Neighbourhood filter applied"
                        },
                        "days": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Number of days"
                        },
                        "service": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Service name"
                        }
                      },
                      "description": "Filters applied to this query"
                    },
                    "top_services": {
                      "type": "array",
                      "description": "Top services"
                    },
                    "recent": {
                      "type": "array",
                      "description": "Most recent matching cases with opened time, service name, status, neighbourhood and address",
                      "items": {
                        "type": "object",
                        "properties": {
                          "opened": {
                            "description": "When the case was opened (UTC)",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "subtype": {
                            "description": "Case subtype",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "agency": {
                            "description": "Responsible agency",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "neighborhood": {
                            "description": "Neighbourhood",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "notes": {
                            "description": "Status notes",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "service": {
                            "description": "Service name"
                          },
                          "status": {
                            "description": "Current status"
                          },
                          "address": {
                            "description": "Account or contract address"
                          },
                          "lat": {
                            "description": "Latitude in decimal degrees"
                          },
                          "lon": {
                            "description": "Longitude in decimal degrees"
                          },
                          "source_channel": {
                            "description": "Source channel"
                          }
                        }
                      }
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "filters",
                    "recent"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/city/sf-311?service=graffiti&days=7&limit=5",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "filters": {
      "neighborhood": null,
      "days": 0,
      "service": "string"
    },
    "top_services": [
      "value"
    ],
    "recent": [
      {
        "opened": "string",
        "subtype": "string",
        "agency": "string",
        "neighborhood": "string",
        "notes": "string",
        "service": null,
        "status": null,
        "address": null,
        "lat": null,
        "lon": null,
        "source_channel": null
      }
    ],
    "note": "string",
    "source": "string"
  }
}