What's Faker API?

Faker API it's a collection of completely free APIs that helps web developers and web designers generate fake data in a fast and easy way. No registration is required. No tokens, no authentication.

Every resource allows to choose the API language by the "_locale" parameter and also allows to select the number of rows requested by the "_quantity" parameter. Max 1000 rows.

Check the Docs to read more about every resource. In addition, it's available the Postman collection to use these APIs directly in the well-known client.

At the end of this page you will find the Test section, where you can test our APIs throug the specific form.

Current version: 1.1.1

Docs

No registration is required. No tokens, no keys or other types of authentication. Faker API it's a free service for every developer who want to use it.

Postman:
Download here the Postman collection (v 2.1)
Download Postman Collection

Base URL #

https://fakerapi.it/api/v1/{resource}

Basic Usage #

Some resources allow to filter data by GET parameters.
The names of these parameters are always preceded by an underscore character "_", for example:

https://fakerapi.it/api/v1/images?_width=380

Data are always wrapped inside a "data" object and are always returned with the total number of rows ("total") and with the Http response "code".

Every resource accepts 3 common GET parameters:

_locale #

Default: en_US

This parameter means the language of the API response we want to get and accept the locale format "en_EN". For example:

https://fakerapi.it/api/v1/persons?_locale=fr_FR

This example returns people with french names.

_quantity #

Default: 10

Min: 1 - Max: 1000

This parameter means the number of rows we want to obtain and accept only integers. If you request more than 1000 rows (maximum) the system will return 1000 rows anyway. Example:

https://fakerapi.it/api/v1/companies?_quantity=5

This example returns 5 companies.

_seed #

Default: null

This parameter accept an integer and allows to get always the same results. So, executing the same request with _seed parameter set to the same value (ex. 12345) the results will never change. Example:

https://fakerapi.it/api/v1/companies?_seed=12456

Resources #

Request:

https://fakerapi.it/api/v1/addresses?_quantity=1

Response:

Request:

https://fakerapi.it/api/v1/books?_quantity=1

Response:

Request:

https://fakerapi.it/api/v1/companies?_quantity=1

Response:

Request:

https://fakerapi.it/api/v1/credit_cards?_quantity=1

Response:

Additional optional parameters:

Parameter Description Example
_type any, animals, architecture, nature, people, tech, kittens, pokemon
_type=architecture
_width pixels (default: 640)
_width=500
_height pixels (default: 480)
_height=230

Request:

https://fakerapi.it/api/v1/images?_quantity=1&_type=kittens&_height=300

Response:

Additional optional parameters:

Parameter Description Example
_gender male, female
_gender=female
_birthday_start date in format Y-m-d (default: -90 years)
_birthday_start=1994-02-09
_birthday_end date in format Y-m-d (default: now)
_birthday_end=2018-10-09

Request:

https://fakerapi.it/api/v1/persons?_quantity=1&_gender=male&_birthday_start=2005-01-01

Response:

Request:

https://fakerapi.it/api/v1/places?_quantity=1

Response:

Additional optional parameters:

Parameter Description Example
_price_min number in format 10.35 (default: 0.01)
_price_min=20.50
_price_max number in format 10.35 (default: none)
_price_max=10320.99
_taxes percentage (default: 22)
_taxes=10
_categories_type integer, string, uuid (default: integer)
_categories_type=uuid

Request:

https://fakerapi.it/api/v1/products?_quantity=1&_taxes=12&_categories_type=uuid

Response:

Additional optional parameters:

Parameter Description Example
_characters integer (default: 200)
_characters=350

Request:

https://fakerapi.it/api/v1/texts?_quantity=1&_characters=500

Response:

Additional optional parameters:

Parameter Description Example
_gender male, female
_gender=female

Request:

https://fakerapi.it/api/v1/users?_quantity=1&_gender=male

Response:

This resource is the only one which does'nt follow the same rules of the others.
The 3 common parameters (_quantity, _locale, _seed) have the same usage of the other resources, but this request it's managed in a different way.

Request to this resource accepts custom parameters following this pattern:

myCustomName1=customType1&myCustomName2=customType2

where myCustomName1 and myCustomName2 are my custom parameters names, and customType1 and customType2 are my custom parameters types. See below the allowed types.

This allows to generate a custom ad hoc resource, using type parameters listed below:

Parameter Example
boolean false
boolean_digit 0
buildingNumber "8148"
building_number "See 'buildingNumber'"
card_expiration "09\/23"
card_number "4628173191206100"
card_type "Visa"
city "Schmittmouth"
company_name "Marks and Sons"
counter 9
country "Syrian Arab Republic"
countryCode "TV"
country_code "See 'countryCode'"
date "1989-03-07"
dateTime {"date":"2005-09-23 02:43:46.000000","timezone_type":3,"timezone":"UTC"}
date_time "See 'dateTime'"
ean "9476264038263"
email "shermiston@hotmail.com"
firstName "Meaghan"
first_name "See 'firstName'"
image "http:\/\/placeimg.com\/640\/480\/any"
lastName "Kling"
last_name "See 'lastName'"
latitude 30.666609
longText "Mouse. 'Of course,' the Dodo suddenly called out as loud as she wandered about in all directions, tumbling up against each other; however, they got their tails fast in their mouths. So they couldn't see it?' So she stood watching them, and was suppressed. 'Come, that finished the first really clever thing the King said to the beginning again?' Alice ventured to remark. 'Tut, tut, child!' said the Hatter. 'Nor I,' said the King said, turning to the shore, and then another confusion of voices--'Hold up his head--Brandy now--Don't choke him--How was it, old fellow? What happened to you? Tell us all about it!' Last came a little bottle on it, or at any rate I'll never go THERE again!' said Alice in a melancholy tone: 'it doesn't seem to dry me at all.' 'In that case,' said the Dormouse: 'not in that ridiculous fashion.' And he got up very sulkily and crossed over to the three gardeners, but she was getting so far off). 'Oh, my poor hands, how is it twelve? I--' 'Oh, don't talk about."
long_text "See 'longText'"
longitude 57.548713
name "Loyce Simonis"
null null
number 301
phone "+2036479839239"
pokemon "Smeargle"
postcode "28298-4480"
state "Missouri"
streetAddress "34479 Isabelle Center"
streetName "Kuhn Stream"
street_address "See 'streetAddress'"
street_name "See 'streetName'"
text "I can guess that,' she added aloud. 'Do you know about it, and finding it very nice, (it had, in fact, a sort of mixed flavour of cherry-tart, custard, pine-apple, roast turkey, toffee, and hot."
upc "716677280692"
uuid "14c97f8e-ae10-3e78-a486-c08082c2922a"
vat "69799057502"
website "schamberger.biz"
word "deserunt"

Custom request:

https://fakerapi.it/api/v1/custom?_quantity=1&customfield1=name&customfield2=dateTime&customfield3=phone

Response:

Test APIs

Test Response.

Changelogs

Date of release: 30 April 2021

  • Snake_case synonyms for some "custom" resources
  • General fixes

Date of release: 13 March 2021

  • Upgrading core technologies

Date of release: 23 April 2020

  • Added "pokemon" type to Custom resource
  • Added Pokémon images to Image resource

Date of release: 14 April 2020

  • Added "counter" type to Custom resource

Date of release: 12 April 2020

  • First release