Random Data API

Documentation

Generate random fake data and seed your application for easier development and testing

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 #2: 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

GraphQL - click to open playground


Ask for what you need, get exactly that. Send a GraphQL query to our /graphiql API endpoint and get exactly what you need, nothing more and nothing less.

GraphQL queries always return predictable results. Apps using GraphQL are fast and stable because they control the data they get, not the server.

Available Resources

More resources are being added every week


Address:
address(id: Integer) {
id
uid
city
streetName
streetAddress
secondaryAddress
buildingNumber
mailBox
community
zipCode
zip
postcode
timeZone
streetSuffix
citySuffix
cityPrefix
state
stateAbbr
country
countryCode
latitude
longitude
fullAddress
}

Random Data API
© 2017-2020
Built with ❤, ☕ and lots of 🍪 in Vancouver, BC