agent
Fetch data from a plain-language request
Resolve a natural request ("a SWIFT code for China", "Kenya phone number") to a spec and generate it in one call. Sampuli maps the country (China→cn) and field ("SWIFT code"→swift) for you. The JSON response echoes the resolved spec so the caller can see the interpretation.
get/fetch
Request
- Base URL: https://sampuli.site/api/v1
- URL: https://sampuli.site/api/v1/fetch
- Auth: none declared
Query parameters
qstring required
Plain-language request, e.g. "a swift code for china".
ninteger
How many rows (omit for one). Capped at 1000 on the free API.
fieldsstring
Comma-separated field keys, or "all". Applies to person/full records.
seedstring
Reproducible output — same seed, same data.
format'json' | 'csv' | 'ndjson' | 'xml'
Response format.
pretty'1'
Pretty-print JSON.
Response
The resolved spec and generated data.
Changes
No recorded changes to this operation across all 1 revision of this API.