A simple and beginner-friendly project demonstrating how to fetch data from a REST API using JavaScript's Fetch API and dynamically display it on a responsive web page.
This project uses the free JSONPlaceholder API to retrieve user information and render it as attractive user cards.
- Fetches data from a REST API
- Uses JavaScript Fetch API
- Handles asynchronous operations with Promises
- Dynamically creates HTML elements
- Responsive and modern UI
- Glassmorphism-inspired card design
- Beginner-friendly project structure
- Clean and well-commented code
- HTML5
- CSS3
- JavaScript (ES6)
- Fetch API
- JSONPlaceholder API
This project uses the free JSONPlaceholder REST API.
Endpoint
https://jsonplaceholder.typicode.com/users
API-Integration-in-JS/
│
├── index.html
├── style.css
├── script.js
└── README.md
The application fetches user data from the API and displays information such as:
- Name
- Username
- Phone
- Website
- Company
- Address
- REST APIs
- Fetch API
- Promises
- JSON parsing
- Asynchronous JavaScript
- DOM Manipulation
- Dynamic UI Rendering
- Clone the repository
git clone https://github.com/Wasayullah/API-Integeration.git-
Open the project folder.
-
Open
index.htmlin your browser.
No installation or dependencies are required.
- Loading spinner
- Error handling UI
- Search users
- Filter users
- User details modal
- Pagination
- Dark/Light mode
- API endpoint selector
Contributions, suggestions, and improvements are welcome.
This project is open source and available under the MIT License.