MockHero

id

Technical

Generate auto-incrementing integer IDs starting from any value with configurable step. The classic primary key pattern for relational databases.

Example Outputs

1231001001

Parameters

ParameterDescription
startStarting value (default 1)
stepIncrement step (default 1)

API Usage

Send a POST request to generate id data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "id",
          "type": "id"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Primary key generation
  • Sequential record IDs
  • Foreign key testing
  • Pagination testing

Quick Info

Field Type
id
Category
Technical
Parameters
2 parameters
Output Format
JSON, CSV, SQL

Try it now

Generate id data instantly in the playground.

Generate ID + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free