Random Data API - Random fake data for easier development and testing | Product Hunt

V1 Documentation (Legacy)

You can still use legacy endpoints. Use our data designer for more flexibility.

Design your data

Introduction


Developing and testing your web or mobile app can be hard without any data to work with. This is why Random Data API exists. Use any of our API endpoints and fetch data that will allow you faster development and testing cycle. All responses come with ID (integer) and UID (string).

For example, you can combine our Users, stripe and subscription resources to develop and test your membership feature.

Parameters


Base URI: https://random-data-api.com/api/

Use size=number to fetch an array of any resource except for omniauth.

Use is_xml=true to render XML except for omniauth.

Example #1: https://random-data-api.com/api/cannabis/random_cannabis?size=2&is_xml=true

Example #2: https://random-data-api.com/api/stripe/random_stripe

Example #3: https://random-data-api.com/api/cannabis/random_cannabis?size=30

Omniauth Resources

Omniauth is a library that standardizes multi-provider authentication for web applications. Each of the following methods will return a randomized hash that mimics the hash returned by each of these omniauth strategies.


Google GET - /omniauth/google_get

Google POST - /omniauth/google_post


Facebook GET - /omniauth/facebook_get

Facebook POST - /omniauth/facebook_post


Twitter GET - /omniauth/twitter_get

Twitter POST - /omniauth/twitter_post


LinkedIn GET - /omniauth/linkedin_get

LinkedIn POST - /omniauth/linkedin_post


GitHub GET - /omniauth/github_get

GitHub POST - /omniauth/github_post


Apple GET - /omniauth/apple_get

Apple POST - /omniauth/apple_post

How it works

Check out this great video tutorial from Steve Griffith.