Skip to content
>_ TrueFileSize.com

Sample API Response JSON

Download a free JSON file structured as a typical REST API response — with status code, data array, and pagination metadata. Use it to test API client parsing, error handling, and response validation.

sample-api-response.json

3.5 KB
Verified file details
Filename
sample-api-response.json
Exact size
3,582 bytes
Displayed size
3.5 KB
MIME type
application/json
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-api-response.json

Other JSON files

sample-simple.json

87 B

1 rows

Verified file details
Filename
sample-simple.json
Exact size
87 bytes
Displayed size
87 B
MIME type
application/json
Rows
1
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-simple.json

sample-array.json

15.4 KB

100 rows

Verified file details
Filename
sample-array.json
Exact size
15,735 bytes
Displayed size
15.4 KB
MIME type
application/json
Rows
100
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-array.json

sample-1000-records.json

154 KB

1,000 rows

Verified file details
Filename
sample-1000-records.json
Exact size
158,086 bytes
Displayed size
154 KB
MIME type
application/json
Rows
1,000
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-1000-records.json

sample-10000-records.json

1.52 MB

10,000 rows

Verified file details
Filename
sample-10000-records.json
Exact size
1,590,674 bytes
Displayed size
1.52 MB
MIME type
application/json
Rows
10,000
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-10000-records.json

sample-nested.json

3.9 KB

20 rows

Verified file details
Filename
sample-nested.json
Exact size
3,964 bytes
Displayed size
3.9 KB
MIME type
application/json
Rows
20
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-nested.json

sample-users.json

77.1 KB

500 rows

Verified file details
Filename
sample-users.json
Exact size
78,991 bytes
Displayed size
77.1 KB
MIME type
application/json
Rows
500
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-users.json

Frequently Asked Questions

What does the API response structure look like?
The file follows a common REST pattern: { "status": 200, "data": [...], "meta": { "total": N, "page": 1, "per_page": 20 } }. This matches what most modern APIs return.
Can I test error handling with this file?
This file represents a successful response (status 200). For error testing, modify the status field locally or create variants with 400/404/500 status codes to test your client's error paths.

Other data formats

Similar files in other formats

sample-simple.xml

153 B
Verified file details
Filename
sample-simple.xml
Exact size
153 bytes
Displayed size
153 B
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/xml/sample-simple.xml

sample-mysql.sql

55.2 KB

1,000 rows

Verified file details
Filename
sample-mysql.sql
Exact size
56,547 bytes
Displayed size
55.2 KB
MIME type
application/sql
Rows
1,000
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/sql/sample-mysql.sql

sample-1kb.yaml

1 KB

30 lines

Verified file details
Filename
sample-1kb.yaml
Exact size
1,024 bytes
Displayed size
1 KB
MIME type
application/octet-stream
Lines
30
Note
simple-config
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/yaml/sample-1kb.yaml

sample-1kb.toml

1 KB

30 lines

Verified file details
Filename
sample-1kb.toml
Exact size
1,024 bytes
Displayed size
1 KB
MIME type
application/octet-stream
Lines
30
Note
simple-config
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/toml/sample-1kb.toml