Get an unstructured document's metadata - Fluid Topics - Latest

Integrate the Fluid Topics API

Category
Technical Notes
Audience
public
Version
Latest

The Get a document's metadata web service retrieves the title and metadata of an unstructured document:

/api/khub/documents/{docId}

Where:

  • /documents lists all the unstructured documents stored on the Fluid Topics server.
  • /{docId} retrieves all information about the document. /api/khub/documents provides the document ID.

The output returns a list of all metadata keys and values associated with the unstructured document.

For example, calling /api/khub/documents/n4cQEkKM8SM1f3zRPe_Bfg returns the following JSON output containing data about the image Standard Time Zones of the World:

[
  {
    "id": "n4cQEkKM8SM1f3zRPe_Bfg",
    "filename": "standard_time_zones_of_the_world.png",
    "title": "standard_time_zones_of_the_world.png",
    "mimeType": "image/png",
    "lastEdition": "2020-02-12",
    "lastPublication": "2020-01-30T13:32:14.569295",
    "baseId": "standard-time-zones-of-the-world",
    "originId": "documents/standard_time_zones_of_the_world.png",
    "clusterId": "standard-time-zones-of-the-world",
    "description": "standard time zones of the world",
    "khubVersion": "3.7.6",
    "openMode": "FLUIDTOPICS",
    "prettyUrl": "/v/u/standard-time-zones-of-the-world",
    "rightsApiEndpoint": "/api/khub/documents/n4cQEkKM8SM1f3zRPe_Bfg/rights",
    "contentApiEndpoint": "/api/khub/documents/n4cQEkKM8SM1f3zRPe_Bfg/content",
    "viewerUrl": "/v/u/standard-time-zones-of-the-world",
    "metadata": [
      {
        "key": "ud:id",
        "label": "ud:id",
        "values": [
          "standard_time_zones_of_the_world.png"
        ]
      }
    ]
  }
]