Base URL
All API endpoints are accessible via the base URL:
[https://api.nexoscreation.com](https://api.nexoscreation.com)
Endpoints
1. Fetching YouTube Channel Data
Endpoint: /youtube/stats/:channelId
Method: GET
Description: Fetches statistics for a specific YouTube channel.
Parameters:
channelId
(required): The ID of the YouTube channel.
Example Request:
GET /youtube/stats/UC_x5XG1OV2P6uZZ5FSM9Ttw
Response:
{
"channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
"subscriberCount": 1000000,
"viewCount": 50000000,
"videoCount": 500
}
2. Fetching YouTube Video
Endpoint: /youtube/videos/:channelId
Method: GET
Description: Retrieves a list of videos for a specific YouTube channel.
Parameters:
channelId
(required): The ID of the YouTube channel.
Example Request:
GET /youtube/videos/UC_x5XG1OV2P6uZZ5FSM9Ttw
Response:
[
{
"videoId": "dQw4w9WgXcQ",
"title": "Example Video",
"description": "This is an example video.",
"publishDate": "2024-07-01T12:00:00Z"
}
]
3. Fetching YouTube Playlist
Endpoint: /youtube/playlists/:channelId
Method: GET
Description: Retrieves a list of playlists for a specific YouTube channel.
Parameters:
channelId
(required): The ID of the YouTube channel.
Example Request:
GET /youtube/playlists/UC_x5XG1OV2P6uZZ5FSM9Ttw
Response:
[
{
"playlistId": "PL1Y2Z3A4B5C6D7E8F9G0H1I2J3K4L5M",
"title": "Example Playlist",
"description": "This is an example playlist."
}
]
4. Fetching GitHub Organization Repositories
Endpoint: /github/repos/:org
Method: GET
Description: Fetches repositories for a specified GitHub organization.
Parameters:
org
(required): The GitHub organization name.
Example Request:
GET /github/repos/openai
Response:
[
{
"repoId": 123456,
"name": "example-repo",
"description": "This is an example repository."
}
]
5. Fetching GitHub User Repositories
Endpoint: /github/repos/:user
Method: GET
Description: Fetches repositories for a specified GitHub user.
Parameters:
user
(required): The GitHub username.
Example Request:
GET /github/repos/octocat
Response:
[
{
"repoId": 789012,
"name": "another-repo",
"description": "This is another example repository."
}
]
6. Fetching Discord Server Data
Endpoint: /discord/info/:serverId
Method: GET
Description: Retrieves information about a specific Discord server.
Parameters:
serverId
(required): The ID of the Discord server.
Example Request:
GET /discord/info/123456789012345678
Response:
{
"serverId": "123456789012345678",
"name": "Example Server",
"memberCount": 1000
}
7. Fetching Discord Server Members
Endpoint: /discord/members/:serverId
Method: GET
Description: Retrieves a list of members for a specific Discord server.
Parameters:
serverId
(required): The ID of the Discord server.
Example Request:
GET /discord/members/123456789012345678
Response:
[
{
"memberId": "876543210987654321",
"username": "exampleuser"
}
]
8. Custom Fetching Craftland Maps
Endpoint: /craftland/maps/:mapId
Method: GET
Description: Fetches details about a specific Craftland map.
Parameters:
mapId
(required): The ID of the Craftland map.
Example Request:
GET /craftland/maps/25
Response:
{
"mapId": 25,
"title": "Military Base",
"description": "A detailed map of the military base.",
"img": "/images/military-base.jpg",
"mapCode": "<iframe src='https://example.com/map/25'></iframe>"
}
9. Custom Fetching Social Media
Endpoint: /social/:platform
Method: GET
Description: Fetches data from a specified social media platform.
Parameters:
platform
(required): The social media platform (e.g.,twitter
,facebook
).
Example Request:
GET /social/twitter
Response:
{
"platform": "twitter",
"followers": 5000,
"tweets": 1000
}
Error Handling
Common HTTP Status Codes
- 200 OK: The request was successful.
- 400 Bad Request: The request was invalid or cannot be otherwise served.
- 404 Not Found: The requested resource could not be found.
- 500 Internal Server Error: An error occurred on the server side.
For more details or issues, please contact our support team.