Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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! 🚀