Discord Server Details
POST /api/v1/discord/server
Scrape Discord server metadata, member counts, online users, description, and invite info.
Overview
Scrape Discord server metadata, member counts, online users, description, and invite info.
POST /api/v1/discord/server
Method: POST Path: /api/v1/discord/server Category: Social Media
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| target | string | Required | Discord server invite code, invite URL, or server vanity URL (e.g. midjourney) |
Request Example
Discord Server Details Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/discord/server" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"target": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "server_id": "1234567890", "name": "string", "profile_url": "https://example.com/...", "invite_url": "https://example.com/...", "about": "string", "about_highlights": [ "string" ], "social_links": [ "https://example.com/..." ], "code_or_slug": "string", "icon_url": "https://example.com/...", "banner_url": "https://example.com/...", "splash_url": "https://example.com/...", "approximate_member_count": 0, "approximate_presence_count": 0, "scraped_at": "2026-01-01T12:00:00Z", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Discord Server Details", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| server_id | string | null | Yes | Snowflake ID of the Discord guild/server |
| name | string | Yes | Name of the Discord server |
| profile_url | string | Yes | Direct URL to go to the server public profile page on discord.com/servers |
| invite_url | string | Yes | Direct invite link to join the server |
| about | string | null | Yes | Full detailed About section / bio of the server |
| about_highlights | array<string> | Yes | The four key perks/highlights listed under the About section (e.g. reasons to join) |
| social_links | array<string> | No | Official social media links associated with the server (Twitter, YouTube, Reddit, etc.) |
| code_or_slug | string | Yes | Vanity invite code or web slug |
| icon_url | string | null | No | URL of the server icon |
| banner_url | string | null | No | URL of the server banner image |
| splash_url | string | null | No | URL of the server splash image |
| approximate_member_count | integer | Yes | Total registered members in the server |
| approximate_presence_count | integer | Yes | Total online members currently active |
| scraped_at | string | Yes | UTC ISO timestamp when data was scraped |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/discord/server?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
target example
Pricing & Rate Limits
Endpoint Pricing
$0.0022 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |