EndpointGET
Search Scripts
Search public scripts using a query string. Useful for searchboxes, autocomplete and in-executor Script Hub filtering.
Endpoint
Searches title, description, game name and tags. This endpoint requires a non-empty `q` query parameter.
Query parameters
| Name | Type | Description |
|---|---|---|
| q | string | Required. Search term. |
| page | number | Page number. Default: `1`. |
| limit | number | Items per page. Default: `12`, max: `50`. |
| sort | string | One of `latest`, `updated`, or `views`. |
| username | string | Filter to a specific creator. |
| type | string | Use `game` or `universal`. |
| gameName | string | Case-insensitive game name filter. |
| patched | boolean | Filter patched or non-patched scripts. |
| mobileSupported | boolean | Filter mobile-compatible scripts. |
| keySystem | boolean | Filter scripts with or without a key system. |
| isPaid | boolean | Filter paid or free scripts. |
Example request
Request
JavaScript
const response = await fetch('https://haxhell.com/api/v1/search/scripts?q=blox%20fruits&limit=12');
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const payload = await response.json();
console.log(payload.data.map((row) => row.title));Notes
- Use `limit` + `page` to build infinite scrolling or pagination UI.
- If you want a homepage-style latest feed, use the list endpoint instead.