I'm thrilled to share an exciting personal project I've been working on: fooapi.com. Although it's still a work in progress β€” some features are under active development β€” I'm excited to share regular updates and new releases as they come.

Not Member Click Here

None

🌈 What is FooApi?

FooApi is your go-to platform for generating realistic dummy data across various categories. Whether you're prototyping, building mock applications, or testing out new ideas, this service has you covered.

Here are just some of the categories of data available on FooApi:

And the best part? You can dive into all the details in the FooApi Documentation.

βš™οΈ How to Use FooApi

Currently, FooApi supports two primary methods of fetching data:

  1. REST Endpoints 🌐
  2. GraphQL Queries πŸ“œ

For a hands-on experience, check out the FooApi Playground, where you can test and refine your queries. (Oh, and would you like to see gRPC support? Let me know in the comments! πŸ˜‰)

πŸ’‘ Practical Use Cases

Here are some fun and practical examples to get you started with FooApi:

1️⃣ Creating Placeholder Images 🎨

Want simple and customizable placeholder images? Just try this:

https://fooapi.com/imgmaker/700/500/ff0000/000000/foooo
None

With the /imgmaker endpoint, you can tweak:

  • Width & height
  • Background & font colors (in Hex format)
  • Custom message

Example:

/imgmaker/:width/:height/:bg/:fn/:text

Check out more details here.

2️⃣ Dummy Data for Maps πŸ—ΊοΈ

If you need realistic data for maps, fetch some cities like this:

fetch('https://fooapi.com/api/cities?limit=3')  
  .then(res => res.json())  
  .then(data => console.log(data));

This API uses actual geographical coordinates, ensuring your map-based projects feel authentic. 🌍

3️⃣ Random User Generator πŸ‘€

Need a random user for your project? Here's how:

fetch('https://fooapi.com/api/users/rand')  
  .then(res => res.json())  
  .then(data => console.log(data));

Example response:

{  
  "id": "1",  
  "name": "John",  
  "lastname": "Doe",  
  "username": "JohnxDoe11",  
  "birthdate": "1990-01-01",  
  "age": 30,  
  "gender": "Male",  
  "phone": "+63 791 675 8914",  
  "email": "foo@example.com",  
  "country": "USA",  
  "height": 170,  
  "weight": 70  
}

4️⃣ Social Media Comments πŸ’¬

Working on a social media platform? Fetch some comments to get started:

fetch('https://fooapi.com/api/comments')  
  .then(res => res.json())  
  .then(data => console.log(data));

Example response:

[  
  {  
    "id": "1",  
    "comment": "Sunshine and sci-fi sounds like a perfect combo!",  
    "reactions": 0,  
    "postId": "1",  
    "user": {  
      "id": "50",  
      "name": "John",  
      "lastname": "Smith",  
      "username": "SmiJohnxD100"  
    }  
  },  
  {  
    "id": "2",  
    "comment": "Don't forget the sunscreen! What sci-fi are you reading?",  
    "reactions": 1,  
    "postId": "1",  
    "user": {  
      "id": "2",  
      "name": "Akira",  
      "lastname": "Von Trier",  
      "username": "alphaVonAkirax853"  
    }  
  }  
]

πŸ” Explore and Suggest πŸš€

I'd love to hear your thoughts, feedback, and ideas for new features or data categories! Whether you're designing apps, testing layouts, or building innovative solutions, FooApi is here to make your life easier. πŸ’‘

So, why wait? Head over to FooApi and start exploring today! 🌟