Short Code Generator API

GET

Produce random alphanumeric codes for vouchers, invites, and links.

Short Code Generator creates custom alphanumeric short codes for vouchers, referral tokens, and redirect slugs. Specify a length, batch count, and character set like numeric, hex, or Base58 to receive an array of random strings.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/shortcodegenerator
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "codes": [
      "bgiFznFh",
      "jr84hHsG",
      "Q77qABwn",
      "gvMjXxXs",
      "WDPJzCsi"
    ],
    "count": 5,
    "length": 8,
    "charset": "alphanumeric",
    "url_safe": true
  }
}

About the Short Code Generator API

Short Code Generator works by randomly selecting characters from the specified character set to create codes of the desired length. Supports URL-safe character sets and excludes ambiguous characters in Base58 mode.

What people use it for

URL Shortening
Generate short codes for URL shortening services and link tracking
Voucher Systems
Create unique voucher and coupon codes for e-commerce and promotions
Temporary Access
Generate temporary access codes and one-time passwords for authentication
Referral Programs
Create short referral codes for marketing and referral tracking systems

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Short Code Generator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Short Code Generator API.

Read the docs →
How many code generation requests does the Free plan cover?
The Free plan covers 100 requests per month at 2 credits per call. For higher volumes, the Starter plan covers 100,000 requests monthly, which works out to about $0.30 per 1,000 calls.
Which character sets can I use for generating codes?
You can select from alphanumeric, alphabetic, numeric, hexadecimal, or Base58 character sets. You can also specify the exact character length for the generated codes.
Can I generate codes that exclude visually ambiguous characters?
Yes. Using the Base58 character set automatically excludes easily confused characters such as uppercase I, lowercase l, and the number 0. This makes codes easier for users to read and type manually.
Can I generate a batch of codes in a single request?
Yes. Pass the count parameter to generate multiple codes at once. The API returns an array containing all generated codes along with the requested count, length, and charset.
Are the generated codes safe to use in website URLs?
Yes. The supported character sets produce standard alphanumeric characters that are URL-safe, making them suitable for URL shorteners and redirect paths.

Ready to build with Short Code Generator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs