$7,000 of Coffee in Two Days: an API to Check the Balance of One Developer's Active Starbucks Card

Jonathan Stark's Starbucks card is seeing a lot of use this week. That's because he's sharing it with the whole Internet. Anonymous people are both using and adding money to the card and we can all follow the balance with the Jonathan's Card API or over the tweets which come rolling in once per minute.

Anyone can download an image of Stark's card and use it on a mobile device capable of displaying the image to make a purchase. And using the card number, anyone can add money at Starbucks' website. Stark seeded the card with $300, but there has already been over $7,000 of purchases run through the card in what Stark calls "an experiment in social sharing of physical goods using digital currency on mobile phones."

Before Stark chose to make the experiment public, he decided to build an API to get at the data. "It was a preemptive move given that I knew I would get questions from people interested in seeing the data and building something with the data," Stark said. He had the idea on a Saturday night and took about a day to build what he calls a "super easy" project.

Already many developers have built ways of visualizing the data. The Atlantic charted the balance over time (see above), showing the effects of a Hacker News item and a Techcrunch post.

To get at the data which powers Stark's API, he has to scrape the Starbucks website once per minute. That's because Starbucks doesn't have a public API. "I can imagine use cases where developers could build an app on top of the Starbucks API," Stark said. "Instead of releasing an app they could release an API and let developers build on top of it."

"My total dream would be if they contacted me and said 'how should we set up our API,'" Stark said. He would want transaction and location data from a proper Starbucks API, something that he doesn't currently get by scraping. He admits Starbucks might not provide it because most people already know where they bought coffee and how much it cost. "Well, I don't," he said.

Stark hopes others will make their cards available similarly, perhaps with smaller groups rather than the whole Internet. He is planning to open source his code once he has removed any personal details like API keys from the code. If you're interested, watch his Github page.

But how much longer will his card be available? "I think the experiment itself will continue as long as someone will keep putting $10 on it," Stark said. And according to Stark, who has kept his contributions to the initial $300, if the balance ever remained $0 for long, he'd pony up more cash himself, just to keep it going.

Be sure to read the next Financial article: Robot Trading Produces Automatic Profits


Comments (2)

[...] week we had 61 new APIs added to our API directory including a cloud storage service, a social sharing experiment, a web polling service, open source government data, a mapping search service, and a restaurant [...]

[...] $7,000 of Coffee in Two Days: an API to Check the Balance of One Developer’s Active Starbucks Card - Programmable Web Kommentare: 0 Tweets: 0 Facebook-Likes: 0 10.08.2011 Ads_BA_AD('FOOT'); Das könnte dich auch interessieren:Nützliche Social Media Apps für unterwegsFür Social Media Fans hat sich in den letzten Monaten sehr viel verändert.Social Media-Trendmonitor 2011Unternehmen wollen dabei sein, aber kostenlosRund 80 Prozent der Unternehmen in Deutschland wollen ihre Social Media Aktivitäten in den kommenden Monaten...Das Ende des Social-Media-Beraters ist nahe......behauptet jedenfalls Mark Evans vom Social-Media-Monitoring-Spezialisten sysomos.Social Media Revolution #3 - Überraschende und beeindruckende Fakten zum Social WebAuch die mittlerweile dritte Auflage des Videos Social Media Revolution präsentiert wieder zahlreiche Zahlen, Fakten... Weitere Artikel zu Social Media [...]