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 can be used with any type of front end project that needs products, carts, users, todos or any dummy data in JSON format. You can use examples below to check how DummyJSON works.
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
fetch('https://jsonplaceholder.typicode.com/todos/1') .then(response => response.json()) .then(json => console.log(json)) Run script
Discussions

json response from API replace with dummy data
I try to follow some tutorial on ... some dummy data for the portal Β· export const ordersData = [ { OrderID: 10248, CustomerName: 'Vinet', }, { OrderID: 345653, CustomerName: 'Carson Darrin', }, etc... ... export const ordersData = fetch('API_URL', {method:"GET"}) .then(res => { return res.json(); }).then(data ... More on stackoverflow.com
🌐 stackoverflow.com
Create a dummy REST API from a json file with zero coding in seconds
Not to be a downer, but take a look at wiremock. More on reddit.com
🌐 r/golang
15
52
August 6, 2020
Anyone have a favorite free service that has dummy JSON that can be queried over HTTP?
https://www.reddit.com/.json More on reddit.com
🌐 r/javascript
19
48
January 28, 2017
Dummy JSON data element for rapid development
I am making a prototype as quickly as possible and it would be ideal if I could simply cut-and-paste a fake JSON dataset with 100 entries into an element to read by a repeating group (to mimic a database select and/or an API call). Every JSON-related plugin that I’ve looked at goes the other ... More on forum.bubble.io
🌐 forum.bubble.io
0
December 13, 2023
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 ...
What is a frontend-first backend?
A frontend-first backend gives you production-grade data, auth, and automations without standing up servers. ReqRes lets you create projects with collections, app users, magic-link auth, and logs so your frontend can ship with real data and stay production-ready.
🌐
reqres.in
reqres.in
ReqRes: Free REST API for Testing, Prototyping & QA ...
🌐
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.
🌐
Beeceptor
app.beeceptor.com β€Ί mock-server β€Ί dummy-json
Dummy JSON Rest API - Mock API
Transition to Beeceptor and enjoy ... 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....
Find elsewhere
🌐
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.
🌐
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.
🌐
Json Data API
jsondata.reactbd.com
Json Data API - Free Fake JSON Data & Mock API for E-commerce Development
JsonData API provides free fake JSON data and mock API endpoints for e-commerce development. Use dummy products, users, carts, and orders for testing, prototyping, and learning. No authentication neededβ€”free REST API for developers.
🌐
Reddit
reddit.com β€Ί r/golang β€Ί create a dummy rest api from a json file with zero coding in seconds
r/golang on Reddit: Create a dummy REST API from a json file with zero coding in seconds
August 6, 2020 -

Hello guys, long time lurker on this sub but never posted before.

I created json-server, a CLI tool to create a dummy REST API from a provided json file with zero coding in seconds. For each provided resource 6 full functional endpoints are created (GET x2, POST, PUT, PATCH, DELETE), that you can use right away.

Inspired by the javascript package json-server that's where the name comes from.

The next step is to create the first release, which will include binary files for Windows, Linux and macOS. Any comments/suggestions are really welcomed. You can find more info at README file.

https://github.com/chanioxaris/json-server

🌐
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.
🌐
Microsoft Edge
microsoftedge.github.io β€Ί Demos β€Ί json-dummy-data
JSON dummy data | Demos
This is a collection of dummy JSON files in various sizes to use as test data for the JSON viewer.
🌐
Envato Tuts+
code.tutsplus.com β€Ί home β€Ί coding fundamentals
Get a Fake REST API Up and Running Using json-server | Envato Tuts+
June 24, 2022 - That's when the fake REST API comes into the picture. json-server provides the functionality to set up a fake REST API server with minimum effort. To get started with using json-server, install the package using Node Package Manager (npm).
🌐
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
3 weeks ago - 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%
🌐
Reddit
reddit.com β€Ί r/javascript β€Ί anyone have a favorite free service that has dummy json that can be queried over http?
r/javascript on Reddit: Anyone have a favorite free service that has dummy JSON that can be queried over HTTP?
January 28, 2017 -

When testing non-application-specific code (like middleware or generic architecture), I often would like to have something like placehold.it but for JSON. Something I can perform HTTP requests against when I don't necessarily care about what type of data I get back, as long as I get something. Do any of you know of a service like that?

🌐
Bubble
forum.bubble.io β€Ί questions
Dummy JSON data element for rapid development - Questions - Bubble Forum
December 13, 2023 - I am making a prototype as quickly as possible and it would be ideal if I could simply cut-and-paste a fake JSON dataset with 100 entries into an element to read by a repeating group (to mimic a database select and/or an API call). Every JSON-related plugin that I’ve looked at goes the other ...
🌐
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%
🌐
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.
🌐
Fake Store API
fakestoreapi.com
Fake Store API
You want to practice or test REST API? Here is the list of websites with fake APIs that can save your time in creating dummy data. πŸ‘‡ https://jsonplaceholder.typicode.com https://fakestoreapi.com https://pokeapi.co https://reqres.in https://dummyapi.io
🌐
Dummyapi
dummyapi.io
Dummy API: Fake api full of users, images, post, comments etc
DummyAPI is a RESTful online fake API, publicly accessible via https. Access static fake data via the GraphQL interface. application/json format, Mock JSON dummy API server.
🌐
Postman
postman.com β€Ί ikhszy β€Ί dummy-json β€Ί overview
Dummy Json
Accelerate API development with Postman's all-in-one platform. Streamline collaboration and simplify the API lifecycle for faster, better results. Learn more.