Use GPT to generate a mock REST API backed by a realistic dataset – with just one phrase. Craft the dataset to your needs, plug in the generated API into your demos and prototypes to ship better and faster.
👋Product Hunt!
@aashj99 and I have worked on countless side projects where we’ve needed to spin up mock APIs for demos, prototypes, etc. We’ve used existing mock API generators, which require too much effort and manually defining fields to generate generic data that doesn’t quite match our use case.
GPT is remarkably good at generating highly relevant and representative data. For example, generating a dataset of ‘list of commercial properties in Los Angeles’ gives you a realistic address (456 Sunset Blvd, Los Angeles, CA 90026) and neighborhood (Hollywood) and relevant fields like price_per_sq_ft and amenities.
We’ve personally found this useful in quickly spinning up prototypes backed by realistic data that matches our use case. We hope you find it useful for all the projects you work on as well :)
Here’s how you can use the Mock API Generator for your own project:
- Use a natural language prompt (i.e. ‘list of Harry Potter characters’) to immediately generate a schema and corresponding dataset
- Fiddle with the data by adding, editing, and deleting columns and setting number of rows and fields till it’s just right for you
- Export your dataset as a CSV or generate a REST API that persists it with standard read and write endpoints
We’re also planning on building a Figma plugin where you can generate mock data and APIs to power your Figma designs and prototypes. Let us know if you would find that interesting.
Would love to hear some feedback and questions, as well as what you’d love to see next. Thanks for checking us out :)
@saiatmakuri thank you!! 🙌 and truly excited for what more there is to come in the space
Report
Awesome use of GPT. There should be way more upvotes on this. Would have been cool if it was possible to put what all columns I want before generating the table itself.
This is great, congrats on the launch Moksh and Aash! One question: when I’m using this to generate mock data for a demo, I’d want to ensure that there’s no real data of any real people in there. Is there a way I can edit my prompt to make sure of that? Or do y’all already have that covered?
Report
Product looks so awesome! I'd love to see if we can actually turn this into something people can use for their sandbox data (instead of having to manually write it out themselves, and get a bunch of copies of it). So exciting to see.
Replies
Retool
Ramp
Retool
Fillout.com
Retool
Retool
Scale Forge
Retool
Retool
Retool
Neorepo
Retool
Ugly Video
Retool
Retool