{
  "x402Version": 2,
  "id": 36416,
  "slug": "36416",
  "resource": "https://city-table-clean.onrender.com/v1/clean",
  "description": "City Table Clean: send a Socrata or CKAN city open-data CSV URL (or upload) and get back a cleaned CSV plus a change report: trimmed whitespace, normalized headers, ISO dates, plain numbers, de-duplicated rows, and a per-cell change log.",
  "type": "http",
  "serviceName": "City Table Clean",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x4c6BEb8b77365524A24f21d9111dF5c65033a758",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "changes": {
            "items": {
              "properties": {
                "action": {
                  "type": "string"
                },
                "after": {},
                "before": {},
                "column": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "row": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "cleaned_csv": {
            "description": "Cleaned CSV text",
            "type": "string"
          },
          "report": {
            "description": "Summary: header map, column types, change counts, duplicates removed",
            "type": "object"
          },
          "source": {
            "type": "object"
          }
        },
        "required": [
          "cleaned_csv",
          "report"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "url": "https://data.cityofchicago.org/resource/ijzp-q8t2.csv?$limit=100"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "changes": [
              {
                "action": "date_standardized",
                "after": "2026-10-01",
                "before": "2026-10-01T00:00:00.000",
                "column": "date",
                "row": 1
              }
            ],
            "cleaned_csv": "case_number,date,ward\nJK437343,2026-10-01,28\n",
            "report": {
              "change_counts": {
                "date_standardized": 1
              },
              "duplicates_removed": 0
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "dedupe": {
                    "default": true,
                    "type": "boolean"
                  },
                  "include_changes": {
                    "default": true,
                    "type": "boolean"
                  },
                  "max_rows": {
                    "default": 50000,
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "url": {
                    "description": "https URL of a public CSV: Socrata (/resource/xxxx-xxxx.csv, /d/xxxx-xxxx, rows.csv) or CKAN resource/download URL",
                    "format": "uri",
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "changes": {
                    "items": {
                      "properties": {
                        "action": {
                          "type": "string"
                        },
                        "after": {},
                        "before": {},
                        "column": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "row": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "cleaned_csv": {
                    "description": "Cleaned CSV text",
                    "type": "string"
                  },
                  "report": {
                    "description": "Summary: header map, column types, change counts, duplicates removed",
                    "type": "object"
                  },
                  "source": {
                    "type": "object"
                  }
                },
                "required": [
                  "cleaned_csv",
                  "report"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "open-data",
    "csv",
    "socrata",
    "ckan",
    "data-cleaning",
    "bazaar"
  ],
  "sourceHost": "city-table-clean.onrender.com",
  "lastUpdated": "2026-10-10T17:34:25.821Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-10T17:34:25.628Z"
  },
  "metadata": {
    "serviceName": "City Table Clean",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "url": "https://data.cityofchicago.org/resource/ijzp-q8t2.csv?$limit=100"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "changes": [
                {
                  "action": "date_standardized",
                  "after": "2026-10-01",
                  "before": "2026-10-01T00:00:00.000",
                  "column": "date",
                  "row": 1
                }
              ],
              "cleaned_csv": "case_number,date,ward\nJK437343,2026-10-01,28\n",
              "report": {
                "change_counts": {
                  "date_standardized": 1
                },
                "duplicates_removed": 0
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "dedupe": {
                      "default": true,
                      "type": "boolean"
                    },
                    "include_changes": {
                      "default": true,
                      "type": "boolean"
                    },
                    "max_rows": {
                      "default": 50000,
                      "maximum": 50000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "url": {
                      "description": "https URL of a public CSV: Socrata (/resource/xxxx-xxxx.csv, /d/xxxx-xxxx, rows.csv) or CKAN resource/download URL",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "changes": {
                      "items": {
                        "properties": {
                          "action": {
                            "type": "string"
                          },
                          "after": {},
                          "before": {},
                          "column": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "row": {
                            "type": "integer"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "cleaned_csv": {
                      "description": "Cleaned CSV text",
                      "type": "string"
                    },
                    "report": {
                      "description": "Summary: header map, column types, change counts, duplicates removed",
                      "type": "object"
                    },
                    "source": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "cleaned_csv",
                    "report"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "city-table-clean.onrender.com",
    "manifest_name": "city-table-clean.onrender.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "changes": [
        {
          "action": "string",
          "after": null,
          "before": null,
          "column": "string",
          "row": 0
        }
      ],
      "cleaned_csv": "string",
      "report": {},
      "source": {}
    },
    "type": "string"
  }
}