Any public JSON activity streams?

246 views
Skip to first unread message

Robin Zimmermann

unread,
Dec 30, 2011, 6:32:30 PM12/30/11
to Activity Streams
Hi,

Are there any JSON activity streams that are publicly available? I
would like to test consuming a stream.

Thanks!

Robin.

James Snell

unread,
Dec 30, 2011, 7:43:00 PM12/30/11
to activity...@googlegroups.com
Robin, Google+ has real-world public activity stream feeds available.
You just need one of their API Keys. Go to
http://developers.google.com/+/api/ for details. You can also use the
Abdera2 Activity Streams implementation
(http://svn.apache.org/repos/asf/abdera/abdera2/) to test against for
interop. It contains a mechanism for converting Atom feeds into
Activity Streams that you can then run through your parser.

- James

> --
> You received this message because you are subscribed to the Google Groups "Activity Streams" group.
> To post to this group, send email to activity...@googlegroups.com.
> To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
>

Tantek Çelik

unread,
Dec 30, 2011, 7:47:52 PM12/30/11
to activity...@googlegroups.com
Jason,

Is there a page on the ActivityStreams wiki that lists these (semi*)public JSON Activity Streams and open source publishing implementations thereof?

Thanks,

Tantek

*semi because "API key required" is not really public.

Evan Prodromou

unread,
Dec 31, 2011, 1:00:12 AM12/31/11
to activity...@googlegroups.com, Robin Zimmermann
Every stream on http://identi.ca/ and other StatusNet sites has a linked
Activity Streams representation, using <link> and an <a> in the sidebar.

-Evan

James Snell

unread,
Dec 31, 2011, 3:36:46 AM12/31/11
to activity...@googlegroups.com, Robin Zimmermann
Evan, great to see but I notice there are some inconsistencies between
the streams published there and the spec. For one, the "count" field
in the stream should be "totalItems", the "type":"note" on the objects
should be "objectType":"note", the "tags" property should be an array
of objects, not strings, and the geopoint element duplicates the
functionality of the "location" property defined in the schema spec
document. As it stands, Abdera2 is able to parse the identica feeds,
but it's not able to handle each object type properly because of the
use of "type" instead of "objectType"

- James

Evan Prodromou

unread,
Dec 31, 2011, 4:19:30 AM12/31/11
to activity...@googlegroups.com
On 12/31/2011 12:36 AM, James Snell wrote:
> Evan, great to see but I notice there are some inconsistencies between
> the streams published there and the spec. For one, the "count" field
> in the stream should be "totalItems", the "type":"note" on the objects
> should be "objectType":"note", the "tags" property should be an array
> of objects, not strings, and the geopoint element duplicates the
> functionality of the "location" property defined in the schema spec
> document. As it stands, Abdera2 is able to parse the identica feeds,
> but it's not able to handle each object type properly because of the
> use of "type" instead of "objectType"
>
Good to know! Yes, I think we've been tracking the spec for a while and
got out of sync at some point.

Should be pretty easy to get these up to date, and we'll include the
changes in the upcoming 1.1 version of the software.

-Evan

Evan Prodromou

unread,
Dec 31, 2011, 5:36:08 AM12/31/11
to activity...@googlegroups.com, James Snell, Robin Zimmermann
So, I think we caught up, there. Let me know what you think.

-Evan

On 12/31/2011 12:36 AM, James Snell wrote:

Pelle Wessman

unread,
Dec 31, 2011, 5:49:18 AM12/31/11
to activity...@googlegroups.com
There's two public JSON Activity Streams for every user on Flattr.com, a unified stream is upcoming and until then we have no auto-discovery mechanism for it. I don't think we have documented the Activity Streams format in our public documentation yet, but I blogged about it when we launched it: http://voxpelli.com/2011/10/activity-streams-flattr-api/

/ Pelle

Martin Atkins

unread,
Jan 2, 2012, 12:40:56 PM1/2/12
to activity...@googlegroups.com
On 12/30/2011 03:32 PM, Robin Zimmermann wrote:
> Hi,
>
> Are there any JSON activity streams that are publicly available? I
> would like to test consuming a stream.
>

In addition to what everyone else mentioned, some implementations are
documented on the wiki:

http://wiki.activitystrea.ms/w/browse/#view=ViewFolder&param=Implementations

However, some of this information is pretty old and so may be inaccurate.

James Snell

unread,
Jan 2, 2012, 7:02:02 PM1/2/12
to Evan Prodromou, activity...@googlegroups.com, Robin Zimmermann
Looking good for the most part. Double check the geo coordinates in
your location.position property, it looks like there's an extra period
(.) being inserted between the latitude and longitude.

This: position: "+38.25031.-92.50046/",

Should be: position: "+38.25031-92.50046/",

- James

James Snell

unread,
Jan 3, 2012, 1:08:33 PM1/3/12
to activity...@googlegroups.com
Great to see. Just confirmed that will a cpl bug fixes on my end
Abdera2 is working great with the flattr and statusnet streams. Good
stuff.

> --
> You received this message because you are subscribed to the Google Groups
> "Activity Streams" group.

> To view this discussion on the web visit
> https://groups.google.com/d/msg/activity-streams/-/xU_wbp_-V4IJ.

Paul Lindner

unread,
Jan 3, 2012, 1:55:55 PM1/3/12
to Activity Streams
I haven't tested our conformance on Google+, but you can see our json
activitystream output here:

https://developers.google.com/+/api/latest/activities#resource

On Dec 30 2011, 3:32 pm, Robin Zimmermann <robin.zimmerm...@gmail.com>
wrote:

James Snell

unread,
Jan 3, 2012, 3:48:25 PM1/3/12
to activity...@googlegroups.com
Paul, conformance is pretty google with G+, there are a couples nits
here and there tho...

1. The geocode stuff in the Activity
(https://developers.google.com/+/api/latest/activities#resource)


duplicates the functionality of the "location" property defined in the

Activity Schema spec
(http://activitystrea.ms/head/activity-schema.html#location) ...

Example.. this is what's in the G+ Activity:

"geocode": string,
"address": string,
"radius": string,
"placeId": string,
"placeName": string

This just re-invents what's in the schema spec, only not as well..
(use position instead of geocode, use displayName instead of
placeName,

"location": {
"displayName": "Place Name",
"position": "+27.5916+086.5640+8850/",
"id": "urn:whatever:the.place.id",
"address": { ... },
"radius": 10
}

2. I'm confused by the crosspostSource property. Given the definition
in the documentation, crosspostSource seems to duplicate the function
of the upstreamDuplicates property, if so, not sure why not just use
that? I'd rather not have to write code to look for another id field
when performing identity equivalence checks.

> --
> You received this message because you are subscribed to the Google Groups "Activity Streams" group.

Paul Lindner

unread,
Jan 4, 2012, 1:43:55 PM1/4/12
to Activity Streams, Will Norris
Thanks for the feedback. I'll see what we can do to get better
conformance.

Duong, hai Nam

unread,
Jan 7, 2012, 2:57:09 PM1/7/12
to activity...@googlegroups.com
Hello everyone,
 
that is great to know that, activity streams is an "extension" of ATOM (XML), also is one Syndication Format.
 
In the .NET world Microsoft  has a foundation for creating Syndication Format like Atom 1.0 and RSS 2.0, which were inherited from syndication format object.
 
 
Do someone of you know, if there is an object for activity stream format like: Atom10FeedFormatter (http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.atom10feedformatter.aspx) in .NET?
 
I really need an object like "AtomActivityStream10Formatter" for my project :)
 
if there are not, should i derivite the Atom10FeedFormatter or SyndicationFormatter.
 
Thanks alot and happy weekend,
 
Hai-Nam
 


 
  

Patrick Gidich

unread,
Jan 8, 2012, 9:01:35 PM1/8/12
to activity...@googlegroups.com
I have not come across anything, working on building a json based one now.
--
Reply all
Reply to author
Forward
0 new messages