Google Glass Mirror API

Google Glass presentation at SXSW 2013 by Timothy Jordan

google glass api

google glass api

The google glass api is a cloud api that works with restful services and we transport the data through JSON.

Mirror API for Google Glass APPs
In January, Google started to run its first hackathons, in San Francisco and New York, for developers interested in Google Glass and getting an early look at the Mirror API. The Mirror API is essentially a REST API, which should make developing for it very easy for most developers. The Glass device essentially talks to Google’s servers and the developers’ applications then get the data from there and also push it to Glass through Google’s APIs. All of this data is then presented on Glass through what Google calls “timeline cards.” These cards can include text, images, rich HTML and video. Besides single cards, Google also lets developers use what it calls bundles, which are basically sets of cards that users can navigate using their voice or the touchpad on the side of Glass.

SARAH PRICE: Hi, Glass developers.
Welcome to 2013.
I’m Sarah Price, your community advocate.
I’ve been reading all of your comments and questions online,
and I’ve noticed maybe one or two questions about what it’s
going to be like to develop for Glass.
You want to know what the API is like.
You want to know what languages you can use.
You know what I mean.
So to help answer those questions, I want to introduce
you today to some members of our developer relations team,
Jenny and Timothy.

JENNY MURPHY: Hi, I’m Jenny, and I’m a Glass Developer
Programs Engineer.

TIMOTHY JORDAN: And I’m Timothy Jordan.
I’m a Glass Developer Advocate.

SARAH PRICE: So Jenny, can you tell us a little bit about
what it’s going to be like to develop for Glass?

JENNY MURPHY: Absolutely.
Development on Glass is done with something called the
Mirror API, and it’s basically a collection
of RESTful web services.
One of the great parts about this is if you’ve done any
development with other web services at Google, you’ll
feel right at home developing on Glass.

SARAH PRICE: So I’m actually not very familiar with RESTful
web services.
What kinds of languages could I use to develop using them?

JENNY MURPHY: That’s one of the great parts about RESTful
web services.
They’re inherently language-independent, so you
can develop with whatever tools or languages are your
favorite, whether that be PHP or Python or even Java.

SARAH PRICE: Well, the next question I’ve seen a lot is,
when are people going to get access?

TIMOTHY JORDAN: Well, that’s something that we’re excited
to announce today.
For developers in the Glass Explorer program, we’re
putting together what we call the Glass Foundry.
You can think of it as kind of a vacation with Glass.
For two full days, in San Francisco or New York, you’ll
get early access to Glass and the Mirror API.
It’s going to be a lot of fun, and we’ll send an invite out
to your email shortly.
Space is limited, so please sign up right away.

SARAH PRICE: Well, thanks so much, guys.
I’ve seen so many great suggestions from developers
for what you want to do with Glass.
I can’t wait to see what they put together.
So thanks, and see you at the Glass Foundry.

Glass Developer UpdateAn introduction to the Mirror API and the Glass Developer Relations team We also discuss Glass Foundry, a limited event for developers in the Glass Explorer …

2013 is here, and that means we’re getting Glass ready for developers with the Google Mirror API. It’s a cloud API that uses RESTful web services, so you should feel right at home if you’ve already developed for YouTube, Drive, or Google+. And, you can use any programming language that you prefer. We recently shared this information in a Glass Developer Update to our Glass Explorers, who signed up to test Glass during #IO2012.

We’re inviting some of the Glass Explorers to a hackathon to help us test the API and give us feedback. It’s still early and so the documentation isn’t publicly available yet. But stay tuned for more updates this year. We know you’re eager for information and we can’t wait to see what you will build.


@projectglass Is there a software emulator for glass? I’d like to develop some apps asap.
@info_man The Mirror API uses RESTful web services & you can use any language you choose. More info about developing for Glass later.

@projectglass Will there be any mechanism to pull up an arbitrary site on Glass? Or only through the Mirror API?

.@kinlane have you, or has anyone out there, used the #MirrorAPI? My team & I are aiming to create incredible #AR experiences & need info
@ryangeftmangold no I haven’t personally. Maybe some of my followers have.
@ryangeftmangold @kinlane I have but am under NDA so won’t be much help with details unfortunately!
@beaugunderson @kinlane are Hackathons attendees under NDA? Or is this because of something else? Or, LOL, are you able to say?

How the Google Glass Mirror API works

A timeline card, which can contain an image, text, audio or video, can be inserted on a Glass user’s timeline with an HTTP Post command. Get and Update (Put) actions are also supported. Message encoding is done using JSON. In code, a sample text message would be sent to Google in the form { “text” : “Your ad here”}, preceded by the appropriate HTTP header. HTML markup can be sent as well, to provide more a visually appealing design.
Timeline cards support a few parameters that affect the mode of presentation. Formatted thus — { “text” : “Your ad here”, “cardOptions” : [{ "action" : "READ_ALOUD" }] } — a Glass user would hear the message read back using a text-to-speech voice. If nothing else, Project Glass has a bright future as an accessory for guided museum tours.

Google Project Glass API Details Emerge — InformationWeek(click image for larger view and for slideshow) Google has revealed more details about how Project Glass will work, providing developers with a sense of the kinds of applications they will be able to build for Google’s Internet-connected eyewear. Project Glass developer evangelist Timothy Jordan on Monday delved into the workings of Project Glass at the SXSW conference in Austin, Texas.