{
  "id": "mongodbid",
  "kind": "datatype",
  "status": "stable",
  "name": "MongoDB unique Object ID",
  "doc": "MongoDB ObjectId, the unique id that MongoDB assigns to each document of a collection as the field _id. It is a 12-byte value written as 24 hexadecimal characters. The first 4 bytes are the creation time in seconds since the Unix epoch, then come a 5-byte random value per process and a 3-byte counter, so ObjectIds sort roughly by creation time. The MongoDB manual writes the hexadecimal digits in lowercase. The xid format encodes the same 12 bytes in Base32 (xid). It is not the ArcGIS OBJECTID (objectid).",
  "is_pii": false,
  "categories": [
    "identifiers",
    "common"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[0-9a-fA-F]{24}$",
  "examples": [
    {
      "value": "507f1f77bcf86cd799439011",
      "description": "Unique MongoDB ObjectID",
      "valid": true
    },
    {
      "value": "507f191e810c19729de860ea",
      "description": "Unique MongoDB ObjectID",
      "valid": true
    },
    {
      "value": "00000020f51bb4362eee2a4d",
      "description": "ObjectId(32) from the MongoDB manual, 32 seconds after the Unix epoch",
      "valid": true
    },
    {
      "value": "507f1f77bcf86cd79943901",
      "description": "23 characters instead of 24",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.mongodb.com/docs/manual/reference/method/ObjectId/"
    }
  ],
  "translations": {
    "ru": {
      "name": "Идентификатор объекта MongoDB (ObjectId)"
    }
  },
  "detected_by": {
    "tools": [
      "csvdetective",
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "mongodbidfield",
        "type": "field",
        "match": "text",
        "file": "basic/identifiers.yaml"
      },
      {
        "rule": "mongodbidvalue",
        "type": "data",
        "match": "ppr",
        "file": "basic/identifiers.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/identifiers/mongodbid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/identifiers/mongodbid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/identifiers/mongodbid.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/mongodbid",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/mongodbid.json"
  }
}