Skip to content

fake user data repo is for testing, development, and educational purposes.

Notifications You must be signed in to change notification settings

saqibbedar/fake-user-data-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

Data Structure

The JSON file follows the structure:

[
    {
        "name": "John",
        "email": "john@fakeEmail.com",
        "category": "Singer"
    },
    // ... (other entries)
]

Each entry in the JSON array represents an individual with attributes such as name, email, and category.

Example Setup

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

About

fake user data repo is for testing, development, and educational purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published