{
  "x402Version": 2,
  "id": 37432,
  "slug": "37432",
  "resource": "https://api.vextorium.com/sql-csv-pago",
  "description": "Run a read-only SQL query (SELECT/WITH, WHERE, GROUP BY, ORDER BY, window functions...) over a CSV loaded as table «datos» in a temporary in-memory SQLite database, and get the rows as JSON.",
  "type": "http",
  "serviceName": "Vextorium",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:10",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "amount": "4000",
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "4000",
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "columnas": {
            "items": {
              "type": [
                "null",
                "string"
              ]
            },
            "type": [
              "array",
              "null"
            ]
          },
          "columnas_tabla": {
            "items": {
              "type": [
                "null",
                "string"
              ]
            },
            "type": [
              "array",
              "null"
            ]
          },
          "filas": {
            "items": {
              "properties": {
                "city": {
                  "type": [
                    "null",
                    "string"
                  ]
                },
                "total": {
                  "type": [
                    "null",
                    "number"
                  ]
                }
              },
              "type": [
                "null",
                "object"
              ]
            },
            "type": [
              "array",
              "null"
            ]
          },
          "filas_devueltas": {
            "type": [
              "number",
              "null"
            ]
          },
          "filas_tabla": {
            "type": [
              "number",
              "null"
            ]
          },
          "tabla": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": [
          "object",
          "null"
        ]
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "consulta": "SELECT city, SUM(sales) AS total FROM datos GROUP BY city ORDER BY total DESC",
            "contenido": "city,sales\nMadrid,100\nBarcelona,80\nMadrid,120"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "columnas": [
              "city",
              "total"
            ],
            "columnas_tabla": [
              "city",
              "sales"
            ],
            "filas": [
              {
                "city": "Madrid",
                "total": 220
              },
              {
                "city": "Barcelona",
                "total": 80
              }
            ],
            "filas_devueltas": 2,
            "filas_tabla": 3,
            "tabla": "datos"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "consulta": {
                    "description": "SELECT over table datos",
                    "type": "string"
                  },
                  "contenido": {
                    "type": "string"
                  },
                  "delimitador": {
                    "type": "string"
                  },
                  "limite": {
                    "description": "Max rows (default 500)",
                    "type": "integer"
                  }
                },
                "required": [
                  "contenido",
                  "consulta"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "columnas": {
                    "items": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "columnas_tabla": {
                    "items": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "filas": {
                    "items": {
                      "properties": {
                        "city": {
                          "type": [
                            "null",
                            "string"
                          ]
                        },
                        "total": {
                          "type": [
                            "null",
                            "number"
                          ]
                        }
                      },
                      "type": [
                        "null",
                        "object"
                      ]
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "filas_devueltas": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "filas_tabla": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "tabla": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "sql",
    "csv",
    "sqlite",
    "analytics",
    "data",
    "bazaar"
  ],
  "sourceHost": "api.vextorium.com",
  "lastUpdated": "2026-10-06T05:00:03.895Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-06T05:00:03.634Z"
  },
  "metadata": {
    "serviceName": "Vextorium",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "consulta": "SELECT city, SUM(sales) AS total FROM datos GROUP BY city ORDER BY total DESC",
              "contenido": "city,sales\nMadrid,100\nBarcelona,80\nMadrid,120"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "columnas": [
                "city",
                "total"
              ],
              "columnas_tabla": [
                "city",
                "sales"
              ],
              "filas": [
                {
                  "city": "Madrid",
                  "total": 220
                },
                {
                  "city": "Barcelona",
                  "total": 80
                }
              ],
              "filas_devueltas": 2,
              "filas_tabla": 3,
              "tabla": "datos"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "consulta": {
                      "description": "SELECT over table datos",
                      "type": "string"
                    },
                    "contenido": {
                      "type": "string"
                    },
                    "delimitador": {
                      "type": "string"
                    },
                    "limite": {
                      "description": "Max rows (default 500)",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "contenido",
                    "consulta"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "columnas": {
                      "items": {
                        "type": [
                          "null",
                          "string"
                        ]
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "columnas_tabla": {
                      "items": {
                        "type": [
                          "null",
                          "string"
                        ]
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "filas": {
                      "items": {
                        "properties": {
                          "city": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "total": {
                            "type": [
                              "null",
                              "number"
                            ]
                          }
                        },
                        "type": [
                          "null",
                          "object"
                        ]
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "filas_devueltas": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "filas_tabla": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "tabla": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vextorium.com",
    "manifest_name": "api.vextorium.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "columnas": [
        "value"
      ],
      "columnas_tabla": [
        "value"
      ],
      "filas": [
        {
          "city": null,
          "total": null
        }
      ],
      "filas_devueltas": 0,
      "filas_tabla": 0,
      "tabla": "string"
    },
    "type": "string"
  }
}