YAML format guide

Sample YAML files

Small sample YAML files with strings, numbers, booleans, nulls, nested maps and lists. Use them to test YAML loaders and config parsers against known values. Pick a whole collection (3 users, 2 projects or 3 tasks) or a single record. The 11 files range from 131 B to 1.2 KB.

No account or API key is needed. A published v1 file never changes, its SHA-256 is listed in the manifest, and the data is CC0, so you can also commit a copy to your own repository.

application/yaml; charset=utf-8

Use it

Request an asset

Browser

const response = await fetch("/v1/projects.yaml");
const payload = await response.text();

curl

curl -fsS https://payloads.mochavi.com/v1/projects.yaml

Python

from urllib.request import urlopen

with urlopen("https://payloads.mochavi.com/v1/projects.yaml") as response:
    payload = response.read()

Published files

11 stable URLs

Open explorer
PathMedia typeSize
/v1/projects.yamlapplication/yaml; charset=utf-8529 B
/v1/projects/101.yamlapplication/yaml; charset=utf-8279 B
/v1/projects/102.yamlapplication/yaml; charset=utf-8194 B
/v1/tasks.yamlapplication/yaml; charset=utf-8499 B
/v1/tasks/1001.yamlapplication/yaml; charset=utf-8156 B
/v1/tasks/1002.yamlapplication/yaml; charset=utf-8131 B
/v1/tasks/1003.yamlapplication/yaml; charset=utf-8158 B
/v1/users.yamlapplication/yaml; charset=utf-81.2 KB
/v1/users/1.yamlapplication/yaml; charset=utf-8407 B
/v1/users/2.yamlapplication/yaml; charset=utf-8341 B
/v1/users/3.yamlapplication/yaml; charset=utf-8350 B

Validate the canonical shape with the dataset schema.

Related guides: Cross-format test data, For coding agents.