https://github.com/bless-04/roblox_sharp
Unofficial Asynchronous Roblox API C# Wrapper
https://github.com/bless-04/roblox_sharp
csharp csharp-library dotnet roblox roblox-api-wrapper
Last synced: about 1 year ago
JSON representation
Unofficial Asynchronous Roblox API C# Wrapper
- Host: GitHub
- URL: https://github.com/bless-04/roblox_sharp
- Owner: Bless-04
- License: mit
- Created: 2024-09-17T02:50:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T00:37:58.000Z (about 1 year ago)
- Last Synced: 2025-04-11T21:52:36.253Z (about 1 year ago)
- Topics: csharp, csharp-library, dotnet, roblox, roblox-api-wrapper
- Language: C#
- Homepage: https://www.nuget.org/packages/Roblox_Sharp
- Size: 3.97 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/Roblox_Sharp/)
[](LICENSE)
[](https://www.nuget.org/packages/Roblox_Sharp)
[](https://huboard.com/Bless-04/Roblox_Sharp/)
[](https://github.com/Bless-04/Roblox_Sharp)
[](https://github.com/Bless-04/Roblox_Sharp/actions/workflows/Framework.yml)
[](https://github.com/Bless-04/Roblox_Sharp/actions/workflows/Web%20Integration.yml)
[Endpoints](lib/Endpoints) Sourced From [roblox-web-apis](https://github.com/matthewdean/roblox-web-apis/blob/master/README.md) and [create.roblox.com](https://create.roblox.com/docs/cloud/legacy)
# Roblox_Sharp
Roblox_Sharp is a C#/.NET framework that serves as a unofficial asynchronouse wrapper for Roblox's Web API system. The framework is built on .NET 8.0, and depends on the standard library (no external dependencies)
## Installation
Roblox_Sharp can be installed [directly from NuGet](https://nuget.org/packages/Roblox_Sharp) through your IDE's package manager or with the following command in the command-line.
```
Install-Package Roblox_Sharp -Version
```
## Some Current Features
* Users: Get information of any user on the platform, including their badges, inventory (if visible), friends, who they follow, and more.
* Assets: Get Asset Information
* Groups: Get Group Information
* Badges: Get Badge Information
* Avatar: Get information about a users avatar
* Custom Requests: Send your own your own requests to the Roblox API using the framework's static WebAPI.Get_RequestAsync function.
* Thumbnail: Get a users thumbnail for their head, bust or full avatar.
## Code Examples
### Getting Detailed User Information
```csharp
using Roblox_Sharp.Models;
using Roblox_Sharp.Endpoints;
ulong id = 156; // the id to be requested
User user = await Users_v1.Get_UserAsync(id); //request the users info
DateTime created = user.Created; //get the users creation date
bool hasVerifiedBadge = user.HasVerifiedBadge; //get if the user has a verified badge
Console.WriteLine(user.ToString()); //a string representation of the user in the format {DisplayName}@{Username} (ID {UserId})"
```
###
### Getting A List of A Users Friends
```csharp
using Roblox_Sharp.Models;
using Roblox_Sharp.Endpoints;
using System.Collections.Generic;
using System.Linq;
using System;
List friends = [];
friends.AddRange(await Friends_v1.Get_FriendsAsync(261)); //a list of 261's friends
IEnumerable sorted = friends.OrderByDescending(user => user.UserId); // sorting the friends list from newest to oldest
Console.WriteLine($"oldest friend: {sorted.Last().ToString()}"); // display the oldest friend
Console.WriteLine($"youngest friend: {sorted.First().ToString()}"); // display the youngest friend
```