# Fake Data Generator (Locale-Aware, Schema-Driven)

> Fake Data Generator (Locale-Aware, Schema-Driven) is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-10-12, last successful call 2026-05-03).

Generates realistic fake/mock data records matching a given JSON Schema, with locale support for Swedish, Japanese, and other languages, returning up to 1000 records per call.

## Facts

- Endpoint: GET https://api.strale.io/x402/fake-data-generate?utm_source=zero.xyz
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-05-03
- Success rate: 100% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-65844319
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6-aVlpjpxcLM7WKObLD3U

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-65844319
```

Example prompt: Generate 50 fake user records with fields: firstName (string), email (string), and age (integer), using Swedish locale so the names look realistic for a Swedish audience.

## When to prefer this

Choose this endpoint when you need realistic, locale-aware synthetic data that conforms to a specific JSON Schema — especially useful for seeding test databases, generating UI mockups, or creating demo datasets. Prefer it over generic faker libraries when you need a hosted, on-demand REST call or when locale fidelity (e.g. Swedish names, Japanese characters) is important.

## Known failure modes

- Invalid JSON Schema provided — returns schema validation error
- count exceeds 1000 — returns limit exceeded error
- unsupported locale code — may fall back to default or return error
- malformed fields array — returns parameter error
- missing required input parameters — returns 400-style error

## How this service works

Generate realistic fake data matching a schema. Locale-aware: Swedish names for 'sv', Japanese for 'ja'. Up to 1000 records.

## Output

Returns an array of generated fake data records matching the specified schema and locale, with up to 1000 records per call. Each record contains the requested fields populated with realistic, locale-appropriate synthetic values.

## Example request

```json
{
 "count": 10,
 "fields": [
  {
   "name": "firstName",
   "type": "string"
  },
  {
   "name": "lastName",
   "type": "string"
  },
  {
   "name": "email",
   "type": "string"
  },
  {
   "name": "age",
   "type": "integer"
  }
 ],
 "locale": "sv_SE",
 "schema": {
  "type": "object",
  "required": [
   "firstName",
   "lastName",
   "email",
   "age"
  ],
  "properties": {
   "age": {
    "type": "integer",
    "maximum": 80,
    "minimum": 18
   },
   "email": {
    "type": "string",
    "format": "email"
   },
   "lastName": {
    "type": "string"
   },
   "firstName": {
    "type": "string"
   }
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "fields": {
       "type": "array",
       "description": "Array of {name, type}"
      },
      "locale": {
       "type": "string"
      },
      "schema": {
       "type": "object",
       "description": "JSON Schema"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-65844319/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
