Skip to content

Server information ​

List available corpora and general information about the server environment, such as BlackLab version, available corpora and plugins and whether a user is logged-in.

URL

  • /blacklab-server/

Method : GET

Success Response ​

HTTP response code: 200 OK

Content examples ​

A server with one corpus named BaB and no logged-in user might show this result:

(some parts of the response are omitted for brevity)

jsonc
{
  "apiVersion": "5.0",
  "blacklabBuildTime": 2025-06-16T09:06:31Z",
  "blacklabVersion": "4.0.0-SNAPSHOT",
  "blacklabScmRevision": "7e15de7",
  "corpora": {
    "BaB": {
      "status": "available",
      "documentFormat": "zeebrieven",
      "timeModified": "2020-12-08 10:06:26",
      "count": {
        "tokens": 459354,
        "documents": 802
      },
    }
  },
  "user": {
    "loggedIn": false,
    "canCreateIndex": false,
    "debugMode": false
  },
  "plugins": {
    "FileConverter": {
    },
    "DocTaskType": {
    },
    "HitGroupScorerType": {
      "coll-dice": {
        "params": []
      },
      "coll-groupsize": {
        "params": []
      },
      "coll-salience": {
        "params": []
      }
    },
    "IndexSourceType": {
    },
    "ProcessingInstruction": [
      // ...
    ],
    "QueryFunction": [
      "gap": {
        "params": [
          {
            "name": "first",
            "type": "matchInfo",
            "required": true
          },
          {
            "name": "second",
            "type": "matchInfo",
            "required": true
          },
          {
            "name": "directional",
            "type": "boolean",
            "required": false
          }
        ]
      },
      // ...
    ],
    "QueryParserProvider": [
      "corpusql": {
        "params": []
      },
      "contextql": {
        "params": []
      },
      "json-bql": {
        "params": []
      }
    ]
  },
  "config": {
    // ... (sanitized blacklab-server.yaml config)
  }
}

API version differences ​

The major differences between API v4 and v5 are:

  • API v4 includes both corpora and indices. API v5 only has corpora, which doesn't include custom properties like displayName and description unless you specify custom=true.
  • API v5 has a count object with tokens and documents, while API v4 has tokenCount and no document count.
  • API v5 includes plugins and config objects, which are not present in API v4.

Apache license 2.0