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
๐ŸŒ
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.
Docs
DummyJSON provides a free fake REST API with placeholder JSON data for development, testing, and prototyping. Access realistic data quickly for your projects.
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.
๐ŸŒ
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.
๐ŸŒ
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
Find elsewhere
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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 21, 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
๐ŸŒ
Beeceptor
app.beeceptor.com โ€บ mock-server โ€บ dummy-json
Dummy JSON Rest API - Mock API
Transition to Beeceptor and enjoy realistic dummy/fake JSON data for development and prototype testing. This mock server offers various REST Endpoints filled with JSON data or entities, perfect for frontend or app development using your preferred frameworks and libraries.
๐ŸŒ
PokรฉAPI
pokeapi.co
PokรฉAPI
{ "abilities": [ { "ability": { "name": "imposter", "url": "https://pokeapi.co/api/v2/ability/150/" }, "is_hidden": true, "slot": 3 }, { "ability": { "name": "limber", "url": "https://pokeapi.co/api/v2/ability/7/" }, "is_hidden": false, "slot": 1 } ], "base_experience": 101, "forms": [ { "name": "ditto", "url": "https://pokeapi.co/api/v2/pokemon-form/132/" } ], "game_indices": [ { "game_index": 132, "version": { "name": "black-2", "url": "https://pokeapi.co/api/v2/version/21/" } }, { "game_index": 132, "version": { "name": "black", "url": "https://pokeapi.co/api/v2/version/17/" } }, { "game_in
๐ŸŒ
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
๐ŸŒ
Medium
medium.com โ€บ @mahmoudsaal7 โ€บ 4-outstanding-fake-api-providers-for-mobile-developers-to-streamline-testing-fc61fa4c847c
5 Outstanding Fake API Providers for Mobile Developers to Streamline Testing | by Mahmoud Saleh | Medium
November 5, 2023 - Fake Store API is a free online REST API that developers can use to make test orders, eCommerce, and cart integrations. ... DummyJson is another API service that provides fake data for testing and prototyping, similar to the other services we ...