By Id
GET
/tw-v2/space/by-idDescription
Retrieve detailed information about a platform Space (audio room) by its ID. Returns comprehensive data including title, state, creator, participants, topics, and engagement stats.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Unique Space ID (e.g., '1MnxnPmLRQBGO') |
Code Examples
const params = new URLSearchParams({
spaceId: '1MnxnPmLRQBGO'
});
const response = await fetch(`https://api.tweetapi.com/tw-v2/space/by-id?${params}`, {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
Response
Success Response (200 OK)
200
{
"data": {
"id": "1MnxnPmLRQBGO",
"title": "Sample title 28260",
"state": "Ended",
"mediaKey": "28_1991353658102149130",
"createdAt": 1763610684292,
"scheduledStart": 1763647200000,
"startedAt": 1763647259862,
"endedAt": 1763651150919,
"updatedAt": 1763651153433,
"creator": {
"id": "100808552685023961",
"username": "sample_user_52875",
"name": "Sample User 52875",
"bio": "Sample profile bio for Sample User 52875.",
"location": "Sample City 616",
"website": "https://example.com/link-94089/profile-52875",
"pinnedTweetIds": [
"2001469974746050344"
],
"avatar": "https://example.com/images/sample-avatar-52875.jpg",
"banner": "https://example.com/images/sample-banner-52875.jpg",
"profileImageShape": "Circle",
"verified": false,
"isBlueVerified": true,
"verifiedType": null,
"verifiedSince": null,
"isIdentityVerified": false,
"isProtected": false,
"possiblySensitive": false,
"profileInterstitialType": null,
"withheldInCountries": [],
"professional": {
"type": "Creator",
"category": [
{
"id": 144,
"name": "Education",
"icon_name": "IconBriefcaseStroke"
}
],
"restId": "9003039634550660445"
},
"businessAccount": null,
"creatorSubscriptionsCount": 0,
"hasHiddenSubscriptions": false,
"highlightsInfo": null,
"hasGraduatedAccess": true,
"isProfileTranslatable": false,
"hasCustomTimelines": true,
"isTranslator": false,
"affiliatesHighlightedLabel": {
"label": {
"url": {
"url": "https://x.com/sample_user_06517",
"urlType": "DeepLink"
},
"badge": {
"url": "https://example.com/link-94089/profile-29900/media/sample-media-61212.jpg"
},
"description": "Sample description for documentation 12050.",
"userLabelType": "BusinessLabel",
"userLabelDisplayType": "Badge"
}
},
"defaultProfile": true,
"defaultProfileImage": false,
"followerCount": 29294,
"followingCount": 8520,
"tweetCount": 81254,
"listedCount": 172,
"mediaCount": 10183,
"favoritesCount": 324852,
"createdAt": "2017-02-18T15:49:41.000Z"
},
"totalLiveListeners": 3272,
"totalReplayWatched": 13,
"participants": {
"admins": [
{
"periscopeUserId": "1WLERbMWDkWEb",
"twitterUserId": "100808552685023961",
"username": "sample_user_52875",
"displayName": "Web",
"avatarUrl": "https://example.com/images/sample-avatar-52875.jpg",
"isVerified": true,
"isBlueVerified": true,
"isMutedByAdmin": false,
"isMutedByGuest": true,
"startedAt": 1763610684292
},
{
"periscopeUserId": "1zYKbMkApPlQe",
"twitterUserId": "1005805144763258361",
"username": "sample_user_43988",
"displayName": "Dro",
"avatarUrl": "https://example.com/images/sample-avatar-43988.jpg",
"isVerified": true,
"isBlueVerified": true,
"isMutedByAdmin": false,
"isMutedByGuest": true,
"startedAt": 1763610684292
},
{
"periscopeUserId": "1YLEJOpJWzVQN",
"twitterUserId": "100134997510273069",
"username": "sample_user_98911",
"displayName": "Nice",
"avatarUrl": "https://example.com/images/sample-avatar-98911.jpg",
"isVerified": true,
"isBlueVerified": true,
"isMutedByAdmin": false,
"isMutedByGuest": true,
"startedAt": 1763610684292
}
],
"speakers": [
{
"periscopeUserId": "1DLKBnxebLmKJ",
"twitterUserId": "1001228024693567030",
"username": "sample_user_12035",
"displayName": "Ant",
"avatarUrl": "https://example.com/images/sample-avatar-12035.jpg",
"isVerified": true,
"isBlueVerified": true,
"isMutedByAdmin": false,
"isMutedByGuest": true,
"startedAt": 1763649253456
},
{
"periscopeUserId": "1PmKqJMmgBxjo",
"twitterUserId": "1001260066",
"username": "sample_user_84668",
"displayName": "Shield",
"avatarUrl": "https://example.com/images/sample-avatar-84668.jpg",
"isVerified": true,
"isBlueVerified": true,
"isMutedByAdmin": false,
"isMutedByGuest": true,
"startedAt": 1763649603080
}
],
"listeners": [],
"total": 0
},
"isAvailableForReplay": true,
"isAvailableForClipping": true,
"contentType": "visual_audio",
"narrowCastSpaceType": 0,
"conversationControls": 0,
"disallowJoin": false,
"isEmployeeOnly": false,
"isLocked": false,
"isMuted": false,
"noIncognito": false,
"maxGuestSessions": 10,
"maxAdminCapacity": 3,
"topics": [
{
"id": "9001809547494863432",
"name": "NFTs"
},
{
"id": "900512550799709430",
"name": "Cryptocurrencies"
},
{
"id": "900183888543249348",
"name": "Entertainment"
}
],
"tweetId": "2008198802728870650",
"mentionedUserIds": [
"1001260066"
]
}
}API Playground
GET
/tw-v2/space/by-idPress ⌘ + Enter to execute
curl -X GET "https://api.tweetapi.com/tw-v2/space/by-id" \
-H "X-API-Key: YOUR_API_KEY"Response
Click "Try It!" to see the response