Clubs API
API for Hack Club clubs, built in Lua using Astra.
API for Hack Club clubs, built in Lua using Astra.
Production server
Returns Scalar API Docs
curl https://clubapi.hackclub.com/
{
"status": 200
}Successful response
Returns the total number of clubs registered.
curl https://clubapi.hackclub.com/clubs
{
"totalClubs": 1
}Successful response
Returns the count of clubs in the specified country.
The country to filter by (e.g. "United States", "India")
curl 'https://clubapi.hackclub.com/clubs/country?country='
{
"clubs": 1
}Successful response
Returns information about a club. Authentication is optional. Authenticated requests return more fields. .
Name of the club
curl 'https://clubapi.hackclub.com/club?name=' \
--header 'Authorization: YOUR_SECRET_TOKEN'
{
"club_name": null,
"Est. # of Attendees": 1,
"call_meeting_days": "string",
"call_meeting_length": 1,
"club_status": "string",
"id": "string",
"leader_slack_id": "string",
"level": "string",
"venue_address_country": "string"
}Club information
Checks if a leader exists by email. Authentication is optional. .
Email of the leader
curl 'https://clubapi.hackclub.com/leader?email=' \
--header 'Authorization: YOUR_SECRET_TOKEN'
{
"club_name": null
}Leader information
Updates a leader's email address. Requires Write permissions.
Old email of the leader
New email of the leader
curl 'https://clubapi.hackclub.com/leader?email=&new_email='il=' \
--request POST \
--header 'Authorization: YOUR_SECRET_TOKEN'
{
"new_email": "string"
}Email updated successfully
Returns the list of ships (projects) associated with a club.
Name of the club
curl 'https://clubapi.hackclub.com/ships?club_name=' \
--header 'Authorization: YOUR_SECRET_TOKEN'
[
{
"workshop": "string",
"Rating": 1,
"code_url": "string",
"club_name (from Clubs)": [
"string"
],
"YSWS–Name (from Unified YSWS Database)": [
"string"
]
}
]List of ships
Returns the level of the specified club.
Name of the club
curl 'https://clubapi.hackclub.com/level?club_name='
{
"level": "string"
}Club level
Updates the level of a club. Requires Write permissions.
New level of the club
Name of the club
curl 'https://clubapi.hackclub.com/level?level=&club_name='me=' \
--request POST \
--header 'Authorization: YOUR_SECRET_TOKEN'
{
"new_level": "string"
}Level updated successfully
Returns the status of the specified club.
Name of the club
curl 'https://clubapi.hackclub.com/status?club_name='
{
"status": "string"
}Club status
Updates the status of a club. Requires Write permissions.
New status of the club
Name of the club
curl 'https://clubapi.hackclub.com/status?status=&club_name='me=' \
--request POST \
--header 'Authorization: YOUR_SECRET_TOKEN'
{
"new_status": "string"
}Status updated successfully
| Cookie Enabled | Cookie Key | Cookie Value |
|---|---|---|
| Header Enabled | Header Key | Header Value |
|---|---|---|
Accept | */* | |
| Parameter Enabled | Parameter Key | Parameter Value |
|---|---|---|