Skip to content

CodeShare is the best tool for storing and sharing codes and text, aka paste tool.

License

Notifications You must be signed in to change notification settings

JustStudio7/CodeShare

Repository files navigation

Under the MIT License - © 2025 JustStudio.

Note

CodeShare (only this repository, not API) is made based on "Pastebon" by Hexaa - https://pastebon.hexaa.lol/ | GitHub repository.





Using

Next.js; Vercel;
404.html by JustDeveloper;
api.juststudio.is-a.dev by JustStudio..


Special thanks to

JS.ORG for "codeshare.js.org" subdomain.


API docs

BASE URL: api.juststudio.is-a.dev

Full version here.

Warning

Please do not use this API outside CodeShare, thank you.

View code

GET https://api.juststudio.is-a.dev/cs/{Id}
Required: Code ID ({Id}), in path.

Example response, code 200:

{
    "id": 1,
    "authorId": "621950083759508500903931783035125166471302414334602580",
    "code": "console.log('Hello, World!')",
    "langDone": "js",
    "name": "The First Code",
    "created": 1735553192776,
    "updated": 0,
    "status": 0
}

Example response, code 404:

Not Found

Note

"code" in responce is not a raw file, it is encoded string for HTML.

Note

"status": 0 = OK
"status": 1 = DELETED
"status": 2 = BANNED

Get user

GET https://api.juststudio.is-a.dev/user/{Id}
Required: User ID ({Id}) (the "authorId" from "View code" responce), in path.

Example response, code 200:

{
    "id": "621950083759508500903931783035125166471302414334602580",
    "username": "justdeveloper",
    "avatar": "https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZGlzY29yZC9pbWdfMm50amxFZXZ3clhIdXAwUUVPeFlpU3QwWTdwIn0",
    "banned": false,
    "joined": 1729799414699,
    "data": {
        "badges": 0
    }
}

Example response, code 404:

Not Found