194

Is there an API (officially or unofficially) for Google Voice? I would like to have an API to work with voicemails, send/receive SMS messages, initiate calls, etc.

What is the Android client using? Something internal? Has anyone documented it?

Syntax Error
  • 4,475
  • 2
  • 22
  • 33
Adam Goode
  • 7,380
  • 3
  • 29
  • 33
  • 2
    A question to ask Google. Voice is still rather in private testing and most of SO would not have an account on Google Voice. – mauris Nov 03 '09 at 16:51
  • You may also want to look into VoiceXML http://en.wikipedia.org/wiki/VoiceXML – Pool Nov 03 '09 at 16:52
  • 2
    VoiceXML is not quite right, since Google Voice does almost no voice processing, just signaling and routing. – Adam Goode Nov 03 '09 at 16:53
  • 2
    An official API is not out yet. But, if you want to experiment with other services similar to Google Voice, check out http://twilio.com or http://aws.amazon.com/sns/ (SMS). – Artem Kalinchuk Dec 06 '11 at 15:26
  • Just a thought, there seems to be a C# Google Voice API. http://sourceforge.net/projects/gvoicedotnet/ – Levi Fuller Sep 10 '15 at 01:14
  • 1
    For Java/Android there is GV4J: https://github.com/twyatt/gv4j – Travis Nov 07 '15 at 19:16
  • This is not an API, but is a Selenium nodejs script, and it works if you want to automatically send a small number of SMS messages using Google Voice: https://github.com/ourarash/autogvoice – Ari Dec 04 '17 at 17:35
  • 1
    A more maintained way to both send **and** receive SMS with Google Voice is to turn on emails in Voice settings and grab your data from there. – NH. Jan 09 '19 at 22:43

6 Answers6

63

No, there is no API for Google Voice announced as of 2021.

"pygooglevoice" can perform most of the voice functions from Python. It can send SMS. I've developed code to receive SMS messages, but the overhead is excessive given the current Google Voice interface. Each poll returns over 100K of content, so you'd use a quarter-gigabyte a day just polling every 30 seconds. There's a discussion on Google Code about this.

najm
  • 834
  • 1
  • 13
  • 32
John Nagle
  • 1,530
  • 1
  • 14
  • 15
7

There is a C# Google Voice API... there is limited documentation, however the download has an application that 'works' using the API that is included:

https://sourceforge.net/projects/gvoicedotnet/

5

Well... These are PHP. There is an sms one from google here.

And github has one here.

Another sms one is here. However, this one has a lot more code, so it may take up more space.

Pubby
  • 51,882
  • 13
  • 139
  • 180
Bob
  • 51
  • 1
  • 2
4

I looked for a C/C++ API for Google Voice for quite a while and never found anything close (the closest was a C# API). Since I really needed it, I decided to just write one myself:

http://github.com/mastermind202/GoogleVoice

I hope others find it useful. Feedback and suggestions welcome.

mastermind202
  • 407
  • 4
  • 5
  • 5
    Its gone now. How did it work and where is it? – 0xcaff Jul 14 '16 at 01:14
  • There's what looks like a fork of it (judging by the "MM" for "mastermind" signature on the README and the commit dates being right before this answer's 9/25/2010 date) here: https://github.com/siraj/GoogleVoice . – ggruen Apr 21 '21 at 21:19
3

Be nice if there was a Javascript API version. That way can integrate w/ other AJAX apps or browser extensions/gadgets/widgets.

Right now, current APIs restrict to web app technologies that support Java, .NET, or Python, more for server side, unless may use Google Web Toolkit to translate Java code to Javascript.

David
  • 3,223
  • 3
  • 29
  • 41
  • Duh, great idea, now for someone to do so. I may try when I have time, not anytime soon. But a JS port may be restricted by XmlHttpRequest limitations within browser. So it will still work best in other unrestricted JS environments like node.js, Windows Scripting Host, Rhino engine, and browser extensions/add-ons/widgets. – David Feb 01 '12 at 08:25
  • 3
    Done. I am the author of https://github.com/amper5and/node-google-voice. – ampersand Apr 08 '12 at 07:01
  • 1
    thanks ampersand, I'll check out this JS implementation sometime. – David Jun 23 '12 at 07:46
3

I needed a C# API and after spending hours looking for it (all I found was outdated and non-working) and unsuccessfully trying to port the PHP/Python/Java versions listed here (none worked either) I decided to create my own. It's SMS-only for now...

https://bitbucket.org/jitbit/sharpgooglevoice/wiki/Home

Alex from Jitbit
  • 53,710
  • 19
  • 160
  • 149