Mock data for testing purposes

Faker API is a collection of APIs that helps generate content in JSON format.

This is the original Faker API website. It's Free. Forever.

Hero

What is Faker API?

Faker API symbol

Faker API is a collection of completely free APIs that help web developers and web designers generate mock data quickly and easily.

No registration is required. No tokens, no authentication.

It's a free-to-use tool made by developers for developers.

Docs

Faker API symbol

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.

Base URL #

                https://fakerapi.it/api/{version}
            

Version: 2 (latest)

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/{version}/{resource}
                

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 (string) - The language of the data returned.
  • _quantity (integer) - The number of rows requested.
  • _seed (integer) - A seed for the random generator.

_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/{version}/persons?_locale=fr_FR
                

This example returns people with french names.

Here's a list of available locales:

ar_EG ar_JO ar_SA at_AT bg_BG bn_BD cs_CZ da_DK de_AT de_CH de_DE el_CY el_GR en_AU en_CA en_GB en_HK en_IN en_NG en_NZ en_PH en_SG en_UG en_US en_ZA es_AR es_ES es_PE es_VE et_EE fa_IR fi_FI fr_BE fr_CA fr_CH fr_FR he_IL hr_HR hu_HU hy_AM id_ID is_IS it_CH it_IT ja_JP ka_GE kk_KZ ko_KR lt_LT lv_LV me_ME mn_MN ms_MY nb_NO ne_NP nl_BE nl_NL pl_PL pt_BR pt_PT ro_MD ro_RO ru_RU sk_SK sl_SI sr_Cyrl_RS sr_Latn_RS sr_RS sv_SE th_TH tr_TR uk_UA vi_VN zh_CN zh_TW

_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/{version}/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/{version}/companies?_seed=12456
                

Resources #

Addresses
Books
Companies
Credit Cards
Images
Persons
Places
Products
Texts
Users
Custom

Test APIs

Faker API symbol
25 September 2024 Latest

Date of release: 25 September 2024

  • New optional param for Addresses resource: "country_code". This param allows you to force the country of the addresses returned
30 August 2024

Date of release: 30 August 2024

  • New gender for Persons resource: "other". This gender was added to support people who do not identify with binary genders
  • New source (Picsum) and deletion of some types for Image resource. Now, the Image resource has only three types: "any", "pokemon"
  • New parameter "_categories_number" to indicate the number of product categories to be returned in the Products resource
  • New field types with related aliases for the Custom resource: "userName", "freeEmail", "companyEmail", "password", "unixTime", "timeZone", "paragraph", "sentence", "currencyCode", "domainName", "url", "tld" "ip", "macAddress", "userAgent", "iban", "isbn", "slug", "md5", "sha256", "local", "emoji", "color", "mimeType", "fileExtension", "html"...
  • Updated the list of available Pokémon: there are now 897.
  • New resource type: Color
  • Added new automatic tests for all resources
08 January 2022

Date of release: 08 January 2022

  • New field "id" added to some resources (Persons, Users, Addresses, Companies, Products, Books)
30 April 2021

Date of release: 30 April 2021

  • Snake_case synonyms for some "custom" resources
  • General fixes
13 March 2021

Date of release: 13 March 2021

  • Upgrading core technologies
23 April 2020

Date of release: 23 April 2020

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

Date of release: 14 April 2020

  • Added "counter" type to Custom resource
12 April 2020

Date of release: 12 April 2020

  • First release
Made for developers by Alessandro Pietrantonio

Contact me - Cookie Policy