Generator · Generic data

MongoDB ObjectId

Endpoint GET /v1/object-id

What it covers

Returns a synthetic MongoDB ObjectId — a well-formed 24-character hex string. The value is derived entirely from the seed (timestamp and counter regions are synthetic, not wall-clock), so the same seed always reproduces the same id.

Parameters

ParameterTypeDescription
countinteger1–1000Number of records to return, 1–1000 (your plan may lower this). Omitted returns a single record; set it for a batch.
edgebooleanRestrict output to valid edge cases from the rare corners of the domain.
extremebooleanReturn a correct value wrapped in a hostile encoding (untrimmed whitespace, invisible/zero-width characters, BOM, or bidi/combining marks). Homoglyphs are excluded so the value stays machine-parseable; it still validates after normalisation.
invalidbooleanReturn a deliberately invalid value that fails validation, for testing rejection paths.
seedintegerInteger seed for reproducible output: the same seed always yields the same record.

Response fields

FieldTypeDescription
valuestringThe 24-character hex MongoDB ObjectId.

Other generic generators

Try it

Generate a live example below — every response is valid by format and entirely synthetic.