Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get tinder token
import json
import requests
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_5 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Mobile/15D60 AKiOSSDK/4.29.0'}
def sendCode(number):
URL = CODE_REQUEST_URL.replace("#placeholder", number)
r =, headers=HEADERS, verify=False)
response = r.json()
if (response.get("login_request_code") == None):
return False
return response["login_request_code"]
def getToken(number, code, req_code):
VALIDATE_URL = CODE_VALIDATE_URL.replace("#confirmation_code", code)
VALIDATE_URL = VALIDATE_URL.replace("#phone_number", number)
VALIDATE_URL = VALIDATE_URL.replace("#request_code", req_code)
r_validate =, headers=HEADERS, verify=False)
validate_response = r_validate.json()
access_token = validate_response["access_token"]
access_id = validate_response["id"]
GetToken_content = json.dumps({'token': access_token, 'id': access_id, "client_version": "9.0.1"})
GetToken_headers = {
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_5 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Mobile/15D60 AKiOSSDK/4.29.0',
'Content-Type': 'application/json'}
r_GetToken =, data=GetToken_content, headers=GetToken_headers, verify=False)
token_response = r_GetToken.json()
if (token_response["data"].get("api_token") == None):
return token_response
return token_response["data"]["api_token"]
phone_number = input("Please enter your phone number under the international format (country code + number)")
log_code = sendCode(phone_number)
sms_code = input("Please enter the code you've received by sms")
print("Here is your Tinder token :" + str(getToken(phone_number, sms_code, log_code)))

This comment has been minimized.

Copy link
Owner Author

philipperemy commented Oct 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.