IBM Connections 4 API: How to Get the Comments of a Wiki Page Using jQuery Ajax


IBM Connections 4 expose a way to get the comments of a wiki page. Here's one easy way to do it with an asynchronous HTTP (Ajax) request using jQuery.

There is not a link to IBM Connections 4 documentation.

Atom API Request Details


Content-Type : application/atom+xml;type=entry;charset=UTF-8





Example f38e0-45-4cb-8a2e-74a3f97/page/56dc-a2-45-89-894c32/feed

Additional Parameters

ps Page size. Specifies the number of comments to return.


Status Code: 200 OK
Example using jQuery

    url : "",
    type : "GET",
    contentType: "application/atom+xml;charset=UTF-8",
    async : true,
	statusCode : {        
		200 : function(xml) {
    error: function(jqXHR, textStatus, errorThrown) {
        console.log(jqXHR + " - " + textStatus + ' - ' + errorThrown);

Note:  console.log can throw errors in IE, they are there for illustrative purposes only and should be changed as required.

Example Response

 <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:thr="" xmlns:opensearch="" xmlns:snx="" xmlns:td="" xmlns="">
    <generator version="" uri="">IBM Connections - Wikis</generator>
    <link href="" rel="self"></link>
    <title type="text">page 1 test</title>
    <app:collection href="" xmlns:app="">
        <title type="text">page 1 test</title>
        <category term="comment" scheme=",2006:td/type" label="comment"></category>
        <title type="text">Re: page 1 test</title>
        <link href="" rel="self"></link>
        <link href="" rel="alternate" type="text/html"></link>
        <link href="" rel="edit"></link>
        <link href="" rel="edit-media"></link>
        <content type="text">comment 4</content>

About the author

Enterprise Web Developer
Joaquin is an Enterprise Web Developer at Base22 with over seven years of experience designing and developing web solutions for enterprise clients. He is a well rounded web developer with skills building interfaces in IBM WebSphere Portal and WCM, IBM Connections, and many others. He is an Oracle Certified Java Developer and a Microsoft Certified Visual Studio Developer. He blogs at