# GUID Generator API

> GUID Generator is a GUID generator API that creates RFC 4122 version 4 GUIDs in standard, uppercase, hyphen-free, or brace-wrapped formats. Pass a count and formatting style to receive a batch of unique IDs matching your structural requirements.

**Endpoint:** `GET https://api.apiverve.com/v1/guidgenerator`  
**Category:** Data Generation  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/guidgenerator

## Overview

GUID Generator works by creating random 128-bit identifiers following the RFC 4122 UUID version 4 specification. Supports multiple output formats including standard, uppercase, hyphen-less, and brace-enclosed.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/guidgenerator?count=3&format=uppercase" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer | No | Number of GUIDs to generate. default 1. range 1-100 |
| `format` | string | No | Output format. default default. One of: default, uppercase, nohyphens, braces |

## Response fields

- `guids` — array · Array of generated GUID strings in requested format
- `count` — number · Total number of GUIDs generated in the response
- `format` — string · Output format applied to generated GUIDs
- `version` — number · UUID version used for GUID generation · (premium)
- `variant` — string · UUID variant standard followed by generated GUIDs · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "guids": [
      "099FD1E4-60FD-4749-9B61-53A265F52579",
      "D68CA374-C822-40E4-9948-CE7A5D5FC76A",
      "F6DAD45F-A904-4007-89DF-8F5C76184910"
    ],
    "count": 3,
    "format": "uppercase",
    "version": 4,
    "variant": "RFC 4122"
  }
}
```

## Use cases

- **Database Records** — Generate unique primary keys and identifiers for database records and entities
- **Session Management** — Create unique session identifiers for web applications and APIs
- **File Naming** — Generate unique filenames and resource identifiers to prevent conflicts
- **Transaction IDs** — Create unique transaction and request identifiers for tracking and logging

## SDKs

- **npm** — `npm install @apiverve/guidgenerator` (https://www.npmjs.com/package/@apiverve/guidgenerator)
- **PyPI** — `pip install apiverve-guidgenerator` (https://pypi.org/project/apiverve-guidgenerator/)
- **NuGet** — `dotnet add package APIVerve.API.GUIDGenerator` (https://www.nuget.org/packages/APIVerve.API.GUIDGenerator)
- **Source** — https://github.com/apiverve/guidgenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/guidgenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
