Contents
- 1 Requirements
- 2 Introduction
- 3 Steps
- 4 Tips
- 5 Errors
- 5.0.1 There was an error with your request. Please try again.
- 5.0.2 Account Error: could not create google voice account.
- 5.0.3 This phone number can’t be used to sign up for a Google Voice number. Try verifying with another number.
- 5.0.4 Unknown error, You will need to look up another Google Voice number.
Google Voice gives you one number for all your phones, voicemail as easy as email, free US long distance, low rates on international calls, and many calling features like transcripts, call blocking, call screening, conference calling, SMS, and more.
Requirements
- a US Google Account
- US Proxy
- US Virtual Phone Number
- US hosting
Introduction
Send the HTTP request by curl again and again to make the number return to the pool of available numbers.
The HTTP request of sending:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
POST /voice/b/0/service/post HTTP/1.1 Host: www.google.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Accept: */* Accept-Language: en-US,en;q=0.8,zh-CN;q=0.5,zh;q=0.3 Accept-Encoding: gzip, deflate, br Referer: https://www.google.com/voice/b/0 Content-Type: application/x-www-form-urlencoded;charset=utf-8 Content-Length: 72 Cookie: gv=pg****mK02XUA.; GV_NR=1; 1P_JAR=2018-1-15-13; NID=121=KSPx***J0I1s6ZtvXQ64; OGP=-5061451:; S=grandcentral=Lt9V****OA.; HSID=AGgiBzaI5_-DZGZqc; SSID=ApfRUnJYI0O_jfxET; APISID=DMR**xlGng; SAPISID=O1GMD**e; SIDCC=AA**vJ; _ga=GA1.1.1009588688.1516023647; _gid=GA1.1.532992157.1516023647; _gat=1 DNT: 1 Connection: keep-alive sid=3&mid=6&req=[null,"+15134567915",true,""]&_rnr_se=cfq2G***mIyE%3D |
Steps
Set up Google Voice
Use a US proxy to browse the Google Voice.
Choose a Google Voice Number
Input numbers that you want,e.g. 34567,0000,6666
Select one, Format to ten digit numbers, e.g. 5134567915
Link a phone number
Normally, you are not able to gain a number immediately after linking a virtual phone number.
Get the cURL Command
Open Legacy Google Voice, Press F12 or Right-Click–>Inspect Element to open the Web Developer Tools, Switch to Network tab to capture the traffic.
Go to Setting–>Billing, Find the HTTP request, Copy as cURL
1 |
https://www.google.com/voice/b/0/service/post |
Run the Shell Script
1 2 |
screen -S gv wget https://raw.githubusercontent.com/yulahuyed/test/master/gv.sh && bash gv.sh |
Tips
Google Account
Don’t use new Google account to run the shell script, or your account will be easily suspended for violations of our Google Voice Policies.
The Time of Running Shell Script
Spend from a few hours to a whole day to run the shell script. When getting the Google Voice number successfully, the shell script will exit automatically and send a notice to Slack that you have configured on running.
US hosting
You can try Codeanywhere with root SSH.
US Virtual Phone Number
textnow and textPlus are able to pass the verification.
Link a Phone Number
A virtual phone number could be linked no more than three times
Transfer a Google Voice Number
You could transfer the number to another Google account which can be outside the US without linking a phone. After transfer, your linked number will be gone automatically.
When tranferring, the Google Voice will ask to link a forwarding phone. Never mind, just click “Next” and “finish”.
Keep Google Voice Active
Set up a applet of ifttt to call Google Voice once per month/week.
https://ifttt.com/applets/131839p-keep-google-voice-active
Errors
There was an error with your request. Please try again.
Where | Try to choose a phone number on the Legacy Google Voice |
Reason | Even if a number is no longer being used it doesn’t immediately return to the pool of available numbers until a cooling off period. |
Solution | Repeatly send the HTTP request of choosing number to make the number return to the pool |
Source | https://productforums.google.com/d/msg/voice/lYg7vCA9WYQ/0HX821OUdKwJ |
Account Error: could not create google voice account.
Where | Sign up the Google Voice account |
Reason | Outside the USA |
Solution | Use USA Proxy |
Source | https://productforums.google.com/d/msg/voice/7U95FKqf2do/DQFzZBLTBAAJ |
This phone number can’t be used to sign up for a Google Voice number. Try verifying with another number.
Where | Link a phone number |
Reason | the phone number is not available |
Solution | Try another virtual phone number, e.g. textnow |
Source | https://productforums.google.com/forum/#!topic/voice/fhYNsW1B0AM;context-place=topicsearchin/voice/category$3Amaking-and-receiving-calls%7Csort:relevance%7Cspell:false |
Unknown error, You will need to look up another Google Voice number.
Where | After entering the verification code and linking the phone number successfully, refresh the webpage |
Reason | Unknown |
Solution | It doesn’t matter. Just following the Steps. |
Source |
So, it has been fixed now? Does this method still work?
how to run the shell script ?
After Spent from a few hours to a whole day to run the shell script,
Not yet OK.
It’s too late. Maybe the Goolge has fix it.
Yeah, from the “Post” request’s response, mode:block.
Then, Would u have other way to get google voice number? buddy?
Not yet…