• Home /
  • Sources /
  • Wordpress /
  • Data Format
  • Data Format


    The following table describes the root-level object for Wordpress activities in Gnip’s Activity Streams format.

    verb

    "post", "like" or "unlike". Note that post can apply to the creation of both comments and articles (see "Types of Activities" above). For a description of AS verbs see http://activitystrea.ms/head/activity-schema.html#verbs..

    "verb":"post"
                			

    postedTime

    The publish time of the activity.

    "postedTime":"2011-12-20T18:14:51.000Z"
                			

    body

    Only present for comment activities. This contains the text of the comment.

    "body":"I'm liking that idea"
                			

    displayName

    The title of the article being posted or commented on. Not present for likes and unlikes.

    "displayName":"First Post, More to come. So much more..."
                			

    location.geo

    Optional. Included where a Wordpress author chooses to include geo data in a post, as described here.

    "location":
    {
        "geo":
        {
            "type": "Point",
            "coordinates": [-108.70545, 35.529095]
        }
    }
                			

    gnip.publisher

    An object identifying the publisher--wordpresscom or wordpressorg. Only included in Automattic PowerTrack, not the individual wordpress streams.

    Note that IntenseDebate content also contains this field within Automattic PowerTrack streams, with corresponding publisher information.

    "gnip":
    {
        "publisher":
        {
            "name":"wordpresscom"
        }
    }
                			

    actor

    The person performing the action (posting the article or comment, liking or unliking the article).

    Show Sub-field Details

    Property Description
    id A unique IRI for the person who generated the activity.

    Actor IDs are not unique across all of wordpress. They are unique across wordpress.com, and within each wordpress.org blog. They are not unique across wordpress.org blogs or across wordpress.org and wordpress.com.

    Unique wordpress user IDs can be created by using user ID for wordpress.com and a combination of blog ID and User ID (e.g. "blogID:UserID") for wordpress.org.

    "id":"person:wordpress.com:30144526"
                                                
    objectType "person" See http://activitystrea.ms/head/activity-schema.html#person for more detailed information.

    "objectType":"person"
                                               
    link A permalink to the person.

    "link":"http://gravatar.com/coffeeandconfidence"
                                               
    displayName The person's name.

    "displayName":"coffeeandconfidence"
                                               
    wpEmailMd5 An md5 hash of the person's email. This value can be used to get the person's gravatar.(http://www.gravatar.com/avatar/<md5>)

    "wpEmailMd5":"3ea634fa6c83749c4e1ecee8f22356f9"
                                               
    "actor":
    {
        "id":"person:wordpress.com:30144526",
        "link":"http://gravatar.com/coffeeandconfidence",
        "wpEmailMd5":"3ea634fa6c83749c4e1ecee8f22356f9",
        "displayName":"coffeeandconfidence",
        "objectType":"person"
    }
                            

    object

    An object representing the comment or article that is being posted, liked or unliked. See "Types of Activities" above for more details.

    Show Sub-field Details

    Property Description
    id A unique IRI for the article or comment.

    "displayName":"Foursquare"
                                                
    objectType Either "article" or "comment", depending on the type of activity.

    "objectType":"article"
                                               
    link A permalink to the article or comment.

    "link":"http://coffeeandconfidence.wordpress.com/2011/12/20/first-post-more-to-come-so-much-more/"
                                               
    postedTime A timestamp for when the article or comment was created.

    "postedTime":"2011-12-20T18:17:30.000Z"
                                               
    updatedTime A timestamp for when the article was last updated.

    "updatedTime":"2011-12-20T18:14:49Z"
                                               
    displayName Title of the article or comment.

    "displayName":"Comment on Overheard on CNN.com: Congress' lack of action sparks anger by carla"
                                               
    summary Optional. A short summary of the article, html encoded, containing no markup.

    "summary":"http://youtu.be/IxuDoYhQI2o I don’t know what made me love him. Androgyny is a powerful magnet…And he’s using it to the best of his abilities. Never before has a too short, black, crushed velvet shirt entertained me so. Maybe it’s the cult he was in. Mystery wrapped inside enigmas and all that. Lots of flowers everywhere. Then [...]"
                                               
    content The full content of the comment or article. For articles, this is optional, but where present contains the full content in html format.

    "content":"I'm liking that idea"
                                               
    wpBlogId The WordPress Blog ID.

    "wpBlogId":30631836
                                               
    wpCommentCount Optional. The number of comments on the article.

    "wpCommentCount":141
                                               
    wpPostId The WordPress Post ID.

    "wpPostId":105729
                                               
    inReplyTo Optional. Exists when a comment is in reply to another comment. Will include a permalink to the replied-to comment ("link").

    "inReplyTo":
    {
          "link":http://news.blogs.cnn.com/2011/12/20/overheard-on-cnn-com-mad-as-hell-with-congress/comment-page-2/#comment-980849
    }
                                               
    tags Optional. Exists as an array when the author chooses to tag the post with one or more topics.

    "tags": [
      {
        "objectType": "category",
        "displayName": "congress",
        "link": "http:\/\/en.wordpress.com\/tag\/congress"
      }
    ]
                                               
    "object":
    {
        "id":"comment:wordpress.com:11591264:105729:981031",
        "content":"I'm liking that idea",
        "inReplyTo":
        {
          "link":http://news.blogs.cnn.com/2011/12/20/overheard-on-cnn-com-mad-as-hell-with-congress/comment-page-2/#comment-980849
        },
        "link":"http://news.blogs.cnn.com/2011/12/20/overheard-on-cnn-com-mad-as-hell-with-congress/comment-page-2/#comment-981031",
        "postedTime":"2011-12-20T18:17:30.000Z",
        "displayName":"Comment on Overheard on CNN.com: Congress' lack of action sparks anger by carla",
        "objectType":"comment",
        "tags": [
          {
            "objectType": "category",
            "displayName": "congress",
            "link": "http:\/\/en.wordpress.com\/tag\/congress"
          }
        ]
    }
                            

    target

    Depending on the type of activity, an object representing either the Wordpress site where the article is located, or the article the user is commenting on. See "Types of Activities" above for more info.

    Show Sub-field Details

    Property Description
    id A unique IRI for the blog or article.

    "id":"article:wordpress.com:11591264:105729"
                                                
    objectType Either "blog" or "article", depending on the type of activity.

    "objectType":"article"
                                               
    link A permalink to the blog or article.

    "link":"http://news.blogs.cnn.com/2011/12/20/overheard-on-cnn-com-mad-as-hell-with-congress/"
                                               
    displayName The title of the blog or article.

    "displayName":"Overheard on CNN.com: Congress' lack of action sparks anger"
                                               
    author Only present for comments. An object representing the author of the article.

    "author":
    {
          "id":"person:wordpress.com:4480249",
          "link":"http://gravatar.com/masimon",
          "wpEmailMd5":"8d115c727dd66f465f38f3237770de8d",
          "displayName":"Mallory Simon, CNN News blog editor",
          "objectType":"person"
    }
                                               
    wpPostId The WordPress Post ID.

    "wpPostId":105729
                                               
    wpCommentCount Only present for articles. This is the number of comments on the article.

    "wpCommentCount":141
                                               
    summary Optional. A short description of the blog, or a short summary of the article, html encoded, containing no markup.

    "summary":"Editor's note: This post is part of the Overheard on CNN.com series, a regular feature that examines interesting comments and thought-provoking conversations posted by the community. Congress showed little sign of resolving its partisan standoff Tuesday over the payroll tax cut extension as the Republican-controlled House of Representatives passed a measure expressing disapproval of a [...]"
                                               
    wpBlogId The WordPress Blog ID.

    "wpBlogId":11591264
                                               
    "target":
    {
        "id":"article:wordpress.com:11591264:105729",
        "summary":"Editor's note: This post is part of the Overheard on CNN.com series, a regular feature that examines interesting comments and thought-provoking conversations posted by the community. Congress showed little sign of resolving its partisan standoff Tuesday over the payroll tax cut extension as the Republican-controlled House of Representatives passed a measure expressing disapproval of a [...]",
        "author":
        {
              "id":"person:wordpress.com:4480249",
              "link":"http://gravatar.com/masimon",
              "wpEmailMd5":"8d115c727dd66f465f38f3237770de8d",
              "displayName":"Mallory Simon, CNN News blog editor",
              "objectType":"person"
        },
        "wpCommentCount":141,
        "link":"http://news.blogs.cnn.com/2011/12/20/overheard-on-cnn-com-mad-as-hell-with-congress/",
        "wpBlogId":11591264,
        "displayName":"Overheard on CNN.com: Congress' lack of action sparks anger",
        "objectType":"article",
        "wpPostId":105729
    }
                            

    provider

    An object representing the service where the data came from (i.e. WordPress API)
    Show Sub-field Details

    Property Description
    link A unique IRI for the person who generated the activity.

    "link":"http://im.wordpress.com:8008/posts.json"
                                                
    objectType "service"

    "objectType":"service"
                                               
    displayName The name of the provider.

    "displayName":"WordPress"
                                               
    "provider":
    {
        "link":"http://im.wordpress.com:8008/posts.json",
        "displayName":"WordPress",
        "objectType":"service"
    }
                            

    Sample Payloads