Skip to main content

Get Guild by Slug

Retrieve details of a guild by its URL-friendly slug. No authentication required.

Endpoint

GET /api/v2/guilds/slug/:slug

Authentication

This endpoint is public and does not require authentication.

Description

Returns full details of a guild by its unique slug. Slugs are URL-friendly identifiers (e.g., elite-gamers) and are ideal for public-facing guild pages and links.

Path Parameters

ParameterTypeRequiredDescription
slugstringYesURL-friendly identifier for the guild

Request Example

GET /api/v2/guilds/slug/elite-gamers

Response

Success Response (200)

{
"id": "guild-123",
"slug": "elite-gamers",
"name": "Elite Gamers Guild",
"description": "A community for competitive gamers",
"logo": "https://example.com/logo.png",
"website": "https://elitegamers.com",
"social": [
{
"service": "DISCORD",
"username": "elitegamers"
},
{
"service": "TWITTER",
"username": "elitegamers"
}
],
"size": 42,
"adminId": "user-456",
"createdAt": 1672531200000,
"updatedAt": 1704067200000
}

Error Response (404)

{
"message": "Guild not found",
"status": 404
}

Response Fields

FieldTypeDescription
idstringUnique guild identifier
slugstringURL-friendly guild identifier
namestringGuild name
descriptionstringGuild description
logostringGuild logo URL (optional)
websitestringGuild website URL (optional)
socialobject[]Social media links (optional)
sizenumberCurrent member count
adminIdstringUser ID of the guild administrator
createdAtnumberCreation timestamp (Unix ms)
updatedAtnumberLast update timestamp (Unix ms)

Usage Example

// Ideal for public guild pages: /guilds/elite-gamers
const slug = "elite-gamers";
const response = await fetch(`https://api.intraverse.io/api/v2/guilds/slug/${slug}`);

if (response.ok) {
const guild = await response.json();
console.log(`${guild.name} (${guild.size} members)`);
// Build join URL: /guilds/${guild.id}/join
} else {
console.log("Guild not found");
}

Next Steps