---
agentTools:
  projectIndex: https://seafile-api.readme.io/llms.txt
---

# Get metadata record

Get detailed information of the specified metadata record.

# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Metadata Operations - User",
    "description": "The official Seafile API Reference (OpenAPI 3.0). - Part 'User Metadata Operations'.",
    "version": "13.0"
  },
  "servers": [
    {
      "url": "https://{server}",
      "variables": {
        "server": {
          "default": "cloud.seafile.com"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "metrics-enabled": false,
    "proxy-enabled": false
  },
  "components": {
    "securitySchemes": {
      "AccountTokenAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This is the [Account-Token](/reference/authentication)."
      }
    },
    "parameters": {
      "parent_dir": {
        "name": "parent_dir",
        "in": "query",
        "description": "Path to the parent_dir",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "file_name": {
        "name": "file_name",
        "in": "query",
        "required": true,
        "description": "filename",
        "schema": {
          "type": "string"
        }
      },
      "repo_id": {
        "name": "repo_id",
        "in": "path",
        "description": "The unique identifier of a library",
        "example": "90c4e9c2-ca5f-4881-8453-164d8b819f6f",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"
        }
      }
    }
  },
  "paths": {
    "/api/v2.1/repos/{repo_id}/metadata/record/": {
      "get": {
        "tags": [
          "Metadata records"
        ],
        "summary": "Get metadata record",
        "description": "Get detailed information of the specified metadata record.",
        "security": [
          {
            "AccountTokenAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/repo_id"
          },
          {
            "$ref": "#/components/parameters/parent_dir"
          },
          {
            "$ref": "#/components/parameters/file_name"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "metadata": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "data": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "_creator": {
                            "type": "string"
                          },
                          "_ctime": {
                            "type": "string"
                          },
                          "_file_creator": {
                            "type": "string"
                          },
                          "_file_ctime": {
                            "type": "string"
                          },
                          "_file_details": {
                            "type": "string"
                          },
                          "_file_modifier": {
                            "type": "string"
                          },
                          "_file_mtime": {
                            "type": "string"
                          },
                          "_file_type": {
                            "type": "string"
                          },
                          "_id": {
                            "type": "string"
                          },
                          "_is_dir": {
                            "type": "boolean"
                          },
                          "_last_modifier": {
                            "type": "string"
                          },
                          "_location": {
                            "type": "object",
                            "properties": {
                              "lnt": {
                                "type": "integer"
                              },
                              "lng": {
                                "type": "integer"
                              }
                            }
                          },
                          "_mtime": {
                            "type": "string"
                          },
                          "_name": {
                            "type": "string"
                          },
                          "_obj_id": {
                            "type": "string"
                          },
                          "_parent_dir": {
                            "type": "string"
                          },
                          "_size": {
                            "type": "integer"
                          },
                          "_suffix": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "metadata": [
                    {
                      "key": "_id",
                      "name": "_id",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_creator",
                      "name": "_creator",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_ctime",
                      "name": "_ctime",
                      "type": "date",
                      "data": null
                    },
                    {
                      "key": "_last_modifier",
                      "name": "_last_modifier",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_mtime",
                      "name": "_mtime",
                      "type": "date",
                      "data": null
                    },
                    {
                      "key": "_file_creator",
                      "name": "_file_creator",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_file_ctime",
                      "name": "_file_ctime",
                      "type": "date",
                      "data": null
                    },
                    {
                      "key": "_file_modifier",
                      "name": "_file_modifier",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_file_mtime",
                      "name": "_file_mtime",
                      "type": "date",
                      "data": null
                    },
                    {
                      "key": "_parent_dir",
                      "name": "_parent_dir",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_name",
                      "name": "_name",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_is_dir",
                      "name": "_is_dir",
                      "type": "checkbox",
                      "data": null
                    },
                    {
                      "key": "_file_type",
                      "name": "_file_type",
                      "type": "single-select",
                      "data": {
                        "options": [
                          {
                            "id": "_picture",
                            "name": "_picture"
                          },
                          {
                            "id": "_document",
                            "name": "_document"
                          },
                          {
                            "id": "_code",
                            "name": "_code"
                          },
                          {
                            "id": "_video",
                            "name": "_video"
                          },
                          {
                            "id": "_audio",
                            "name": "_audio"
                          },
                          {
                            "id": "_compressed",
                            "name": "_compressed"
                          },
                          {
                            "id": "_diagram",
                            "name": "_diagram"
                          }
                        ]
                      }
                    },
                    {
                      "key": "_location",
                      "name": "_location",
                      "type": "geolocation",
                      "data": {
                        "geo_format": "lng_lat"
                      }
                    },
                    {
                      "key": "_obj_id",
                      "name": "_obj_id",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_size",
                      "name": "_size",
                      "type": "number",
                      "data": null
                    },
                    {
                      "key": "_suffix",
                      "name": "_suffix",
                      "type": "text",
                      "data": null
                    },
                    {
                      "key": "_file_details",
                      "name": "_file_details",
                      "type": "long-text",
                      "data": null
                    },
                    {
                      "key": "_description",
                      "name": "_description",
                      "type": "long-text",
                      "data": null
                    }
                  ],
                  "results": [
                    {
                      "_creator": "aa54297e93b44d50a2efb65437cf1cc4@auth.local",
                      "_ctime": "2025-02-08T10:49:48+08:00",
                      "_description": "aaa\n",
                      "_file_creator": "aa54297e93b44d50a2efb65437cf1cc4@auth.local",
                      "_file_ctime": "2025-02-08T10:49:47+08:00",
                      "_file_details": "\n\n```json\n{\"Dimensions\": \"6528x4896\", \"Device make\": \"HUAWEI\", \"Device model\": \"BMH-AN20\", \"Color space\": \"\", \"Capture time\": \"2024-09-16T07:07:16+08:00\", \"Focal length\": \"3.85mm\", \"F number\": \"f/2\", \"Exposure time\": 0.01}\n```\n\n\n",
                      "_file_modifier": "aa54297e93b44d50a2efb65437cf1cc4@auth.local",
                      "_file_mtime": "2025-02-08T10:49:47+08:00",
                      "_file_type": "_picture",
                      "_id": "gSlIZWzlRJ-V16V_F7nsHA",
                      "_is_dir": false,
                      "_last_modifier": "aa54297e93b44d50a2efb65437cf1cc4@auth.local",
                      "_location": {
                        "lat": 39.0805091855556,
                        "lng": 115.207695007222
                      },
                      "_mtime": "2025-02-10T11:03:51+08:00",
                      "_name": "IMG_20240916_070716.jpg",
                      "_obj_id": "9a3a835434573c0ac7f1ca1da59527dd2e2414ce",
                      "_parent_dir": "/",
                      "_size": 3952270,
                      "_suffix": "jpg"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 183,
      "2": 252,
      "3": 245,
      "4": 103,
      "5": 20,
      "6": 160,
      "7": 0,
      "8": 41,
      "9": 50,
      "10": 179,
      "11": 1
    }
  }
}
````