ForgeAPI Documentation

ForgeAPI allows you to create and serve fake APIs for development, testing, and prototyping.Generate realistic data instantly with customizable schemas.

Authentication

All API requests require authentication using an API key. You can find your API key in the API Keys section of your dashboard.

API Key Usage

Include your API key as a path parameter in all requests. Never expose your API key in client-side code.

Request Format

GET /api/dynamicApi/serveFakeApi/{API_KEY}/{ENDPOINT}/{COUNT}

Parameters

ParameterTypeDescription
API_KEYstringYour unique API key
ENDPOINTstringThe schema endpoint name
COUNTintegerNumber of records to return (1-100)

Example Request

HTTP REQUEST
GET https://fogeapi-backend.onrender.com/api/dynamicApi/serveFakeApi/{YOUR_TOKEN_HERE}/users/{count}

Creating Schemas

Schemas define the structure of your API responses. Use the Schema Builder to create custom endpoints with specific data types and field configurations.

Schema Components

Endpoint Name

Define the URL path for your API endpoint (e.g., "users", "products", "orders")

Response Fields

Add fields with specific data types to customize the structure of returned data

Schema Limitations

Each schema can contain up to 50 fields. Field names must be alphanumeric and cannot contain spaces.

Quick Start Guide

Get started with ForgeAPI in under 5 minutes. Follow these simple steps to create your first API endpoint.

1

Get API Key

Sign up and get your API key from the dashboard

2

Create Schema

Define your data structure using our visual builder

3

Make Requests

Start fetching data from your new API endpoint

Rate Limiting

ForgeAPI implements rate limiting to ensure fair usage and optimal performance for all users.

PlanRequests/MonthRate Limit
Free1,00010/minute
Pro ($9/month)100,0001000/minute

Available Data Types

Identifiers

uuid

Universally unique identifier

Identifiers

id

Sequential numeric identifier

Identifiers

Contact

email

Valid email address

Contact

username

Unique username string

Contact

phone

Phone number

Contact

Personal

name

Full name

Personal

firstName

First name only

Personal

lastName

Last name only

Personal

Numeric

number

Integer number

Numeric

float

Decimal number

Numeric

price

Currency amount

Numeric

Product

productName

Product name

Product

productDescription

Product description

Product

category

Product category

Product

Media

image

Image URL

Media

avatar

Avatar image URL

Media

Location

address

Street address

Location

city

City name

Location

country

Country name

Location

zip

Postal code

Location

Logic

boolean

True/false value

Logic

Time

date

Date string

Time

timestamp

Unix timestamp

Time

Text

paragraph

Lorem ipsum paragraph

Text

sentence

Single sentence

Text

slug

URL-friendly string

Text

Web

url

Valid URL

Web

ip

IP address

Web

mac

MAC address

Web

color

Hex color code

Web

Error Handling

ForgeAPI uses standard HTTP status codes to indicate the success or failure of API requests.

200OK

Request successful, data returned

401Unauthorized

Invalid or missing API key

429Too Many Requests

Rate limit exceeded

500Internal Server Error

Server error occurred

Example Response

Here's an example of what a response looks like for a "users" schema with common fields:

Sample Response

JSON RESPONSE200 OK
[
  {
    "id": "e3f42f5a-3c2f-4b91-bc9a-4f21caa33c9d",
    "email": "john.doe@example.com",
    "username": "johndoe_user",
    "firstName": "John",
    "lastName": "Doe",
    "phone": "+1-555-0123",
    "avatar": "https://api.dicebear.com/7.x/avataaars/svg?seed=John",
    "address": "123 Main St, Suite 100",
    "city": "New York",
    "country": "United States",
    "zip": "10001"
  },
  {
    "id": "f8d21c7b-9e4f-4a82-bd6c-8f31dbb44e8f",
    "email": "jane.smith@example.com",
    "username": "janesmith_pro",
    "firstName": "Jane",
    "lastName": "Smith",
    "phone": "+1-555-0456",
    "avatar": "https://api.dicebear.com/7.x/avataaars/svg?seed=Jane",
    "address": "456 Oak Ave, Floor 2",
    "city": "Los Angeles",
    "country": "United States",
    "zip": "90210"
  }
]

Pro Tip

Use tools like Postman, Insomnia, or curl to test your APIs. Data is generated in real-time based on your schema configuration.

cURL Examples

Here are some practical examples using cURL to interact with ForgeAPI endpoints.

Basic Request

curl -X GET \
  "https://fogeapi-backend.onrender.com/api/dynamicApi/serveFakeApi/YOUR_API_KEY/users/5" \
  -H "Accept: application/json"

With Headers

curl -X GET \
  "https://fogeapi-backend.onrender.com/api/dynamicApi/serveFakeApi/YOUR_API_KEY/products/10" \
  -H "Accept: application/json" \
  -H "User-Agent: MyApp/1.0"