SQLegend

The Best Easy & Free SQL Server.
πŸ‘‹ How this works:

You don't need to install anything. You don't need to configure ports.
You just get a Database ID, and you send SQL commands via HTTP POST requests. That's it.

STEP 1 Get Your Database Key

Click the button to generate a unique, persistent database file on our server.

STEP 2 Try it (Live Console)

You can test your database right here without writing code. Paste your ID above first!

Result:
Waiting for command...

πŸ‘‰ Try: CREATE TABLE users (name TEXT, weight INT);
πŸ‘‰ Try: INSERT INTO users VALUES ('John', 10);
πŸ‘‰ Try: SELECT * FROM users;

STEP 3 Use in Your Code

Now, connect your application. Copy the snippets below.

πŸ“Œ Endpoint Info

POST https://sqlegend.nethacker.cloud/api
Content-Type: application/json

Javascript (Node/Frontend)

const DB_ID = "YOUR_ID_HERE";
const API_URL = "https://sqlegend.nethacker.cloud/api";

async function query(sql) {
    const res = await fetch(API_URL, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ id: DB_ID, sql: sql })
    });
    return await res.json();
}

// Example usage:
query("SELECT * FROM users").then(console.log);
        

Python

import requests

DB_ID = "YOUR_ID_HERE"
URL = "https://sqlegend.nethacker.cloud/api"

def run_sql(sql):
    resp = requests.post(URL, json={"id": DB_ID, "sql": sql})
    return resp.json()

print(run_sql("SELECT 1 + 1 as result"))