Clubhouse API

Clubhouse is a new type of network based on voice. When you open the app you can see “rooms” full of people talking—all open so you can hop in and out, exploring different conversations. You enter each room as an audience member, but if you want to talk you just raise your hand, and the speakers can choose to invite you up. Or you can create a room of your own.

It’s a place to meet with friends and with new people around the world—to tell stories, ask questions, debate, learn, and have impromptu conversations on thousands of different topics.

Authentication

There is a multi-level authentication by phone number :

Start

At first you need some collection variables :

There is a script in Complete request to set auth_token and user_id. Otherwise, enter them manually.

Also, you need to set your phone number and email address.

Support

Contributing & Issues

Each project may have many problems. Contributing to the better development of this project by reporting them.

Emailinfo@arash-hatami.ir
Websitehttps://arash-hatami.ir

Authentication

There is a multi-level authentication by phone number :

POSTCheck

https://www.clubhouseapi.com/api/start_phone_number_auth

Check user’s status and send verification code via SMS.

HEADERS

CH-Languages

en-US

CH-Locale

en_US

Accept

application/json

Accept-Encoding

gzip, deflate

CH-AppBuild

304

CH-AppVersion

0.1.28

User-Agent

clubhouse/304 (iPhone; iOS 14.4; Scale/2.00)

Connection

close

Content-Type

application/json; charset=utf-8

Bodyraw

{
    "phone_number": "<phone number>"
}

Example Request

SuccessfulView More

python

import requests
import json

url = "https://www.clubhouseapi.com/api/start_phone_number_auth"

payload = json.dumps({
  "phone_number": "+989123456789"
})
headers = {
  'CH-Languages': 'en-US',
  'CH-Locale': 'en_US',
  'Accept': 'application/json',
  'Accept-Encoding': 'gzip, deflate',
  'CH-AppBuild': '304',
  'CH-AppVersion': '0.1.28',
  'User-Agent': 'clubhouse/304 (iPhone; iOS 14.4; Scale/2.00)',
  'Connection': 'close',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Example Response

javascript

{
  "success": true,
  "is_blocked": false,
  "error_message": null
}

POSTCall

https://www.clubhouseapi.com/api/call_phone_number_auth

Call the person and send verification message if SMS not delivered.

HEADERS

CH-Languages

en-US

CH-Locale

en_US

Accept

application/json

Accept-Encoding

gzip, deflate

CH-AppBuild

304

CH-AppVersion

0.1.28

User-Agent

clubhouse/304 (iPhone; iOS 14.4; Scale/2.00)

Connection

close

Content-Type

application/json; charset=utf-8

Bodyraw

{
    "phone_number": "<phone number>"
}

Example Request

SuccessfulView More

python

import requests
import json

url = "https://www.clubhouseapi.com/api/start_phone_number_auth"

payload = json.dumps({
  "phone_number": "+989123456789"
})
headers = {
  'CH-Languages': 'en-US',
  'CH-Locale': 'en_US',
  'Accept': 'application/json',
  'Accept-Encoding': 'gzip, deflate',
  'CH-AppBuild': '304',
  'CH-AppVersion': '0.1.28',
  'User-Agent': 'clubhouse/304 (iPhone; iOS 14.4; Scale/2.00)',
  'Connection': 'close',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Example Response

javascript

{
  "success": true,
  "error_message": null
}

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *