Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saqibbedar/fake-user-data-api
fake user data repo is for testing, development, and educational purposes.
https://github.com/saqibbedar/fake-user-data-api
fake-data fetch-api json json-api jsondata
Last synced: 13 days ago
JSON representation
fake user data repo is for testing, development, and educational purposes.
- Host: GitHub
- URL: https://github.com/saqibbedar/fake-user-data-api
- Owner: saqibbedar
- Created: 2024-02-24T13:20:35.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-09T11:12:32.000Z (10 months ago)
- Last Synced: 2024-03-09T12:25:41.619Z (10 months ago)
- Topics: fake-data, fetch-api, json, json-api, jsondata
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Fake User Data API
This repository is a JSON file with fake user data that can be accessed through a simple API. The data includes information about individuals along with their respective categories.
## Access the Data
The JSON data can be accessed using the following URL:
[Raw JSON Data](https://raw.githubusercontent.com/saqibbedar/fake-user-data-api/main/data.json)
## Data Structure
The JSON file follows the structure:
```json
[
{
"name": "John",
"email": "[email protected]",
"category": "Singer"
},
// ... (other entries)
]
```Each entry in the JSON array represents an individual with attributes such as name, email, and category.
## Example Setup
```js
const fetchData = async ()=>{
try {
const response = await fetch("https://raw.githubusercontent.com/saqibbedar/fake-user-data-api/main/data.json");
if(!response.ok){
throw new Error("failed to locate resources.");
}
const data = await response.json();
console.log(data);
}
catch(error){
console.error(error);
}
};fetchData();
```## Purpose
This repo is for learning purposes, so, feel free to use this fake user data for testing, development, or educational purposes.
## Example
Also, check out this [`Search Engine Tool`](https://github.com/saqibbedar/CS-Student-Search-Engine), this project is the same as this but I have used JSON data of my classmates and made a search tool to search each user individually. It is a great project and beginner-friendly, especially when working with API or JSON-type data.## Contribute 😍
Feel free to contribute to this repository by adding more fake data into JSON files or even adding some additional features. Contributions from the community can make this repository a valuable resource for developers.
Happy coding and learning! 🚀