---
title: "Generate country data"
method: GET
path: "/{country}/{selector}"
tags: ["generate"]
---

# Generate country data

`GET /{country}/{selector}`

## Request

- Base URL: `https://sampuli.site/api/v1`
- URL: `https://sampuli.site/api/v1/{country}/{selector}`
- Auth: none declared

Selector is a field key (`phone`), `person` (core record), `full` (every field), `company`, `product`, or `preset:<key>`.

## Path parameters

- `country` 'ae' | 'ao' | 'ar' | 'at' | 'au' | 'bd' | 'be' | 'bg' | 'bh' | 'br' | 'bw' | 'ca' | 'cd' | 'ch' | 'ci' | 'cl' | 'cm' | 'cn' | 'co' | 'cz' | 'de' | 'dk' | 'dz' | 'ec' | 'ee' | 'eg' | 'es' | 'et' | 'fi' | 'fr' | 'gb' | 'gh' | 'gr' | 'hk' | 'hr' | 'hu' | 'id' | 'ie' | 'il' | 'in' | 'is' | 'it' | 'jo' | 'jp' | 'ke' | 'kr' | 'kw' | 'lb' | 'lk' | 'lt' | 'lu' | 'lv' | 'ma' | 'mu' | 'mx' | 'my' | 'mz' | 'na' | 'ng' | 'nl' | 'no' | 'nz' | 'om' | 'pe' | 'ph' | 'pk' | 'pl' | 'pt' | 'qa' | 'ro' | 'rs' | 'rw' | 'sa' | 'se' | 'sg' | 'si' | 'sk' | 'sn' | 'th' | 'tn' | 'tr' | 'tz' | 'ua' | 'ug' | 'us' | 'uy' | 'vn' | 'za' | 'zm' | 'zw', required
- `selector` string, required

## Query parameters

- `n` integer
- `fields` string
- `seed` string
- `format` 'json' | 'csv' | 'ndjson' | 'xml'
- `pretty` '1'

## Response `200`

Generated data (JSON array/object/scalar; text for csv/ndjson).

## Other responses

- `400`: Error
- `404`: Error

---

[API](https://skmtc.dev/sampuli/apis/sampuli-api.md) · [All operations](https://skmtc.dev/sampuli/apis/sampuli-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sampuli/apis/sampuli-api/revisions/55c96e65fa3c?raw)
