{"id":19634947,"url":"https://github.com/riisdev/scriptbloxapi","last_synced_at":"2025-04-28T13:32:15.124Z","repository":{"id":168220661,"uuid":"643813169","full_name":"RiisDev/ScriptBloxAPI","owner":"RiisDev","description":"API For ScritBlox.com","archived":false,"fork":false,"pushed_at":"2025-04-07T01:29:27.000Z","size":48713,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T01:35:13.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RiisDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-05-22T08:00:07.000Z","updated_at":"2025-04-07T01:27:23.000Z","dependencies_parsed_at":"2024-01-09T19:08:27.833Z","dependency_job_id":null,"html_url":"https://github.com/RiisDev/ScriptBloxAPI","commit_stats":null,"previous_names":["irisv3rm/scriptbloxapi","riisdev/scriptbloxapi"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiisDev%2FScriptBloxAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiisDev%2FScriptBloxAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiisDev%2FScriptBloxAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiisDev%2FScriptBloxAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RiisDev","download_url":"https://codeload.github.com/RiisDev/ScriptBloxAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319757,"owners_count":21570451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T12:23:19.954Z","updated_at":"2025-04-28T13:32:15.027Z","avatar_url":"https://github.com/RiisDev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScriptBlox API\n[![Support Server](https://img.shields.io/discord/477201632204161025.svg?label=Discord\u0026logo=Discord\u0026colorB=7289da\u0026style=for-the-badge)](https://discord.gg/yyuggrH) ![GitHub](https://img.shields.io/github/license/RiisDev/ScriptBloxAPI?style=for-the-badge) ![Nuget All Releases](https://img.shields.io/nuget/dt/ScriptBloxAPI?label=Nuget%20Downloads\u0026style=for-the-badge) ![](https://img.shields.io/badge/.NET-Standard%202.0-blueviolet?style=for-the-badge)\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit)\n\n## Documentation\n\nFollows [ScriptBloxAPI Standards and Parameters](https://scriptblox.com/docs/scripts/fetch)\n\n---\n\n# ScriptBloxApi - Scripts Module\n\nThe `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.\n\n## ✨ Features\n\n- Fetch paginated script lists with filters\n- Retrieve specific script data\n- Get raw script code\n- Access trending scripts\n- Perform advanced search queries\n\n---\n\n## 🚀 Usage\n\nMake sure to call these methods from an async context.\n\n```csharp\nusing ScriptBloxApi.Scripts;\nusing ScriptBloxApi.Objects;\n\nResults scripts = await Scripts.FetchScriptsAsync();\nScriptData script = await Scripts.FetchScriptAsync(\"abc123\");\nstring rawScript = await Scripts.FetchRawScriptAsync(\"abc123\");\nIReadOnlyList\u003cScript\u003e trending = await Scripts.FetchTrendingScriptsAsync();\nIReadOnlyList\u003cScript\u003e searchResults = await Scripts.SearchScriptsAsync(\"infinite yield\");\n```\n\n---\n\n## 📚 API Reference\n\n### `FetchScriptsAsync(...)`\nFetches a paginated list of scripts with optional filtering and sorting.\n\n**Parameters:**\n\n| Name        | Type             | Description                                  |\n|-------------|------------------|----------------------------------------------|\n| `page`      | `int?`           | Page number (default: 1)                     |\n| `max`       | `int?`           | Max results per page (1–20, default: 20)    |\n| `mode`      | `ScriptCost?`    | Filter by script cost (`free`, `paid`)      |\n| `patched`   | `bool?`          | Include only patched scripts if `true`      |\n| `key`       | `bool?`          | Include only key-protected scripts if `true`|\n| `universal` | `bool?`          | Filter universal scripts                     |\n| `verified`  | `bool?`          | Include only verified scripts                |\n| `sortBy`    | `SortBy?`        | Sort field (`views`, `likeCount`, etc.)     |\n| `order`     | `Order?`         | Sort order (`asc`, `desc`)                  |\n\n**Returns:** `Task\u003cResults\u003e`\n\n---\n\n### `FetchScriptAsync(string scriptId)`\nFetches metadata for a single script by ID.\n\n**Parameters:**\n- `scriptId`: The ID of the script to fetch\n\n**Returns:** `Task\u003cScriptData\u003e`\n\n---\n\n### `FetchRawScriptAsync(string scriptId)`\nFetches the raw Lua source code for a script by ID.\n\n**Parameters:**\n- `scriptId`: The ID of the script\n\n**Returns:** `Task\u003cstring\u003e`\n\n---\n\n### `FetchTrendingScriptsAsync(int? max = 20)`\nGets trending scripts, optionally limited to a maximum number.\n\n**Parameters:**\n- `max`: Maximum number of scripts (1–20, default: 20)\n\n**Returns:** `Task\u003cIReadOnlyList\u003cScript\u003e\u003e`\n\n---\n\n### `SearchScriptsAsync(...)`\nPerforms an advanced search for scripts based on a query and filters.\n\n**Parameters:**\n\n| Name        | Type             | Description                                  |\n|-------------|------------------|----------------------------------------------|\n| `query`     | `string`         | The search query                             |\n| `page`      | `int?`           | Page number (default: 1)                     |\n| `max`       | `int?`           | Max results per page (1–20, default: 20)     |\n| `mode`      | `ScriptCost?`    | Filter by script cost (`free`, `paid`)       |\n| `patched`   | `bool?`          | Filter by patched state                      |\n| `key`       | `bool?`          | Filter by key-protection                     |\n| `universal` | `bool?`          | Filter by universal scripts                  |\n| `verified`  | `bool?`          | Filter by verified scripts                   |\n| `sortBy`    | `SortBy?`        | Sort field                                   |\n| `order`     | `Order?`         | Sort order                                   |\n| `strict`    | `bool?`          | Use strict match if `true`                   |\n\n**Returns:** `Task\u003cResults\u003e`\n\n---\n\n## 📌 Enums\n\n### `ScriptCost`\n- `free`\n- `paid`\n\n### `SortBy`\n- `views`\n- `likeCount`\n- `createdAt`\n- `updatedAt`\n- `dislikeCount`\n\n### `Order`\n- `asc`\n- `desc`\n\n---\n\n## 🧪 Example: Search for Free, Verified Scripts\n\n```csharp\nvar results = await Scripts.SearchScriptsAsync(\n    query: \"admin\",\n    mode: Scripts.ScriptCost.free,\n    verified: true,\n    sortBy: Scripts.SortBy.views,\n    order: Scripts.Order.desc\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friisdev%2Fscriptbloxapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friisdev%2Fscriptbloxapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friisdev%2Fscriptbloxapi/lists"}