All-APIs Documentation & Tutorial

Welcome! You can use All-APIs endpoints directly in your projects without signup or authentication. Our APIs provide dummy data for users, pets, products, posts, and more.

1. Getting Started

Simply make a GET request to the endpoint you want. The API returns JSON data directly.

Example Endpoints:

2. Using Fetch in JavaScript

You can fetch API data directly in your frontend project like this:


fetch('https://all-apis.com/users')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

    

3. Using APIs in HTML / JS Project

Create a simple HTML page and display API data:


<!DOCTYPE html>
<html>
<head></head>
<body>
  <h1>Users</h1>
  <ul id="users"></ul>

  <script>
    fetch('https://all-apis.com/users')
      .then(res => res.json())
      .then(users => {
        const list = document.getElementById('users');
        users.forEach(user => {
          const li = document.createElement('li');
          li.textContent = `${user.name} - ${user.email}`;
          list.appendChild(li);
        });
      });
  </script>
</body>
</html>

    

4. Creating a Small Project

You can create a small project with all endpoints. Example:


// HTML file
<h2>Products</h2>
<ul id="products"></ul>

<script>
fetch('https://all-apis.com/products')
  .then(res => res.json())
  .then(products => {
    const list = document.getElementById('products');
    products.forEach(product => {
      const li = document.createElement('li');
      li.textContent = `${product.name} - $${product.price}`;
      list.appendChild(li);
    });
  });
</script>

    

5. Tips

That’s it! You can now fetch and use dummy data directly from All-APIs.