Nexlogo

NEXOS CREATION

API Documentation

Comprehensive API documentation for Nexos Creation projects and tools.

Published: | Updated:

๐Ÿ› ๏ธ Nexos Creation API Documentation

Welcome to the Nexos Creation API documentation. Here you'll find detailed information about our APIs, enabling you to integrate and extend our tools effectively.

๐Ÿš€ Base URL

All API requests should be made to the following base URL:

https://api.nexoscrafting.live

๐Ÿ“š API Endpoints

YouTube Data

1. Fetch YouTube Channel Statistics

Retrieves statistics for a specific YouTube channel.

  • Endpoint: /youtube/channel/:channelId
  • Method: GET
  • Parameters:
    • channelId (required): The ID of the YouTube channel

Example Request:

GET https://api.nexoscrafting.live/youtube/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw

Example Response:

{
  "channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
  "subscriberCount": 1000000,
  "viewCount": 50000000,
  "videoCount": 500
}

2. Fetch YouTube Channel Videos

Retrieves a list of videos for a specific YouTube channel.

  • Endpoint: /youtube/channel/:channelId/videos
  • Method: GET
  • Parameters:
    • channelId (required): The ID of the YouTube channel

Example Request:

GET https://api.nexoscrafting.live/youtube/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw/videos

Example Response:

[
  {
    "videoId": "dQw4w9WgXcQ",
    "title": "Example Video",
    "description": "This is an example video.",
    "publishDate": "2024-07-01T12:00:00Z"
  }
]

3. Fetch YouTube Channel Playlists

Retrieves a list of playlists for a specific YouTube channel.

  • Endpoint: /youtube/channel/:channelId/playlists
  • Method: GET
  • Parameters:
    • channelId (required): The ID of the YouTube channel

Example Request:

GET https://api.nexoscrafting.live/youtube/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw/playlists

Example Response:

[
  {
    "playlistId": "PL1Y2Z3A4B5C6D7E8F9G0H1I2J3K4L5M",
    "title": "Example Playlist",
    "description": "This is an example playlist."
  }
]

GitHub Data

4. Fetch GitHub Organization Info

Retrieves Info for a specified GitHub organization.

  • Endpoint: /github/orgs/:org
  • Method: GET
  • Parameters:
  • org (required): The GitHub organization name

Example Request:

GET https://api.nexoscrafting.live/github/orgs/nexoscrafting

Example Response:

{
  "login": "nexoscreation",
  "id": 153928893,
  "avatarUrl": "https://avatars.githubusercontent.com/u/153928893?v=4",
  "name": "Nexos Creation",
  "description": "welcome to our community",
  "blog": "https://nexoscreation.com",
  "location": "India",
  "email": "[email protected]",
  "publicRepos": 6,
  "followers": 1,
  "following": 0,
  "createdAt": "2023-12-15T14:50:28Z",
  "updatedAt": "2024-11-23T06:53:49Z"
}

5. Fetch GitHub User Info

Retrieves info for a specified GitHub user.

  • Endpoint: /github/users/:user
  • Method: GET
  • Parameters:
  • user (required): The GitHub username

Example Request:

GET https://api.nexoscrafting.live/github/users/nexoscreator

Example Response:

{
  "login": "nexoscreator",
  "id": 112468782,
  "avatarUrl": "https://avatars.githubusercontent.com/u/112468782?v=4",
  "name": "Nexos Creator",
  "company": "Nexos Creation",
  "blog": "https://nexoscreator.pro",
  "location": "Gujrat, India",
  "email": null,
  "bio": "๐Ÿš€ | Exploring the realms of creativity and curiosity in 280 characters or less. Turning ideas into reality, one keystroke at a time. =\u003E Ctrl + Alt + Believe",
  "publicRepos": 19,
  "followers": 4,
  "following": 0,
  "createdAt": "2022-08-30T07:21:43Z",
  "updatedAt": "2024-11-22T18:52:20Z"
}

5. Fetch GitHub User Repo

Retrieves Repositories for a specified GitHub user.

  • Endpoint: /github/users/:user/repos
  • Method: GET
  • Parameters:
  • user (required): The GitHub username

Example Request:

GET https://api.nexoscrafting.live/github/users/nexoscreator/repos

Example Response:

[
  {
    "id": 872779853,
    "name": "365-Days-of-Web-Development",
    "fullName": "nexoscreator/365-Days-of-Web-Development",
    "private": false,
    "htmlUrl": "https://github.com/nexoscreator/365-Days-of-Web-Development",
    "description": "Welcome to the 365 Days of Web Development series! This project provides daily short tutorials covering various web development topics, with code snippets, examples, and explanations.",
    "fork": false,
    "createdAt": "2024-10-15T04:07:22Z",
    "updatedAt": "2024-10-18T03:31:00Z",
    "pushedAt": "2024-10-18T03:47:54Z",
    "stargazersCount": 2,
    "watchersCount": 2,
    "language": "CSS",
    "forksCount": 0,
    "openIssuesCount": 0
  },
]

Discord Data

7. Fetch Discord Server Information

Retrieves information about a specific Discord server.

  • Endpoint: /discord/guilds/:serverId
  • Method: GET
  • Parameters:
  • serverId (required): The ID of the Discord server

Example Request:

GET https://api.nexoscrafting.live/discord/guilds/832187937675804683

Example Response:

{
  "guildId": "832187937675804683",
  "name": "NEXOS CREATION",
  "icon": "https://cdn.discordapp.com/icons/832187937675804683/0843b365305ae4dafe4708a9f83f7da8.png",
  "banner": null,
  "description": "Join us to stay updated on the latest projects, engage in insightful discussions, and connect with fellow creators!",
  "owner": "1261339199777538048",
  "status": "4",
  "memberCount": "0"
}

8. Fetch Discord Server Members

Retrieves a list of members for a specific Discord server.

  • Endpoint: /discord/guilds/:serverId/members
  • Method: GET
  • Parameters:
  • serverId (required): The ID of the Discord server

Example Request:

GET https://api.nexoscrafting.live/guilds/832187937675804683/members

Example Response:

[
  {
    "id": "282859044593598464",
    "username": "ProBot โœจ",
    "discriminator": "5803",
    "icon": "https://cdn.discordapp.com/avatars/282859044593598464/156a0d2872579f1ffcaa5d2127239bfd.png",
    "description": "No description available",
    "_id": "674facdd77af72a630397ba1"
  }
]

๐Ÿ“Š API Status

Check our Status Page for real-time and historical data on API performance.

9. Health Check

Retrieves a API Legency and Info for a NexAPI.

  • Endpoint: /health
  • Method: GET
  • Parameters:

Example Request:

GET https://api.nexoscrafting.live/health

Example Response:

{
  "status": "ok",
  "timestamp": "2024-12-04T09:07:46.544Z",
  "uptime": 985.772574954
}

Custom Nexos Creation Services

Updating Soon!

  • Discord Banner Gen
  • Discord RCP Status
  • NPM Data Fetching
  • Og Image Gen
  • Webhook Data Send

Error Handling

Our API uses conventional HTTP response codes to indicate the success or failure of an API request.

Common HTTP Status Codes

  • 200 OK: The request was successful.
  • 400 Bad Request: The request was invalid or cannot be served.
  • 404 Not Found: The requested resource could not be found.
  • 500 Internal Server Error: An error occurred on the server side.

For more detailed error messages, please refer to the response body of the API call.

Changelog

A list of changes and updates to the API will be maintained here.

๐Ÿ†˜ Need Help?

Happy coding! ๐ŸŽ‰