ScriptBloxAPI 6.2.0

dotnet add package ScriptBloxAPI --version 6.2.0
                    
NuGet\Install-Package ScriptBloxAPI -Version 6.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ScriptBloxAPI" Version="6.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ScriptBloxAPI" Version="6.2.0" />
                    
Directory.Packages.props
<PackageReference Include="ScriptBloxAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ScriptBloxAPI --version 6.2.0
                    
#r "nuget: ScriptBloxAPI, 6.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ScriptBloxAPI&version=6.2.0
                    
Install ScriptBloxAPI as a Cake Addin
#tool nuget:?package=ScriptBloxAPI&version=6.2.0
                    
Install ScriptBloxAPI as a Cake Tool

ScriptBlox API

Support Server GitHub Nuget All Releases alternate text is missing from this package README image

License

MIT

Documentation

Follows ScriptBloxAPI Standards and Parameters


ScriptBloxApi - Scripts Module

The Scripts class in the ScriptBloxApi library provides a set of asynchronous methods to interact with the ScriptBlox API for fetching, searching, and retrieving Roblox scripts.

โœจ Features

  • Fetch paginated script lists with filters
  • Retrieve specific script data
  • Get raw script code
  • Access trending scripts
  • Perform advanced search queries

๐Ÿš€ Usage

Make sure to call these methods from an async context.

using ScriptBloxApi.Scripts;
using ScriptBloxApi.Objects;

Results scripts = await Scripts.FetchScriptsAsync();
ScriptData script = await Scripts.FetchScriptAsync("abc123");
string rawScript = await Scripts.FetchRawScriptAsync("abc123");
IReadOnlyList<Script> trending = await Scripts.FetchTrendingScriptsAsync();
IReadOnlyList<Script> searchResults = await Scripts.SearchScriptsAsync("infinite yield");

๐Ÿ“š API Reference

FetchScriptsAsync(...)

Fetches a paginated list of scripts with optional filtering and sorting.

Parameters:

Name Type Description
page int? Page number (default: 1)
max int? Max results per page (1โ€“20, default: 20)
mode ScriptCost? Filter by script cost (free, paid)
patched bool? Include only patched scripts if true
key bool? Include only key-protected scripts if true
universal bool? Filter universal scripts
verified bool? Include only verified scripts
sortBy SortBy? Sort field (views, likeCount, etc.)
order Order? Sort order (asc, desc)

Returns: Task<Results>


FetchScriptAsync(string scriptId)

Fetches metadata for a single script by ID.

Parameters:

  • scriptId: The ID of the script to fetch

Returns: Task<ScriptData>


FetchRawScriptAsync(string scriptId)

Fetches the raw Lua source code for a script by ID.

Parameters:

  • scriptId: The ID of the script

Returns: Task<string>


FetchTrendingScriptsAsync(int? max = 20)

Gets trending scripts, optionally limited to a maximum number.

Parameters:

  • max: Maximum number of scripts (1โ€“20, default: 20)

Returns: Task<IReadOnlyList<Script>>


SearchScriptsAsync(...)

Performs an advanced search for scripts based on a query and filters.

Parameters:

Name Type Description
query string The search query
page int? Page number (default: 1)
max int? Max results per page (1โ€“20, default: 20)
mode ScriptCost? Filter by script cost (free, paid)
patched bool? Filter by patched state
key bool? Filter by key-protection
universal bool? Filter by universal scripts
verified bool? Filter by verified scripts
sortBy SortBy? Sort field
order Order? Sort order
strict bool? Use strict match if true

Returns: Task<Results>


๐Ÿ“Œ Enums

ScriptCost

  • free
  • paid

SortBy

  • views
  • likeCount
  • createdAt
  • updatedAt
  • dislikeCount

Order

  • asc
  • desc

๐Ÿงช Example: Search for Free, Verified Scripts

var results = await Scripts.SearchScriptsAsync(
    query: "admin",
    mode: Scripts.ScriptCost.free,
    verified: true,
    sortBy: Scripts.SortBy.views,
    order: Scripts.Order.desc
);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

- ReWrote parameter handler to lower memory usage

Added Endpoints

- UserStats.GetUserFollowingAsync(string username, int? page = 1, int? max = 20)
- UserStats.GetUserFollowersAsync(string username, int? page = 1, int? max = 20)
- UserStats.GetUserInfoAsync(string username, int? page = 1, int? max = 20)

- Comments.GetScriptCommentsAsync(string scriptId, int? page = 1, int? max = 20)

- Executors.GetRobloxVersions()

- Scripts.FetchScriptsFromUser(string username, int? page = 1, int? max = 20)