Twitter Goes JSON-Only With One API, More to Come?

Adam DuVander, November 10th, 2010

TwitterAnyone requesting XML from the Twitter streaming API better switch to JSON as soon as possible. Starting in early December, the microblogging service will only send JSON-formatted responses from its popular new streaming API, the recommended way to get search results as they happen.

Twitter’s Taylor Singletary explains the change:

We will end support for XML on all Streaming APIs on Dec 6th, 2010, after encouraging developers to use JSON-based output formats for some time now. This deprecation does not apply to the REST or Search APIs, but all clients requesting XML from stream.twitter.com, regardless of role and method
(sample, filter, follow, etc) will be affected.

As the announcement says, this currently does not affect other APIs, such as the Twitter Search API or the flagship Twitter API, which supplies user timelines and other data. However, we have to expect that this is a sign of future changes. Singletary points out that Twitter’s newest APIs only use JSON, which pushes further the argument that an XML-less Twitter API is in the cards.

We called these newer streaming APIs a glimpse of the future of real-time. It seems that future may not have XML. After all, JSON is the developer’s choice.

Tags: Twitter
Both comments and pings are currently closed.

7 Responses to “Twitter Goes JSON-Only With One API, More to Come?”

November 10th, 2010
at 9:18 pm
Comment by: Abraham Williams

A couple of Twitter’s newer API methods were already JSON only. It would not surprise me if version 2 of the REST API is JSON only.

http://dev.twitter.com/doc/get/trends
http://dev.twitter.com/doc/get/geo

Foursquare had an rfc earlier in which they are considering making version 2 of their API be JSON only.

http://groups.google.com/group/foursquare-api/browse_thread/thread/5b0fb516538c64a0

November 14th, 2010
at 2:59 pm
Comment by: intrader

Has twitter considered YAML?

November 14th, 2010
at 5:49 pm
Comment by: Corey Ballou

The bandwidth savings of removing XML API calls and responses is fairly substantial given the number of third party applications.

November 15th, 2010
at 12:03 pm
Comment by: » links for 2010-11-15 (Dhananjay Nene)

[...] Twitter Goes JSON-Only With One API, More to Come? Aaah! Strike 1 : JSON vs XML RT: @surya_s RT @newsycombinator: Twitter Goes JSON-Only With One API http://j.mp/dkxqMr (tags: via:packrati.us) [...]

November 15th, 2010
at 9:03 pm
Comment by: links for 2010-11-15 — Business Developer Talk

[...] TalkA podcast by developers for developerslinks for 2010-11-15by delicious on November 15, 2010Twitter Goes JSON-Only With One API, More to Come?Learning PHP: Working with Conditional Statements301 Redirect or Rel=Canonical – Which One [...]

December 3rd, 2010
at 7:19 am
Comment by: JSON Continues its Winning Streak Over XML | Another Newyork Times

[...] interest this week in the XML versus JSON debate. We had earlier reported that come early December, Twitter plans to stop support for XML in its Streaming API. So in case you are late into this news, the deadline is Dec 6th. If your app still expects XML, [...]

December 4th, 2010
at 8:04 am
Comment by: JSON vs XML: Programmableweb declare JSON largement gagnant | Veille IT

[...] face à XML en qualifiant le choix des éditeurs de presque unanimes. Certains géants comme Twitter ont même annoncé l’arrêt futur d’XML. Après le recul des Webservices SOAP face à REST par les ténors du Web tels que Google, voici [...]

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.