I recently started working on a frontend application, basically using ReactJS. As we know, not all frontend frameworks have the ability to communicate directly with databases for performing database operations.
Therefore, for my testing purposes, I have created a Free rest API for testing without authentication. I have hosted this API on a server so that any other developer who wants to access a free REST API for testing, without authentication, can consume the endpoints and perform testing.
Sometimes, while developing hybrid applications, Windows applications, mobile apps, or web applications, we need sample REST API URLs for testing JSON. That's why we have created a list of dummy free REST APIs without authentication for developers, application developers, and QA testers for demo and testing purposes.
REST API uses HTTP as its underlying communication method. These services can then be consumed by a broad range of clients, including browsers, mobile applications, desktop applications, and IoT devices
If you need sample JSON data for testing or more API-like JSON REST API examples, you can take a look at the article below.
Api Base Url- http://samplerestapi.com
musiclover
Here, we have listed publicly accessible sample REST API URLs for testing JSON for free. This means you don’t need to pass any security API key in the API request. Additionally, you can consume all of these endpoints in JavaScript applications. All endpoints are CORS enabled, meaning they can respond to your AJAX requests. In other words, they support AJAX calls and are CORS enabled APIs.
if you want to use the API with authentication please follow the below link
This API endpoint returns all musiclover in the travel agency
{ "page": 1, "per_page": 10, "totalrecord": 14740, "total_pages": 1474, "data": [ { "id": 276157, "fullname": "id-ltkvbqw", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-10-15T04:24:50.6565322" }, { "id": 275865, "fullname": "id-qn4694o", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-10-13T04:24:21.458307" }, { "id": 272526, "fullname": "Alyce Tate", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-09-30T18:25:39.4949718" }, { "id": 281945, "fullname": "id-2x7tk0l", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-11-04T23:55:14.9678482" }, { "id": 270240, "fullname": "Matt", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-09-21T21:36:17.7697716" }, { "id": 272857, "fullname": "Kish 18 ", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-10-03T08:20:35.5196126" }, { "id": 16555, "fullname": "ttreett", "emailaddresss": "[email protected]", "about": null, "createdat": "0001-01-01T00:00:00" }, { "id": 273626, "fullname": "42342201003140333033432", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-10-06T07:12:20.1176532" }, { "id": 12729, "fullname": "postmanv", "emailaddresss": "[email protected]", "about": null, "createdat": "2021-12-11T16:22:17.305734" }, { "id": 277435, "fullname": "Rickey", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-10-17T09:54:38.265238" } ] }
{ "id": 276157, "fullname": "id-ltkvbqw", "emailaddresss": "[email protected]", "about": null, "createdat": "2023-10-15T04:24:50.6565322" }
For creating the entity we need to pass the 3 parameters in the request body i.e musiclover_name, musiclover_email, and musiclover_location.
{ "fullname": "Anuj Rawat", "emailaddresss": "[email protected]", "about": "I'm a music lover of KK" }
API Response
{ "id": 319721, "fullname": "Anuj Rawat", "emailaddresss": "[email protected]", "about": "I'm a music lover of KK", "createdat": "2024-03-08T13:11:45.7567621Z" }
API Response when email alredy exist 400 Bad Request
{ "Message": "The musicLover emailId is already in use. Please try with a different email address!" }
This is a PUT endpoint that is used to update the musiclover object, we send the musiclover object in the request body. and In response, API will return updated the musiclover detail.
http://samplerestapi.com/api/musiclover/319721
{ "id":319721, "fullname": "Anuj kumar Rawat ", "emailaddresss": "[email protected]", "about": "I'm a music lover of KK" }
API Response
{ "id": 319721, "fullname": "Anuj kumar Rawat ", "emailaddresss": "[email protected]", "about": "I'm a music lover of KK", "createdat": "2024-03-08T13:11:45.4286592" }
This is a delete endpoint to delete the musiclover object in the database
{ "Message": "Row deleted successfully!" }
http://samplerestapi.com/api/Feed/GetNewsFeed
{ "page": 1, "per_page": 10, "totalrecord": 1110, "total_pages": 111, "data": [ { "id": 485, "title": "Triund top", "description": null, "location": "Triund, Himachal Pradesh 176219, India", "images": [ { "id": 1043, "title": null, "name": "IMG_20180603_081614.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/196/c82a0f47-54a3-4320-a794-a304091b0ba8.jpg", "createat": "2020-10-17T16:41:34.8718705" } ], "createdat": "2020-10-17T16:41:34.8718702", "user": { "userid": 196, "name": "raavaav123", "profilepicture": "http://samplerestapi.com/media/Images/d887b89b-5b91-47ee-866a-9262806c4602.png" }, "commentCount": 0 }, { "id": 1683, "title": "Shimla to Kalka toy train ", "description": "Toy train ride in shimla. ", "location": "Shimla, Himachal Pradesh, India", "images": [ { "id": 2304, "title": null, "name": "IMG-20140818-WA0008.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/7/c3d3fe42-1669-47f6-8180-9ce46643af99.jpg", "createat": "2021-01-30T11:13:36.7927763" }, { "id": 2305, "title": null, "name": "IMG-20140818-WA0028.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/7/10db5a02-705f-438f-99c6-9a436364c92c.jpg", "createat": "2021-01-30T11:13:36.7927769" }, { "id": 2306, "title": null, "name": "IMG-20140818-WA0053.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/7/aed37590-60f5-401b-9fed-86422a2eec25.jpg", "createat": "2021-01-30T11:13:36.7927771" }, { "id": 2307, "title": null, "name": "IMG-20140818-WA0016.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/7/270c5e75-9d86-4066-94be-4876109d63d6.jpg", "createat": "2021-01-30T11:13:36.7927772" } ], "createdat": "2021-01-30T11:13:36.792776", "user": { "userid": 7, "name": "tName46}}", "profilepicture": "http://samplerestapi.com/media/Images/71161727-fee8-478f-8b8f-aba7d1545ef4.png" }, "commentCount": 1 }, { "id": 79, "title": "Somnath Trip", "description": "History of the temple. According to popular tradition documented by J. Gordon Melton, the first Shiva temple at Somnath is believed to have been built at some unknown time in the past. The second temple is said to have been built at the same site by the \"Yadava kings\" of Vallabhi around 649 CE.", "location": "Varanasi, Uttar Pradesh, India", "images": [ { "id": 135, "title": null, "name": "photo1590500968984.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/a61019d7-5988-4a83-b94d-6909a0988c98.jpg", "createat": "2020-05-26T13:50:19.7568578" }, { "id": 136, "title": null, "name": "photo1590500944520.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/7ca7a8be-6fae-4491-a866-926748bca7b5.jpg", "createat": "2020-05-26T13:50:19.7568588" }, { "id": 137, "title": null, "name": "images (4).jpeg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/c824a5bc-21d9-4344-ad79-005097b45b5a.jpeg", "createat": "2020-05-26T13:50:19.756859" }, { "id": 138, "title": null, "name": "somnath-temple-1.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/c8172c20-ace2-4aae-9d58-f14b4b92dd17.jpg", "createat": "2020-05-26T13:50:19.7568592" }, { "id": 139, "title": null, "name": "images.jpeg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/0c14233a-90ae-4841-982d-1d551cc41274.jpeg", "createat": "2020-05-26T13:50:19.7568594" }, { "id": 140, "title": null, "name": "images (2).jpeg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/f0572955-6504-4ebf-8132-a7b840ef660c.jpeg", "createat": "2020-05-26T13:50:19.7568599" }, { "id": 141, "title": null, "name": "images (4).jpeg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/21176f1e-33b0-497f-8cc2-5f56f57e2081.jpeg", "createat": "2020-05-26T13:50:19.7568601" }, { "id": 142, "title": null, "name": "images (5).jpeg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/e9749d6a-9d27-4701-be31-8d549ed577e2.jpeg", "createat": "2020-05-26T13:50:19.7568603" }, { "id": 143, "title": null, "name": "images (6).jpeg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/25/e247b90b-45fe-415c-a7c1-31d425925bb6.jpeg", "createat": "2020-05-26T13:50:19.7568604" } ], "createdat": "2020-05-26T13:50:19.7568573", "user": { "userid": 25, "name": "bhaarvr123", "profilepicture": "http://samplerestapi.com/media/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png" }, "commentCount": 7 }, { "id": 240, "title": "KILIMANJARO GROUP JOINING CLIMBS IN 2020--2021.", "description": "KILIMANJARO GROUP JOINING CLIMBS IN 2020--2021.\r\nMount Kilimanjaro is the highest mountain in Africa and the highest free standing mountain in the world. \r\nMount Kilimanjaro is 5,895m or 19,341 feet, and its main summit is called Uhuru Peak.\r\nWe also organise lots of climbs for charities, walking clubs and groups too. \r\nContact us for your Private Kilimanjaro Trek or join one of the open trips to meet like minded individuals. \r\nEmail us today: [email protected]\r\nwww.overlandsafaris.co.tz", "location": "Mt Kilimanjaro, Tanzania", "images": [ { "id": 576, "title": null, "name": "unnamed-1.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/257/40c374fb-bc24-43d7-91da-649073ed61ea.jpg", "createat": "2020-08-17T15:03:09.4803934" }, { "id": 577, "title": null, "name": "snow-on-Kilimanjaro.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/257/2d9f5e80-204d-4754-8e60-a8c09ba329fb.jpg", "createat": "2020-08-17T15:03:09.4803947" }, { "id": 578, "title": null, "name": "Photo-Crater-Camping.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/257/9215efe2-0713-438c-b51e-7b4e30ee75b5.jpg", "createat": "2020-08-17T15:03:09.480395" }, { "id": 579, "title": null, "name": "PC300308.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/257/26dc21c8-8bfc-4596-99f0-e0268c3511e7.jpg", "createat": "2020-08-17T15:03:09.4803952" } ], "createdat": "2020-08-17T15:03:09.4803928", "user": { "userid": 257, "name": "overland safaris africa", "profilepicture": "http://samplerestapi.com/media/Images/cc70c333-4924-4b35-8d68-cfd8860e8501.png" }, "commentCount": 0 }, { "id": 232, "title": "Spiritual Ganga ghat , Varansai", "description": "Visit here for heartwarming experience and watch the beautiful waves of ganga river , totally relaxation of your soul and mind and activate your all chakra's of your soul, watch beautiful ganga Aarti cermony in evening and A walk along the Varanasi ghats is also a fascinating experience.", "location": "Assi ghat, Shivala, Varanasi, Uttar Pradesh 221005, India", "images": [ { "id": 548, "title": null, "name": "Screenshot_20200811-014141_Instagram.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/331/54a9be8e-e1b4-4582-b416-9d53b0956d12.jpg", "createat": "2020-08-14T04:49:31.3206426" }, { "id": 549, "title": null, "name": "20200811_014341.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/331/2981975a-f54a-4be0-9f78-cdb1bafd0603.jpg", "createat": "2020-08-14T04:49:31.320644" }, { "id": 550, "title": null, "name": "20200811_014324.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/331/20b080d9-b169-4228-b088-e0141785ba36.jpg", "createat": "2020-08-14T04:49:31.3206443" }, { "id": 551, "title": null, "name": "20200811_014308.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/331/6b0216cf-e0e2-464b-a726-49d125f54548.jpg", "createat": "2020-08-14T04:49:31.3206445" }, { "id": 552, "title": null, "name": "20200811_014232.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/331/8eb54937-6a41-4438-ae02-c9c3d4cbdc59.jpg", "createat": "2020-08-14T04:49:31.3206447" }, { "id": 553, "title": null, "name": "20200811_014249.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/331/57d137f0-6682-456a-bee6-b7b7901fbff2.jpg", "createat": "2020-08-14T04:49:31.3206456" } ], "createdat": "2020-08-14T04:49:31.320642", "user": { "userid": 331, "name": "vikram choudhary", "profilepicture": "http://samplerestapi.com/media/Images/.png" }, "commentCount": 1 }, { "id": 2944, "title": "Goa memories", "description": "Beutiful memories\r\n", "location": "Goa, India", "images": [ { "id": 3682, "title": null, "name": "1599648085679.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/217/5555877a-e5e6-426d-b42b-f0690d5a83cf.jpg", "createat": "2021-05-06T06:39:39.8642843" } ], "createdat": "2021-05-06T06:39:39.8642837", "user": { "userid": 217, "name": "Balaji Updated", "profilepicture": "http://samplerestapi.com/media/Images/92b378e1-70b5-4a4c-b996-56aed67c721c.png" }, "commentCount": 4 }, { "id": 596, "title": "Himachal Trip - Kasol/ Tosh/ Manali/ Jibhi / Tirthan", "description": "Hello Friends !!\r\n\r\nI am planning a road trip to Kasol/ Manali/ Jibhi from Delhi or from Chandigarh by car between any dates from 5 Feb to 12 Feb.\r\n\r\nI am flexible with the dates and places to visit, looking for travel buddies from Delhi or from Chandigarh.\r\n\r\nIf anyone have tentative travel plans or looking for a travel buddy or if you wanna join me on trip, plz msg me here or DM me on whatsapp +91-8076588279 to chat and to make plan faster.\r\n\r\nHappy Journey!!\r\n\r\nAjay\r\n+91-8076588279\r\n", "location": "Kasol, Himachal Pradesh 175105, India", "images": [ { "id": 1193, "title": null, "name": "IMG_20200719_063647_266.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/1318/eb64d485-8fe2-48dd-bf9c-89a9c50b1a4e.jpg", "createat": "2020-12-13T12:16:02.0983418" }, { "id": 1194, "title": null, "name": "Screenshot_20201119-222825.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/1318/2847774b-5051-464c-952a-863c4598f525.jpg", "createat": "2020-12-13T12:16:02.098343" }, { "id": 1195, "title": null, "name": "Screenshot_20190327-174059__01.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/1318/22f4b72f-b1cc-4f7b-9d36-967ef2358883.jpg", "createat": "2020-12-13T12:16:02.0983433" } ], "createdat": "2020-12-13T12:16:02.0983411", "user": { "userid": 1318, "name": "Ajay Kumar", "profilepicture": "http://samplerestapi.com/media/Images/1906c44e-ec1b-488e-831a-cbd88d90207a.png" }, "commentCount": 1 }, { "id": 1795, "title": "View", "description": "what a beauty", "location": "India", "images": [ { "id": 2457, "title": null, "name": "IMG_20210306_182913.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/3233/fdfa4de1-445c-4f82-b390-b590258421a5.jpg", "createat": "2021-03-09T09:38:17.676433" } ], "createdat": "2021-03-09T09:38:17.6764323", "user": { "userid": 3233, "name": "prashanth kopally", "profilepicture": "http://samplerestapi.com/media/Images/.png" }, "commentCount": 1 }, { "id": 3980, "title": "Patna", "description": null, "location": "343", "images": [ { "id": 4747, "title": null, "name": "filename.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/9/be18f42d-3cf9-47ec-b155-6be3fac02184.jpg", "createat": "2021-09-29T14:38:43.4892804" }, { "id": 4748, "title": null, "name": "filename.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/9/7b801f31-8700-4afb-befa-0dcd9a4299af.jpg", "createat": "2021-09-29T14:38:43.4892813" }, { "id": 4749, "title": null, "name": "filename.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/9/6a9b9466-8f62-4dfe-8fb4-4a2e3c463c48.jpg", "createat": "2021-09-29T14:38:43.4892815" } ], "createdat": "2021-09-29T14:38:43.48928", "user": { "userid": 9, "name": "Kelly who", "profilepicture": "http://samplerestapi.com/media/Images/44121a4c-cfd9-4cc9-a8e4-b25c211b4555.png" }, "commentCount": 0 }, { "id": 234, "title": "Independence day", "description": null, "location": "Badarpur, New Delhi, Delhi, India", "images": [ { "id": 556, "title": null, "name": "IMG-20200815-WA0035.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/51/a16a84f1-d765-4ba1-af01-985c71083c6e.jpg", "createat": "2020-08-15T05:54:19.1924979" }, { "id": 557, "title": null, "name": "IMG-20200815-WA0038.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/51/c681f6c8-4a23-4773-8c5d-f53b9c6262f4.jpg", "createat": "2020-08-15T05:54:19.1924989" }, { "id": 558, "title": null, "name": "IMG-20200815-WA0041.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/51/d243e2c6-01ec-4961-8bb0-f29821c47e17.jpg", "createat": "2020-08-15T05:54:19.1924992" }, { "id": 559, "title": null, "name": "IMG-20200815-WA0036.jpg", "description": null, "url": "http://samplerestapi.com/media/feedsmedia/51/e9c5f2c0-8197-4bfe-85bb-65caf663b3c3.jpg", "createat": "2020-08-15T05:54:19.1924994" } ], "createdat": "2020-08-15T05:54:19.1924973", "user": { "userid": 51, "name": "Anil Kumar Gond edit", "profilepicture": "http://samplerestapi.com/media/Images/7648babf-9a25-4f68-a2a1-e2054aeb64e4.png" }, "commentCount": 1 } ] }