EndpointGET

Trending Scripts

Fetch recently popular public scripts based on view activity, formatted with the same summary model as the standard list endpoints.

Endpoint

This feed is designed for discovery surfaces such as homepages, trending widgets and highlight sections. It adds a `trend` object to each script row.

Query parameters

NameTypeDescription
limitnumberNumber of rows to return. Default: `12`, max: `24`.

Response fields

NameTypeDescription
data[]arrayTrending script summaries.
data[].trend.recentViewsnumberRecent view count used for the trend score.
data[].trend.windowDaysnumberWindow length used for recent activity.
meta.windowDaysnumberCurrent trend window in days.
meta.recentOnlyDaysnumberCreation cutoff for eligible scripts.
meta.generatedAtstringISO timestamp of the response generation time.

Example request

Request

JavaScript

const response = await fetch('https://haxhell.com/api/v1/scripts/trending?limit=8');
if (!response.ok) throw new Error(`Request failed: ${response.status}`);

const payload = await response.json();
console.log(payload.data[0].trend.recentViews);

Example response

Example response

application/json

{
  "data": [
    {
      "id": "67f1b7c1b201ef243f0a8132",
      "title": "Universal Auto Farm",
      "slug": "universal-script-auto-farm",
      "description": "Fast farming script with teleport, auto collect and anti-idle helpers.",
      "type": "universal",
      "author": {
        "username": "haxhell",
        "avatar": "https://haxhell.com/images/avatars/newbie.webp",
        "isScripterVerified": true
      },
      "game": {
        "name": "Universal Script",
        "slug": null,
        "universeId": null,
        "placeId": null,
        "category": "Utility",
        "iconUrl": null,
        "thumbnailUrl": "https://haxhell.com/images/default-thumbnail.webp"
      },
      "stats": {
        "views": 18240,
        "likes": 932,
        "favorites": 401,
        "comments": 27
      },
      "flags": {
        "patched": false,
        "verified": true,
        "isPaid": false,
        "keySystem": false,
        "keyInDiscord": false,
        "mobileSupported": true
      },
      "media": {
        "thumbnailUrl": "https://haxhell.com/images/default-thumbnail.webp",
        "videoUrl": null,
        "haxhellVideoUrl": null
      },
      "links": {
        "self": "https://haxhell.com/api/v1/scripts/universal-script-auto-farm",
        "webpage": "https://haxhell.com/scripts/universal-script-auto-farm",
        "raw": "https://haxhell.com/api/raw/universal-script-auto-farm"
      },
      "createdAt": "2026-03-20T14:30:00.000Z",
      "updatedAt": "2026-03-28T09:12:00.000Z",
      "trend": {
        "recentViews": 684,
        "windowDays": 7
      }
    }
  ],
  "meta": {
    "version": "v1",
    "windowDays": 7,
    "recentOnlyDays": 30,
    "generatedAt": "2026-03-29T17:00:00.000Z"
  }
}

Notes

  • Trending rows use the same summary model as the main list endpoint, so you can reuse the same frontend card renderer.
  • The extra `trend` object is only present on this endpoint.
  • This endpoint is focused on discovery and showcase sections rather than creator-specific pages.
Trending Scripts API | HaxHell