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

π 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:
- Users π§βπ€βπ§
- Products ποΈ
- Posts & Comments π¬
- To-dos β
- Images πΌοΈ
- Movies & Songs π₯πΆ
- Cities πΊοΈ (GeoJSON)
- Countries π (GeoJSON geometries)
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:
- REST Endpoints π
- 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
With the /imgmaker endpoint, you can tweak:
- Width & height
- Background & font colors (in Hex format)
- Custom message
Example:
/imgmaker/:width/:height/:bg/:fn/:textCheck 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! π