Skip to main content
Skip table of contents

Confluence Search API

Queries the Confluence search API to find all content created by a specific user.

Datasource

Datasource type

REST Basic

Datasource URL

http://your-confluence-host/rest/api

Datasource Test URL

content

Datasource User

Confluene user for the search

Datasource Password

The user’s password

Query

Query URL

content/search?cql=creator=:creator

Example parameters

  • creator: admin

Raw result

CODE
{
    "results": [
        {
            "id": "360466",
            "type": "attachment",
            "status": "current",
            "title": "pie.png",
            "restrictions": {},
            "_links": {
                ...
            },
            "_expandable": {
                ...
            }
        },
        ...
    ],
    "start": 0,
    "limit": 25,
    "size": 11,
    "cqlQuery": "creator=admin",
    "searchDuration": 21,
    "totalSize": 11,
    "_links": {
        ...
    }
}

Converter

CODE
function convert(json) {
    var items = JSON.parse(json).results;
    return items.map(function(item) {
        return {
            'Title': item.title,
            'Page ID': item.id,
            'Content Type': item.type
        };
    });
}

This will produce something like:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.