Docs

Introduction

API Ninja Hub is a REST API that provides fake data for testing and prototyping. It is a free to use service that provides a REST API to generate random and mock data without any restrictions. It provides endpoints for generating random user data, random data for posts, todos, comments, and much more.

Let's Start With Users

The /api/users endpoint provides a list of users with randomly generated data. The data includes the user's name, email, address, phone number, and website. The data is generated randomly and is not based on any real user data. The data is generated using the API Ninja Hub Users package.

User Object

The user object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/users/1


[ { "id": 1, "name": "John Doe", "username": "johndoe", "email": "johndoe@example.com", "address": { "street": "123 Main Street", "suite": "Apt 4", "city": "New York", "zipcode": "10001", "geo": { "lat": "40.7128", "lng": "-74.0060" } }, "phone": "555-123-4567", "website": "johndoe.com", "company": { "name": "ABC Company", "catchPhrase": "Providing innovative solutions", "bs": "Technology" } } ]

Result of an APIhttps://api.mandorakannu.xyz/api/users/


[ { "id": 1, "name": "John Doe", "username": "johndoe", "email": "johndoe@example.com", "address": { "street": "123 Main Street", "suite": "Apt 4", "city": "New York", "zipcode": "10001", "geo": { "lat": "40.7128", "lng": "-74.0060" } }, "phone": "555-123-4567", "website": "johndoe.com", "company": { "name": "ABC Company", "catchPhrase": "Providing innovative solutions", "bs": "Technology" } }, { "id": 2, "name": "Jane Smith", "username": "janesmith", "email": "janesmith@example.com", "address": { "street": "456 Elm Street", "suite": "Apt 10", "city": "Los Angeles", "zipcode": "90001", "geo": { "lat": "34.0522", "lng": "-118.2437" } }, "phone": "555-987-6543", "website": "janesmith.com", "company": { "name": "XYZ Corporation", "catchPhrase": "Empowering businesses", "bs": "Finance" } }, { "id": 3, "name": "Michael Johnson", "username": "michaeljohnson", "email": "michaeljohnson@example.com", "address": { "street": "789 Oak Street", "suite": "Apt 7", "city": "Chicago", "zipcode": "60601", "geo": { "lat": "41.8781", "lng": "-87.6298" } }, "phone": "555-555-5555", "website": "michaeljohnson.com", "company": { "name": "DEF Industries", "catchPhrase": "Transforming industries", "bs": "Manufacturing" } } ]

.

.

.

.

Upto 10 Posts.

Now, let's see how to use the /api/posts endpoint.

The /api/posts endpoint provides a list of posts with randomly generated data. The data includes the user's id, id, title and body. The data is generated randomly and is not based on any real user data. The data is generated using the API Ninja Hub Posts package.

Post Object

The post object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/posts/1


[ { "userId": 1, "id": 1, "title": "Post 1", "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit." } ]

Result of an APIhttps://api.mandorakannu.xyz/api/posts/


[ { "userId": 1, "id": 1, "title": "Post 1", "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit." }, { "userId": 1, "id": 2, "title": "Post 2", "body": "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }, { "userId": 1, "id": 3, "title": "Post 3", "body": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris." } ]

.

.

.

.

Upto 100 Posts.

Now, let's see how to use the /api/todos endpoint.

The /api/todos endpoint provides a list of todos with randomly generated data. The data includes the todo's id, userId, title and completed. The data is generated randomly and is not based on any real todo data. The data is generated using the API Ninja Hub Todos package.

Todo Object

The todo object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/todos/1


[ { "userId": 1, "id": 1, "title": "Todo 1", "completed": true } ]

Result of an APIhttps://api.mandorakannu.xyz/api/todos/


[ { "userId": 1, "id": 1, "title": "Todo 1", "completed": true }, { "userId": 1, "id": 2, "title": "Todo 2", "completed": false }, { "userId": 1, "id": 3, "title": "Todo 3", "completed": false } ]

.

.

.

.

Upto 100 Todos.

Now, let's see how to use the /api/comment endpoint.

The /api/Comment endpoint provides a list of Comment with randomly generated data. The data includes the comment's id, postId, name, email, body. The data is generated randomly and is not based on any real todo data. The data is generated using the API Ninja Hub Comment package.

Comment Object

The todo object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/comments/1


[ { "postId": 1, "id": 1, "name": "John Doe", "email": "john.doe@example.com", "body": "This is the first comment." } ]

Result of an APIhttps://api.mandorakannu.xyz/api/comments/


[ { "postId": 1, "id": 1, "name": "John Doe", "email": "john.doe@example.com", "body": "This is the first comment." }, { "postId": 2, "id": 2, "name": "Jane Smith", "email": "jane.smith@example.com", "body": "Great post! Thanks for sharing." }, { "postId": 3, "id": 3, "name": "Michael Johnson", "email": "michael.johnson@example.com", "body": "I have a question regarding this topic..." } ]

.

.

.

.

Upto 100 Comment.

Now, let's see how to use the /api/photos endpoint.

The /api/photos endpoint provides a list of photos with randomly generated data. The data includes the photo's albumId, id, title, url, thumbnailUrl. The data is generated randomly and is not based on any real todo data. The data is generated using the API Ninja Hub Photos package.

Photo Object

The todo object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/photos/1


[ { "albumId": 1, "id": 1, "title": "string", "url": "https://via.placeholder.com/600/92c952", "thumbnailUrl": "https://via.placeholder.com/150/92c952" } ]

Result of an APIhttps://api.mandorakannu.xyz/api/photos/


[ { "albumId": 1, "id": 1, "title": "string", "url": "https://via.placeholder.com/600/92c952", "thumbnailUrl": "https://via.placeholder.com/150/92c952" }, { "albumId": 1, "id": 2, "title": "string", "url": "https://via.placeholder.com/600/771796", "thumbnailUrl": "https://via.placeholder.com/150/771796" }, { "albumId": 1, "id": 3, "title": "string", "url": "https://via.placeholder.com/600/24f355", "thumbnailUrl": "https://via.placeholder.com/150/24f355" } ]

.

.

.

.

Upto 100 Photos.

Now, let's see how to use the /api/albums endpoint.

The /api/albums endpoint provides a list of albums with randomly generated data. The data includes the photo's userId, id, title. The data is generated randomly and is not based on any real todo data. The data is generated using the API Ninja Hub Albums package.

Album Object

The todo object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/albums/1


[ { "userId": 1, "id": 1, "title": "quidem molestiae enim" } ]

Result of an APIhttps://api.mandorakannu.xyz/api/albums/


[ { "userId": 1, "id": 1, "title": "quidem molestiae enim" }, { "userId": 1, "id": 2, "title": "sunt qui excepturi placeat culpa" }, { "userId": 1, "id": 3, "title": "omnis laborum odio" } ]

.

.

.

.

Upto 100 Albums.

Let's Start With Products

The /api/products endpoint provides a list of products with randomly generated data. The data includes the user's id, title, price, description, category, image, rating, rate and count. The data is generated randomly and is not based on any real product data. The data is generated using the API Ninja Hub Products package.

Product Object

The product object is a JSON object that contains the following properties:

Result of an APIhttps://api.mandorakannu.xyz/api/users/1


[ { "id": 1, "title": "Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops", "price": 109.95, "description": "Your perfect pack for everyday use and walks in the forest. Stash your laptop (up to 15 inches) in the padded sleeve, your everyday", "category": "men's clothing", "image": "http://api.mandorakannu.xyz/images/bags.webp", "rating": { "rate": 3.9, "count": 120 } } ]

Result of an APIhttps://api.mandorakannu.xyz/api/products/


[ { "id": 1, "title": "Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops", "price": 109.95, "description": "Your perfect pack for everyday use and walks in the forest. Stash your laptop (up to 15 inches) in the padded sleeve, your everyday", "category": "men's clothing", "image": "http://api.mandorakannu.xyz/images/bags.webp", "rating": { "rate": 3.9, "count": 120 } }, { "id": 2, "title": "Mens Casual Premium Slim Fit T-Shirts ", "price": 22.3, "description": "Slim-fitting style, contrast raglan long sleeve, three-button henley placket, light weight & soft fabric for breathable and comfortable wearing. And Solid stitched shirts with round neck made for durability and a great fit for casual fashion wear and diehard baseball fans. The Henley style round neckline includes a three-button placket.", "category": "men's clothing", "image": "http://api.mandorakannu.xyz/images/half_shirt.webp", "rating": { "rate": 4.1, "count": 259 } }, { "id": 3, "title": "Mens Cotton Jacket", "price": 55.99, "description": "great outerwear jackets for Spring/Autumn/Winter, suitable for many occasions, such as working, hiking, camping, mountain/rock climbing, cycling, traveling or other outdoors. Good gift choice for you or your family member. A warm hearted love to Father, husband or son in this thanksgiving or Christmas Day.", "category": "men's clothing", "image": "http://api.mandorakannu.xyz/images/brown_shirt.webp", "rating": { "rate": 4.7, "count": 500 } } ]

.

.

.

.

Upto 20 Posts.

Star This Repository on GitHub