Documentation

Upload data, get API endpoints. Nothing else.

Overview

Tiny API lets you upload CSV files and instantly get JSON API endpoints to access your data. No configuration, no database setup.

  1. Upload a CSV file (max 5MB)
  2. Get a unique endpoint URL
  3. Fetch your data as JSON

Endpoints

GET /

Home page with file upload form.

POST /

Upload a CSV file. Returns a redirect to the home page with a link to your data.

  • file (multipart/form-data): CSV file (max 5MB)
GET /tables

List all available tables.

            {"msg": "Success", "data": ["uuid-1", "uuid-2"]}
          
GET /:table

Retrieve data from a table.

  • limit (query): Max number of rows to return (optional)
  • offset (query): Number of rows to skip (optional)
            {"msg": "Success", "data": [...]}
          
DELETE /:table

Delete a table.

            {"msg": "Success. Table deleted."}
          

Examples

Upload a file
            curl -X POST -F "file=@data.csv" http://localhost:3000/
          
List all tables
            curl http://localhost:3000/tables
          
Get data
            curl http://localhost:3000/{table-uuid}
          
Get data with pagination
            curl "http://localhost:3000/{table-uuid}?limit=10&offset=0"
          
Delete a table
            curl -X DELETE http://localhost:3000/{table-uuid}
          

Error Responses

When a table is not found:

            {"msg": "Failed. Not found."}
          

HTTP status code: 404