The problem is here you want to return from fetch browser API, which returns Promise. If you really want to do it, for instance, instead of using useState hook in React to call and save the response in component state, then you need to wrap your fetch request into async IIFE function and use await statement to wait the async request to be fulfilled and the data to be resolved by Promise. For more info, you can refer: JS Fetch API access return value

Answer from flosisa on Stack Overflow
🌐
Mockaroo
mockaroo.com
Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel
A free test data generator and API mocking tool - Mockaroo lets you create custom CSV, JSON, SQL, and Excel datasets to test and demo your software.
🌐
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.
🌐
fake api
fake-json.json-format.com β€Ί home β€Ί uncategorized β€Ί fake json api: using jsonplaceholder, dummyjson, and mock api
Fake JSON API: Using JSONPlaceholder, DummyJSON, and Mock API - fake api
December 2, 2025 - Fake API JSON refers to sample or dummy JSON data provided by a fake API (mock API) for testing, development, and prototyping. Developers use Fake API JSON to simulate real API responses without needing a live backend or server. It helps in building and testing applications faster and more ...
🌐
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.
🌐
Dummyapi
dummyapi.io
Dummy API: Fake api full of users, images, post, comments etc
Account DashboardExplore API LiveAPI Documentation Β· DummyAPI is a RESTful online fake API, publicly accessible via https.
🌐
GitHub
github.com β€Ί Ovi β€Ί DummyJSON
GitHub - Ovi/DummyJSON: DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend. Β· GitHub
DummyJSON is your go-to free online REST API for instantly generating placeholder data without the hassle of setting up a server.
Starred by 2.7K users
Forked by 282 users
Languages Β  EJS 46.4% | JavaScript 43.6% | SCSS 9.8% | Dockerfile 0.2%
Find elsewhere
🌐
Mockoon
mockoon.com
Mockoon - Create mock APIs in seconds with Mockoon
Get working mock REST APIs in seconds with an intuitive and easy-to-use interface.
🌐
Restapiexample
dummy.restapiexample.com
Dummy sample rest api - dummy.restapiexample.com
This page will list all of the rest services. These are fake online REST APIs for testing and prototyping sample applications that use rest calls to display listings and crud features.
🌐
Azurewebsites
fakerestapi.azurewebsites.net β€Ί index.html
Swagger UI
We cannot provide a description for this page right now
🌐
DummyJSON
dummyjson.com β€Ί docs β€Ί products
Products - DummyJSON - Free Fake REST API for Placeholder JSON Data
REST Endpoints filled with Products 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.
🌐
Platzi
fakeapi.platzi.com β€Ί en β€Ί rest β€Ί users
Users | Platzi Fake Store API
Retrieve a list of all users by using the /users endpoint Β· Retrieve a specific user by providing the user’s id as a path parameter: /users/{id}
🌐
GitHub
github.com β€Ί jravolio β€Ί DummyApi
GitHub - jravolio/DummyApi: Explore and test with ease using the Dummy API Project. Access a variety of dummy data through a user-friendly RESTful API. Ideal for testing and learning purposes.
The Dummy API Project aims to provide a set of dummy data accessible through a RESTful API. It's particularly useful for testing and developing applications that require sample data.
Author Β  jravolio
🌐
Platzi
fakeapi.platzi.com
Platzi Fake Store API | Platzi Fake Store API
A comprehensive REST API for your e-commerce or shopping website prototype.
🌐
Beeceptor
beeceptor.com β€Ί use cases β€Ί sample api for testing
Sample API For Testing | Beeceptor
Get a dedicated mock server to host a mock API. Set custom response and status code. Create Dummy API For TestingInspect incoming requests β€’ Build a sample API instantly β€’ Free
🌐
Reqres
reqres.in
ReqRes: Free REST API for Testing, Prototyping & QA ...
Free account. No card required. API key appears in your dashboard.
🌐
Meraki Community
community.meraki.com β€Ί t5 β€Ί Developers-APIs β€Ί API-Dummy-org-networks-and-devices β€Ί m-p β€Ί 217967
API: Dummy org, networks and devices - The Meraki Community
August 19, 2023 - Hi, We use your API very intensively and are enthusiastic about it Is it possible to create a dummy org with fake (not productive) devices only for API testing? Since we don't want to do the API tests in our productive org, we have created a separate one. We do not want to waste devices and l...
🌐
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.
🌐
JSON API
jsonapi.co β€Ί json-server β€Ί Dummy API β€Ί alternatives
10 Best Dummy API Alternatives in 2025 | JSON API APP
Free fake API for testing and prototyping. Access ready to use fake and dummy APIs with JSON data such as users and todos.
🌐
Fake Store API
fakestoreapi.com
Fake Store API
πŸ‘‡ https://jsonplaceholder.typicode.com https://fakestoreapi.com https://pokeapi.co https://reqres.in https://dummyapi.io ... Hello devs here is an application that I had to realize with flutter. Here I made some request to with an api to be able to get these data Le repo https://github.com/omar6260/flutter_rest_api Api http://fakestoreapi.com @galsendev221 @FlutterSenegal