Categories > Exploiting > Scripts >

Scripts API Documentation

WRD

Owner

admin

Posts: 979

Threads: 33

Joined: Dec, 2016

Reputation: 105

Posted

Endpoint


GET https://wearedevs.net/api/scripts/search

Returns a list of verified Lua scripts, up to 25(Pagination available). You can filter results using search terms and tags.

 


 

Query Parameters

 

  • s (optional):
    A search string to filter script names. It performs a case-insensitive partial match.
    Example: ?s=fly

 

  • tags (optional):
    Comma-separated list of tags. Currently supports featured.
    Available tags include: featured.
    Results are sorted oldest to newest. Otherwise, newest to old.
    Example: ?tags=featured

 

  • after (optional):
    Used for pagination, only scripts after this script _id will be grabbed
    Example: ?after=611c5e8f37f27bdc436897be

 


 

Response Format
Returns a JSON object, with properties:


scripts: Array of objects

  • _id: Script ID
  • name: Script name
  • description: Script description
  • account.username: Author username
  • raw: Direct URL to the Lua file, omitted if X-Internal-Request is set

more: Boolean value to indicate if more scripts are available after this page

 


 

Code example

 

Javascript

await fetch(`https://wearedevs.net/api/scripts/search`)
.then(res => res.json())
.then(res => console.log(res.scripts))
  • 0

Added

To-do: Add more tag options, like for filtering hubs or keyless

  • 0

https://cdn.wearedevs.net/images/icons/youtube.png Coding Tutorials  https://i.imgur.com/z8bRyw3.png Blog

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )