🌐
Fake-api
fake-api.dev
Fake API
Create your own fake API instantly without a backend. Perfect for frontend developers who need mock data for testing and prototyping.
🌐
GitHub
github.com β€Ί ReachFive β€Ί fake-api-server
GitHub - ReachFive/fake-api-server: Fake API Server
Fake API Server. Contribute to ReachFive/fake-api-server development by creating an account on GitHub.
Author Β  ReachFive
People also ask

What is Faux API?
Faux API is a platform that lets developers create and use mock APIs for testing and prototyping, as well as small-scale production APIs for real applications, helping teams build and deploy faster without complex backend setup.
🌐
faux-api.com
faux-api.com
Free Backend APIs for Frontend Frameworks | Faux API
Is Faux API free to use?
Yes, Faux API offers a free plan with no hidden charges, making it accessible for users of all experience levels. Paid plans are also available for users who need additional features and higher limits.
🌐
faux-api.com
faux-api.com
Free Backend APIs for Frontend Frameworks | Faux API
Is there any limit to the number of APIs I can create with Faux API?
API limits depend on the plan you choose. Each plan includes defined limits, and if you need more, you can request a custom plan to create and manage multiple APIs based on your requirements.
🌐
faux-api.com
faux-api.com
Free Backend APIs for Frontend Frameworks | Faux API
🌐
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.
🌐
Beeceptor
app.beeceptor.com β€Ί mock-server β€Ί fake-json-api
Fake API - Mock API
Beeceptor's Fake API server offers a range of hosted, free REST APIs available to anyone in need of simulated data for their applications or demonstrations. Fake API mock server is free and easy to use. It is designed to fast track development and save cost.
🌐
Inari
devhunt.org β€Ί blog β€Ί jsonplaceholder-api-the-easiest-fake-rest-api
JSONPlaceholder API: The Easiest Fake REST API
Looking for an easy way to test your front-end application without the hassle of setting up a full backend? JSONPlaceholder API offers a simple solution with its fake REST API, delivering mock data for a variety of use cases.
🌐
PublicAPI
publicapi.dev β€Ί faker-api
FakerAPI API - PublicAPI
FakerAPI is a web service that allows users to generate fake data for various categories such as users, products, places, text, and images. The API can be used for testing, prototyping, and data generation purposes.
🌐
Faux API
faux-api.com
Free Backend APIs for Frontend Frameworks | Faux API
Build, test, and deploy APIs faster using a simple and reliable platform designed for mock and small-scale production use. Create backend APIs instantly and move smoothly from development to deployment without managing complex server setups.
Find elsewhere
🌐
Developer APIs
developerapis.vercel.app
Free JSON & Fake REST APIs for Developers | Products, Users, Blogs
Access free fake RESTful JSON APIs for developers. Includes Products, Users, Blogs, and Carts endpoints for testing and prototyping. No auth required.
🌐
Fake-api
fake-api.ru
Fake API
We cannot provide a description for this page right now
🌐
Medium
imnirmaljoshi.medium.com β€Ί 10-free-dummy-mock-api-alternatives-for-developers-5635e5cdc0
Free Dummy/Mock API Alternatives for Developers | by Nirmal Joshi | Medium
March 13, 2023 - FactoryBoy (www,factoryboy.readthedocs.io) FactoryBoy is an open-source Python library that lets you generate fake data for your tests. FactoryBoy provides support for a variety of data types, including user accounts, posts, comments, and more. You can use FactoryBoy to generate data for both unit tests and functional tests. Reqres (www.reqres.in) Reqres is a simple user registration and login API with dummy data.
🌐
News API
newsapi.org
News API – Search News and Blog Articles on the Web
β€œNews API has been the integral element allowing us to offer relevant and timely political news to our users – allowing them to take immediate action to contact their representatives using generated call scripts based on the articles they read.”
🌐
Platzi
fakeapi.platzi.com β€Ί en β€Ί rest β€Ί users
Users | Platzi Fake Store API
Platzi Fake Store API Β· Search CtrlK Β· Cancel Β· GitHub Β· Select theme Β· Dark Β· Light Β· Auto Β· Retrieve a list of all users by using the /users endpoint. Terminal window Β· GET https://api.escuelajs.co/api/v1/users Β· [ { "id": 1, "email": "john@mail.com", "password": "changeme", "name": "Jhon", "role": "customer", "avatar": "https://i.imgur.com/LDOO4Qs.jpg" } // ...
🌐
DummyAPI
dummyapi.uk
DummyApi
Effortless Dummy APIs for Your Testing Needs, Quickly generate fake data and APIs for your development and testing projects.
🌐
Grimaldo
grimaldo.dev β€Ί fake-json-api
How to create a easy fake api | Grimaldo.dev
How to create a json api with dynamic data in minutes using json-server and fajer.js
🌐
Chrome Web Store
chromewebstore.google.com β€Ί detail β€Ί requestly-supercharge-you β€Ί mdnleldcmiljblolnjhpnblkcekpdkpa
Requestly: Supercharge your Development & QA - Chrome Web Store
======== Top Features ======== πŸ‘‰ Beautiful & Privacy-Friendly API Client β†’ Test API Responses β†’ API Collections β†’ Environments (Variables & Secrets) β†’ Pre-Request & Post-Response Scripts β†’ Team Workspaces πŸ“Œ Demo Video – https://www.youtube.com/watch?v=xrqmAffe86k πŸ‘‰ Mock XHR & Fetch API requests (Stub API Responses or API Mocking) β†’ Helps in building frontend faster when backend (or APIs) don't exist β†’ Define Custom API Responses triggered by XHR/fetch β†’ Modify/Override API responses β†’ Mock GraphQL API responses β†’ Simulate fake HTTP Status Code (400s or 500s) πŸ“Œ
🌐
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.
🌐
Faux API
faux-api.com β€Ί home β€Ί instantapi
Build & Test Instantly – Your Mock instant API for JSON!
Easily create and test fake APIs using our free JSON API mock tool. No login or setup required perfect for developers building and testing applications with real-time mock data.
🌐
Platzi
fakeapi.platzi.com β€Ί en β€Ί rest β€Ί products
Products | Platzi Fake Store API
Platzi Fake Store API Β· Search CtrlK Β· Cancel Β· GitHub Β· Select theme Β· Dark Β· Light Β· Auto Β· You can access the list of 50 products by using the /products endpoint. Terminal window Β· [GET] https://api.escuelajs.co/api/v1/products Β·
Top answer
1 of 1
2

Basically it is very important to start with a correct setup to avoid struggling with unexpected use cases later that may result in refactoring of a lot of code. In case you start with a frontend that is based on an api without having an api, I recommend to you to avoid mocking a backend fake API yourself but use a already existing solution.

A very useful tool which i can hightly recommend for mocking a fake backend API, especially for beginners, is jsonserver.io.

For later API url switch, I recommend to use .env for defining the API urls. The use of .env files requires the dotenv lib you can get from here. The use of dotenv allows you to define different .env files like a .env.development or .env.production or whatever you like. For loading the correct env you have just to do the following:

require('dotenv').config({ path: `.env.${process.env.NODE_ENV}` })

This would load the .env based on the NODE_ENV (development/production). The .env files can contain the vars which define the URLs you need for your backend like BASE_API_URL. If you decide to use e.g jsonserver.io, the development env would define

BASE_API_URL=https://api.jsonserver.io

and the production (or whatever you're going to name it for further non-production urls)

BASE_API_URL=https://your-domain.com

Finally you have to set base url in your axios configuration section at nuxt.config.js

axios: {
    browserBaseURL: process.env.BASE_API_URL,
    ....
}

Thats it, just adapt you NODE_ENV or your custom indicator which you want to use for the condition to load the right env file.

NOTE: If you use axios proxy, you have to define the API urls from env in your proxy configuration and use the base browser url as axios base url.