This endpoint returns the complete script information including the full code content in JSON format.
Example Request
GET /api/scripts/infinite-jump-script
Response (200 OK)
{
"id": "clxxx...",
"title": "Infinite Jump Script",
"slug": "infinite-jump-script",
"description": "Allows infinite jumping in any game",
"code": "-- Infinite Jump Script\nlocal player = game.Players.LocalPlayer\n...",
"thumbnailUrl": "/uploads/thumbnails/xxx.png",
"views": 15234,
"downloads": 8932,
"likeCount": 1203,
"dislikeCount": 45,
"isVerified": true,
"isPublic": true,
"isMobile": true,
"hasKeySystem": false,
"keyLink": null,
"isPaid": false,
"price": null,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-20T14:22:00.000Z",
"author": {
"id": "clxxx...",
"username": "scriptdev",
"verified": true,
"avatarUrl": "/uploads/avatars/xxx.png",
"bio": "Professional script developer"
},
"game": {
"id": "clxxx...",
"name": "Universal",
"slug": "universal",
"thumbnailUrl": null
},
"tags": [
{
"tag": {
"id": "clxxx...",
"name": "Parkour",
"slug": "parkour",
"color": "#667eea"
}
}
]
}
Usage Example (JavaScript)
// Fetch script data
const response = await fetch('https://pandablox.com/api/scripts/infinite-jump-script');
const scriptData = await response.json();
// Extract the code
const luaCode = scriptData.code;
// Parse script metadata
console.log('Title:', scriptData.title);
console.log('Author:', scriptData.author.username);
console.log('Verified:', scriptData.isVerified);
console.log('Code length:', luaCode.length);