So if you are looking for a free sample dummy rest web service URL for testing purposes then you have come to the right place.
Sometimes we need a sample rest API URL for testing JSON while developing a mobile app, Web Application or simply you can IOT i.e internet of things.
we have created a list of dummy free rest APIs for testing without authentication for developers, QA, and demo purposes you can use it.
Rest is API uses HTTP as its underlying communication method. These services can then be consumed by a broad range of clients, like browsers, mobile applications, desktop applications, IoT.
The term IoT stands for the Internet of things. Internet of things is the objects or devices that have an IP address and can communicate over the Internet with other Internet-enabled devices and objects.
The Rest architectural pattern specifies a set of constraints that the system should adhere to.
In this article, We will cover the below points
- free rest API for testing without authentication
- sample rest API url for testing json
- free rest API URL for testing
- public rest API for testing
- online rest API for testing
- dummy rest api example
Sample rest web service URL for testing
Api Base Url- http://restapi.adequateshop.com
Tourist
- /api/Tourist?page=1
- /api/Tourist/14841(Get Tourist by Id)
- /api/Tourist (Create Tourist object POST API)
- /api/Tourist/14841(Update Tourist Object PUT API)
- /api/Tourist/14841 (DELETE Tourist by Id)
- /api/Feed/GetNewsFeed (Nested json response api)
Sample rest API URL for testing without authentication
Here we have mentioned the list public free for testing that means these are publicly accessible, you don’t need to pass any security header in the API request. all these APIs are willing to respond to your AJAX which means they support ajax calling they are cors enable API.
if you want to use the API with authentication please follow the below link
Get All Tourist
This API endpoint returns all Tourist in the travel agency
http://restapi.adequateshop.com/api/Tourist?page=2
{ "$id": "1", "page": 2, "per_page": 10, "totalrecord": 5409, "total_pages": 541, "data": [ { "$id": "2", "id": 19, "tourist_name": "John Doe", "tourist_email": "emeababel@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//Images/userimageicon.png", "tourist_location": "USA", "createdat": "2020-04-29T20:31:36.1333717" }, { "$id": "3", "id": 20, "tourist_name": "shubham aggarwal ", "tourist_email": "shubham744@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/1dfa3272-ebf1-40bd-9520-6b1f225cb5a7.png", "tourist_location": "USA", "createdat": "2020-04-30T05:05:46.2315675" }, { "$id": "4", "id": 21, "tourist_name": "Rahul Deo", "tourist_email": "rahuldeo46@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/ff567b17-4d97-479d-b9d0-d1f71046d666.png", "tourist_location": "USA", "createdat": "2020-04-30T05:22:02.7913372" }, { "$id": "5", "id": 22, "tourist_name": "Anand Prak", "tourist_email": "balaji49734@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/71161727-fee8-478f-8b8f-aba7d1545ef4.png", "tourist_location": "patna", "createdat": "2020-04-30T05:28:57.3667726" }, { "$id": "6", "id": 23, "tourist_name": "ritika", "tourist_email": "ritikagoyalnikku61897@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//Images/userimageicon.png", "tourist_location": "USA", "createdat": "2020-04-30T05:34:32.389486" }, { "$id": "7", "id": 24, "tourist_name": "Anand Prakash", "tourist_email": "testingteam49734@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//Images/userimageicon.png", "tourist_location": "USA", "createdat": "2020-04-30T06:47:06.1556425" }, { "$id": "8", "id": 25, "tourist_name": "Anand Prakash", "tourist_email": "anandgit95@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png", "tourist_location": "Noida, Uttar Pradesh, India", "createdat": "2020-04-30T07:36:28.0041698" }, { "$id": "9", "id": 26, "tourist_name": "Shubham Patial", "tourist_email": "shubhampatial03@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/fcc2f81d-fc31-424c-a221-29823716bf18.png", "tourist_location": "USA", "createdat": "2020-04-30T07:44:45.3498275" }, { "$id": "10", "id": 27, "tourist_name": "Aryan Thapliyal", "tourist_email": "ashithewarrior124@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/91c36b16-8741-4c0d-aefa-fb71e8ae1725.png", "tourist_location": "Dehradun, Uttarakhand, India", "createdat": "2020-04-30T07:57:14.2982159" }, { "$id": "11", "id": 28, "tourist_name": "Aarna Prasad", "tourist_email": "1667153160090391", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//Images/userimageicon.png", "tourist_location": "USA", "createdat": "2020-04-30T09:23:58.2942491" } ] }
API will return a maximum of 10 records in one request
”page”– current page
“per_page”-Indicate per page record
“total”– total records in the database
“total_pages”– total pages i.e if 10< data <=20 then 2 , 10< data <=30 then 3. it present total avaiable page to fetech.
“data“: it will return the array of tourists in the database.
Get Tourist by Id
http://restapi.adequateshop.com/api/Tourist/26
{ "$id": "1", "id": 26, "tourist_name": "Shubham Patial", "tourist_email": "shubhampatial03@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media/Images/fcc2f81d-fc31-424c-a221-29823716bf18.png", "tourist_location": "USA", "createdat": "2020-04-30T07:44:45.3498275" }
Create Tourist Entity POST API-
For creating the entity we need to pass the 3 parameters in the request body i.e tourist_name, tourist_email, and tourist_location.
http://restapi.adequateshop.com/api/Tourist
{ "tourist_name": "Mike", "tourist_email": "mike123@gmail.com", "tourist_location": "Paris" }
API Response
{ "$id": "1", "id": 14842, "tourist_name": "Mike", "tourist_email": "mike123@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//Images/userimageicon.png", "tourist_location": "Paris", "createdat": "2022-01-03T07:53:37.626145Z" }
API Response when email alredy exist 400 Bad Request
{ "$id": "1", "Message": "Pleae try with different email address!" }
Update Tourist Object PUT API-
This is a PUT endpoint that is used to update the Tourist object, we send the Tourist object in the request body. and In response, API will return updated the Tourist detail.
http://restapi.adequateshop.com/api/Tourist/14842
{ "id": 14842, "tourist_name": "Mike Update", "tourist_email": "mike123@gmail.com", "tourist_location": "Paris" }
API Response
{ "$id": "1", "id": 14842, "tourist_name": "Mike Update", "tourist_email": "mike123@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//images/userimageicon.png", "tourist_location": "Paris", "createdat": "2022-01-03T07:53:37.626145" }
DELETE Tourist by Id
This is a delete endpoint to delete the Tourist object in the database
http://restapi.adequateshop.com/api/Tourist/14841
{ "$id": "1", "id": 14841, "tourist_name": "Mike", "tourist_email": "mike@gmail.com", "tourist_profilepicture": "http://restapi.adequateshop.com/Media//Images/userimageicon.png", "tourist_location": "Paris", "createdat": "2022-01-03T07:50:39.6039005" }
Rest API nested JSON example
http://restapi.adequateshop.com/api/Feed/GetNewsFeed
{ "$id": "1", "page": 1, "per_page": 10, "totalrecord": 1078, "total_pages": 108, "data": [ { "$id": "2", "id": 3988, "title": "Auli Trip", "description": null, "location": "Auli Laga Salude, Uttarakhand, India", "multiMedia": [ { "$id": "3", "id": 4765, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/70/c6556dc4-b9f7-43e4-b07b-ef7ae9ab222f.jpg", "createat": "2021-12-29T07:39:34.9172672" }, { "$id": "4", "id": 4766, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/70/8df77515-c58f-4a78-9951-dba230c2f5a8.jpg", "createat": "2021-12-29T07:39:34.9172677" } ], "createdat": "2021-12-29T07:39:34.9172572", "user": { "$id": "5", "userid": 70, "name": "Call_me_@pps", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/UserProfileCover/70/b52f87c3-9149-4038-b37b-6677a53be476.png" }, "commentCount": 0 }, { "$id": "6", "id": 3987, "title": "390", "description": "ruohshshe", "location": "Delhi, India", "multiMedia": [ { "$id": "7", "id": 4763, "title": null, "name": "photo1633094258275.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/a3705d25-4988-40ea-8813-864fc47ea13b.jpg", "createat": "2021-10-01T13:17:48.2277742" }, { "$id": "8", "id": 4764, "title": null, "name": "images (3).jpeg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/bbb6d5a6-5864-4080-8575-23eecf42e2ec.jpeg", "createat": "2021-10-01T13:17:48.2277754" } ], "createdat": "2021-10-01T13:17:48.2277738", "user": { "$id": "9", "userid": 7055, "name": "sachin", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/UserProfileCover/7055/5a0cb654-e486-4956-80ed-b4f2a6a6ea8f.png" }, "commentCount": 0 }, { "$id": "10", "id": 3986, "title": "Red fort", "description": "It is situated in delhi", "location": "Delhi, India", "multiMedia": [ { "$id": "11", "id": 4762, "title": null, "name": "", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/https://youtu.be/t3YWyzcq4Mo", "createat": "2021-10-01T12:38:52.0088042" } ], "createdat": "2021-10-01T12:38:52.008804", "user": { "$id": "12", "userid": 7058, "name": "shivam", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/UserProfileCover/7058/83ed7ed4-7d34-42ec-a599-31504d628a6c.png" }, "commentCount": 0 }, { "$id": "13", "id": 3985, "title": "Taj Mahal ", "description": "One of the best monuments.", "location": "Agra, Uttar Pradesh, India", "multiMedia": [ { "$id": "14", "id": 4761, "title": null, "name": "", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/https://youtu.be/49HTIoCccDY", "createat": "2021-10-01T11:14:59.7463583" } ], "createdat": "2021-10-01T11:14:59.7463582", "user": { "$id": "15", "userid": 7055, "name": "sachin", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/UserProfileCover/7055/5a0cb654-e486-4956-80ed-b4f2a6a6ea8f.png" }, "commentCount": 4 }, { "$id": "16", "id": 3984, "title": "Nice place", "description": "I love delhi.", "location": "Delhi, India", "multiMedia": [ { "$id": "17", "id": 4760, "title": null, "name": "images (3).jpeg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/6af41adc-0565-4d66-b148-a1f6db6b2d4e.jpeg", "createat": "2021-10-01T10:53:04.3237811" } ], "createdat": "2021-10-01T10:53:04.3237808", "user": { "$id": "18", "userid": 7055, "name": "sachin", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/UserProfileCover/7055/5a0cb654-e486-4956-80ed-b4f2a6a6ea8f.png" }, "commentCount": 0 }, { "$id": "19", "id": 3983, "title": "Hawaii mahal", "description": "it is situated in jaipur.", "location": "Jaipur, Rajasthan, India", "multiMedia": [ { "$id": "20", "id": 4756, "title": null, "name": "images (5).jpeg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/1b4824cb-450a-43cc-857e-5bdd2e059142.jpeg", "createat": "2021-10-01T10:21:26.3067288" }, { "$id": "21", "id": 4757, "title": null, "name": "images (6).jpeg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/a853eb9a-ac4e-411c-b425-e7225ccccd4a.jpeg", "createat": "2021-10-01T10:21:26.3067296" }, { "$id": "22", "id": 4758, "title": null, "name": "images (6).jpeg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/d64b7505-4492-4af4-8160-f9418c857ea7.jpeg", "createat": "2021-10-01T10:40:43.5372914" }, { "$id": "23", "id": 4759, "title": null, "name": "images (5).jpeg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/7055/33f81782-6973-40df-b17d-2e8453c8a75e.jpeg", "createat": "2021-10-01T10:41:10.684036" } ], "createdat": "2021-10-01T10:21:26.3067284", "user": { "$id": "24", "userid": 7055, "name": "sachin", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/UserProfileCover/7055/5a0cb654-e486-4956-80ed-b4f2a6a6ea8f.png" }, "commentCount": 1 }, { "$id": "25", "id": 3982, "title": "hello", "description": null, "location": "Dehradun, Uttarakhand, India", "multiMedia": [ { "$id": "26", "id": 4753, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/7a161d73-b72c-427d-95b5-2a56ff3c55c9.jpg", "createat": "2021-09-29T14:42:13.8141926" }, { "$id": "27", "id": 4754, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/18d12a3b-da0d-46bd-9ea4-91f1a98f3248.jpg", "createat": "2021-09-29T14:42:13.8141933" }, { "$id": "28", "id": 4755, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/ad35fa15-3ddb-4f4a-8fce-9fb64e325d2a.jpg", "createat": "2021-09-29T14:42:13.8141935" } ], "createdat": "2021-09-29T14:42:13.8141922", "user": { "$id": "29", "userid": 9, "name": "Kelly", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png" }, "commentCount": 0 }, { "$id": "30", "id": 3981, "title": "New York, NY, USA", "description": null, "location": "New York, NY, USA", "multiMedia": [ { "$id": "31", "id": 4750, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/1e9bb243-b5a5-4c6a-b42a-51b4d9f9a5c4.jpg", "createat": "2021-09-29T14:40:05.55735" }, { "$id": "32", "id": 4751, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/46a5e438-31ad-4c4b-9086-4edebb8cca6d.jpg", "createat": "2021-09-29T14:40:05.5573508" }, { "$id": "33", "id": 4752, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/9b2d9b57-00a5-45e6-b034-1a2cf540966d.jpg", "createat": "2021-09-29T14:40:05.5573509" } ], "createdat": "2021-09-29T14:40:05.5573496", "user": { "$id": "34", "userid": 9, "name": "Kelly", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png" }, "commentCount": 0 }, { "$id": "35", "id": 3980, "title": "Patna", "description": null, "location": "343", "multiMedia": [ { "$id": "36", "id": 4747, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/be18f42d-3cf9-47ec-b155-6be3fac02184.jpg", "createat": "2021-09-29T14:38:43.4892804" }, { "$id": "37", "id": 4748, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/7b801f31-8700-4afb-befa-0dcd9a4299af.jpg", "createat": "2021-09-29T14:38:43.4892813" }, { "$id": "38", "id": 4749, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/6a9b9466-8f62-4dfe-8fb4-4a2e3c463c48.jpg", "createat": "2021-09-29T14:38:43.4892815" } ], "createdat": "2021-09-29T14:38:43.48928", "user": { "$id": "39", "userid": 9, "name": "Kelly", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png" }, "commentCount": 0 }, { "$id": "40", "id": 3979, "title": "343", "description": null, "location": "New York, NY, USA", "multiMedia": [ { "$id": "41", "id": 4746, "title": null, "name": "filename.jpg", "description": null, "url": "https://www.adequatetravel.com/ATMultimedia/feedsmedia/9/b9deb248-7b10-41eb-81d1-c71d0c0cce89.jpg", "createat": "2021-09-29T14:35:47.4776142" } ], "createdat": "2021-09-29T14:35:47.477614", "user": { "$id": "42", "userid": 9, "name": "Kelly", "profilepicture": "https://www.adequatetravel.com/ATMultimedia/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png" }, "commentCount": 0 } ] }
*if you have any query related to the endpoint or any issue , please comment
Now you think that how many websites are connected to the same wallet ie the same application or website? The API behind it works. In such a situation, API is very helpful in website design.
Actually, the connection of the application means that the connection is with the database of thousands of companies with which the application deals. And because of this, we are able to enjoy so many companies on the same wallet. This connection is called API.
Let’s talk about the phone, you must have played a game on your smartphone at some point or the other, no matter what the game is, it does not depend. And whether your smartphone is also Android or iOS and Windows, it also does not matter.
But you must have seen that many times when we install the game, then permission is asked from us many times. Why do we have to give permission, what is the reason behind it? The API works behind this, it checks our phone or computer after the application has been given permission and checks thoroughly what kind of sound this mobile can play, what kind of graphics can be played in it could and much more.
After this, that game and application are able to run smoothly on our phone according to its own without any problem.
API can be mainly divided into four levels.
Procedural – This API provides a common interface to open a file by connecting to the server.
Object-Oriented – These APIs deliver the complex functions of system objects to the server. It is very powerful and can carry a lot of loads.
Service-Oriented – It is responsible for transporting many services and functions from application to serve as a protocol, most of the shopping websites use it.
Resource-Oriented – When we run an application, API collects our data and sends it to the server. It is used by big companies, who want to be completely secure.
API takes our data to a server, so the question arises that the data which is reaching the server, is it safe?
Actually, it sends the same data to the server, which work you want to do. Understand this with an example- suppose you want to upload a video on YouTube, then only the data related to the upload will reach the server.
So they are completely safe. Many big companies are using it like Google, Wikipedia, Amazon, etc. From this, it can be said that the API is secure.
Google Map API: The Google Map API is made for mobile and desktop browsers, using which programmers are able to insert Google Maps into web pages.
YouTube API: With the help of YouTube API, YouTube videos are put into websites and applications.
E-commerce API: There are APIs for different e-commerce applications such as Product Advertising API, Product Information API, etc.
Payment Gateway API: Vendors can process payments using the Payment Gateway API.
Windows Operating System API: Microsoft Direct X uses a collection of APIs to manage multimedia-related tasks such as gaming, graphic designing, etc. in Windows.
Mob API: A programmer who develops applications for Android mobiles can use Android APIs to interact with the hardware.
The post Free Online Sample Rest API URL For Testing appeared first on Software Development | Programming Tutorials.
Read More Articles
- Rest API- React and AXIOS in functional component | Assign Axios response to function component state
- Fetch and display data from API in React JS using Axios
- Crud operations in React Js with Axios and Rest API
- React Js- Fetch data from API with params
- React Js-Fetch data from API in functional component
- React Js- Fetch data from API using hooks
- React Js- Fetch data from API on button click
- [Simple Way]-Fetch data from API and display in table React Js
- [Simple Way]-How to create common helper class in React JS? | Fetch data from API using helper class and functions
- Simple React.js CRUD Example With Rest API