Twitter has a public API which returns JSON, for example -

A GET request to:

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=mralexgray&count=1,

EDIT: Removed due to twitter restricting their API with OAUTH requirements...

{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

Replacing it with a simple example of the Github API - that returns a tree, of in this case, my repositories...

https://api.github.com/users/mralexgray/repos

I won't include the output, as it's long.. (returns 30 repos at a time) ... But here is proof of it's tree-ed-ness.

Answer from Alex Gray on Stack Overflow
๐ŸŒ
JSONPlaceholder
jsonplaceholder.typicode.com
JSONPlaceholder - Free Fake REST API
JSONPlaceholder is a free online REST API that you can use whenever you need some fake data. It can be in a README on GitHub, for a demo on CodeSandbox, in code examples on Stack Overflow, ...or simply to test things locally.
๐ŸŒ
DummyJSON
dummyjson.com
DummyJSON - Free Fake REST API for Placeholder JSON Data
DummyJSON provides a free fake REST API with placeholder JSON data for development, testing, and prototyping. Access realistic data quickly for your projects.
People also ask

What are the different API key types?
ReqRes offers three API key permission levels: read-only (GET only), read/write (GET, POST, PUT, PATCH), and manage (includes DELETE operations). Use admin keys for managing collections and automations; use session tokens for per-user data access.
๐ŸŒ
reqres.in
reqres.in
ReqRes: Free REST API for Testing, Prototyping & QA ...
How does the Image to API feature work?
The Image to API feature uses AI to analyze UI screenshots and automatically generate working API endpoints. Upload a screenshot of your design (or a Figma frame), and we generate REST endpoints and schemas you can deploy. Available on all plans with different usage limits; deployment requires Pro or above.
๐ŸŒ
reqres.in
reqres.in
ReqRes: Free REST API for Testing, Prototyping & QA ...
How do custom endpoints work?
Custom endpoints let you shape responses around your collections or specific UX flows. Define the path, method, and response data-ideal for staging environments, automation callbacks, and UI experiments. Higher limits are available on Premium.
๐ŸŒ
reqres.in
reqres.in
ReqRes: Free REST API for Testing, Prototyping & QA ...
๐ŸŒ
JSON:API
jsonapi.org โ€บ examples
JSON:API โ€” Examples
Note: The above example URI shows unencoded [ and ] characters simply for readability. In practice, these characters should be percent-encoded, as noted in the base specification. See โ€œSquare Brackets in Parameter Namesโ€. Here we want articles objects to have fields title, body and author only and people objects to have name field only. HTTP/1.1 200 OK Content-Type: application/vnd.api+json { "data": [{ "type": "articles", "id": "1", "attributes": { "title": "JSON:API paints my bikeshed!", "body": "The shortest article.
๐ŸŒ
Beeceptor
beeceptor.com โ€บ use cases โ€บ sample api for testing
Sample API For Testing | Beeceptor
These can be incredibly useful for standard functionalities to help with dummy API to retrieve user profiles with photo, sample blog application, API for a list of sample companies, E-commerce API design for product lists, Crypto wallet's API design, etc. You can access APIs by visiting the Beeceptor's Pre-built Mock Servers page and selecting the one that best fits your use case. These APIs cover a broad range of scenarios and are designed to be plug-and-play. Since these are CORS-enabled, you should have no trouble incorporating them into your web or app. Here are some popular sample API endpoints. Returns a list of users. GET https://fake-json-api.mock.beeceptor.com/users
๐ŸŒ
Mocki
mocki.io โ€บ fake-json-api
Fake API - Dummy User and Todo API - Create Your Own
Access ready to use fake and dummy APIs with JSON data such as users and todos. Create your own fake API using Mockis interactive API editor.
๐ŸŒ
ReqBin
reqbin.com โ€บ req โ€บ enuzjzmm โ€บ test-json-api
How do I test JSON API?
The following is an example of a JSON API request to ReqBin echo URL: ... Convert your Test JSON API request to the PHP, JavaScript/AJAX, Node.js, Curl/Bash, Python, Java, C#/.NET code snippets using the ReqBin code generator. How do I post request to JSON API? How do I test a REST API online? How to test API Endpoint? How do I test JSON response online? How do I test JSON request online? How do I send a JSON API requests? Online JSON Formatter ...
Find elsewhere
๐ŸŒ
Assertible
assertible.com โ€บ blog โ€บ 3-simple-strategies-to-test-a-json-api
3 simple strategies to test a JSON API : Assertible
Another common use-case when creating tests for JSON documents is to check the length of an array. In many cases, you may want to check that an array is not empty, or has a certain minimum length. Using the example JSON object below, I want to assert that the length of the places array is greater than three.
๐ŸŒ
Reqres
reqres.in
ReqRes: Free REST API for Testing, Prototyping & QA ...
POST /api/app-users/login POST /api/app-users/verify Authorization: Bearer <session_token> GET /app/collections/todos/records ... Six quick steps from zero to production-grade data and auth. ... Namespace keys, collections, logs. ... Define your JSON data model. ... Magic link creates an app user. ... Mint a session token. ... Scoped CRUD via Bearer token. ... Logs + webhooks on events. ... Use fetch(), cURL, Postman, or any HTTP client for apps, QA, or lessons.
๐ŸŒ
GitHub
github.com โ€บ typicode โ€บ json-server
GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) ยท GitHub
Get a full fake REST API with zero coding in less than 30 seconds (seriously) - typicode/json-server
Starred by 75.6K users
Forked by 7.3K users
Languages ย  JavaScript 91.7% | HTML 8.3%
๐ŸŒ
DevTools Daily
devtoolsdaily.com โ€บ fake_json_api
DevTools daily: Free Fake Json API
1000 users with random names, countries and companieshttps://testapi.devtoolsdaily.com/users ยท Example fake data: { "id": 1, "firstName": "Jerry", "lastName": "Parker", "countryCode": "CF", "companyId": 45 }API call examples: Countries ยท All countries with name, iso2 and iso3 codeshttps://testapi.devtoolsdaily.com/countries ยท
๐ŸŒ
Jsontest
jsontest.com
JSON Test by jsontest
Returns a customized JSON object that you can define through a REST-style URL. For example, calling http://echo.jsontest.com/key/value/one/two will return the following JSON:
๐ŸŒ
SitePoint
sitepoint.com โ€บ blog โ€บ javascript โ€บ test data json example
Test Data JSON Example โ€” SitePoint
February 12, 2024 - This can be done using streaming APIs or libraries that support streaming. Another approach is to use a database or a data store that can handle large amounts of data. You can import the JSON data into the database, and then query the data as needed in your tests. Comparing two JSON objects in tests can be done using deep equality checks. Most testing frameworks provide functions or methods to do this. For example, in JavaScript, you can use the deepEqual() function from the assert module: const assert = require('assert'); assert.deepEqual(object1, object2); This will compare the two objects recursively and check if they have the same properties and values.
๐ŸŒ
Apipheny
apipheny.io โ€บ free-api
Free API โ€“ 90+ Public APIs For Testing [No Key] โ€“ Apipheny
Get GEX data for 165+ currencies dating back to 2010 in easy to consume JSON format. Frequently asked questions about Free APIs.
๐ŸŒ
Speedscale
speedscale.com โ€บ home โ€บ blog โ€บ ultimate guide to creating a json mock api
Ultimate Guide to Creating a JSON Mock API | Speedscale
January 22, 2025 - By default, json-server will run ... then query the service to retrieve posts with the ID value of 1, which will return โ€œTest Post 1โ€ as code....
๐ŸŒ
Postman
blog.postman.com โ€บ home โ€บ how to test json properties in postman
How to Test JSON Properties in Postman | Postman Blog
December 30, 2025 - For convenience and speed, you can fork the following Postman collection or click the Run in Postman button below. Letโ€™s walk through a few examples, where weโ€™ll be using code that uses the pm library to run the test method. The text string will appear in the test output. The function inside the test represents an assertion as given below: 1. An array of all properties in an array of object: In this example, weโ€™ll have an API response body as jsonData and a code snippet showing how to access array properties within an array of object.
๐ŸŒ
ReqBin
reqbin.com
Online API Testing Tool | Test Your API Online
ReqBin is an online API testing tool for REST and SOAP APIs. Test API endpoints by making API requests directly from your browser. Test API responses with built-in JSON and XML validators.
๐ŸŒ
GitHub
github.com โ€บ public-apis โ€บ public-apis
GitHub - public-apis/public-apis: A collective list of free APIs ยท GitHub
Fixer is a simple and lightweight API for current and historical foreign exchange (forex) rates. ... Helium is a global, distributed network of Hotspots that create public, long-range wireless coverage ... Industry-leading Holiday API. Over 5,000 holidays and thousands of descriptions. Trusted by the Worldโ€™s leading companies ... Free and simple counting service. You can use it to track page hits and specific events ... Free JSON storage service.
Starred by 409K users
Forked by 44.1K users
Languages ย  Python 96.8% | Shell 3.2%
๐ŸŒ
Treblle
treblle.com โ€บ blog โ€บ create-simple-rest-api-json
How to Create a Simple REST API With JSON Responses - Treblle
Learn how to build a simple REST API that returns JSON responses using Node.js and Express. This step-by-step guide walks you through project setup, creating routes, handling different HTTP methods, and testing your endpointsโ€”perfect for beginners diving into API development.
๐ŸŒ
DummyJSON
dummyjson.com โ€บ docs โ€บ products
Products - DummyJSON - Free Fake REST API for Placeholder JSON Data
The products endpoint provides a comprehensive dataset of sample product information, including details like names, prices, descriptions, images, and categories, ideal for testing and prototyping e-commerce applications. ... By default you will get 30 items, use Limit and skip to paginate through all items. fetch('https://dummyjson.com/products') .then(res => res.json()) .then(console.log); Show Output