To install the project, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/open-api.git
- Navigate to the project directory:
cd open-api - Install the dependencies:
npm install or bun install
To start the project, use the following command:
npm run start This will start the server and you can access the API at http://localhost:3002.
We welcome contributions! Please follow these steps to contribute:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-branch
-
Make your changes and commit them:
git commit -m "Description of your changes" -
Push to the branch:
git push origin feature-branch
-
Create a pull request.
For detailed API documentation, including all routes, queries, and params, please refer to the API_README.md file.
GET /v0.1/random_user/:any/:queryGET /v0.1/random_userGET /v0.1/random_user/bigGET /v0.1/random_user/big0GET /v0.1/random_imageGET /v0.1/random_image/autoGET /v0.1/random_image/img/:queryGET /v0.1/random_image/t/:avatarStyle/:query/:imageType
GET /v1.0/contry/:contryCodeGET /v1.0/contry/:contryCode/:typeGET /v1.0/contryGET /v1.0/contry/randomGET /v1.0/address/:contryCodeGET /v1.0/addressGET /v1.0/address/randomGET /v1.0/userGET /v1.0/user/:contryCodeGET /v1.0/saavnCDNGET /v1.0/github/userGET /v1.0/github/user/randomGET /v1.0/github/avatar/randomGET /v1.0/gravatarGET /v1.0/crypt/cGET /v1.0/crypt/d
GET /
-
GET /v0.1/random_image- Query: None
- Params: None
- Example:
GET /v0.1/random_image
-
GET /v0.1/random_image/auto- Query: None
- Params: None
- Example:
GET /v0.1/random_image/auto
-
GET /v0.1/random_image/img/:query- Query: None
- Params:
query(string) - Image type (e.g., png, jpg, jpeg, svg, auto) - Example:
GET /v0.1/random_image/img/png
GET /v0.1/random_image/t/:avatarStyle/:query/:imageType- Query: None
- Params:
avatarStyle(string) - Avatar style (e.g., Adventurer, Avataaars, Big Ears, etc.)query(string) - Image type (e.g., png, jpg, jpeg, svg, auto)imageType(string) - Image type (e.g., png, jpg, jpeg, svg, auto)
- Example:
GET /v0.1/random_image/t/Adventurer/png/svg
-
GET /v0.1/random_user- Query: None
- Params: None
- Example:
GET /v0.1/random_user
-
GET /v0.1/random_user/big- Query: None
- Params: None
- Example:
GET /v0.1/random_user/big
-
GET /v0.1/random_user/big0- Query: None
- Params: None
- Example:
GET /v0.1/random_user/big0
GET /v0.1/random_user/:any/:query- Query: None
- Params:
any(string) - Any stringquery(string) - Any string
- Example:
GET /v0.1/random_user/any/query
-
GET /v1.0/address/:contryCode- Query: None
- Params:
contryCode(string) - Country code (e.g., AU, BR, CA, CH, DE, DK, ES, GB, IN, US) - Example:
GET /v1.0/address/AU
-
GET /v1.0/address- Query: None
- Params: None
- Example:
GET /v1.0/address
-
GET /v1.0/address/random- Query: None
- Params: None
- Example:
GET /v1.0/address/random
-
GET /v1.0/contry/:contryCode- Query: None
- Params:
contryCode(string) - Country code (e.g., AU, BR, CA, CH, DE, DK, ES, GB, IN, US) - Example:
GET /v1.0/contry/AU
-
GET /v1.0/contry/:contryCode/:type- Query: None
- Params:
contryCode(string) - Country code (e.g., AU, BR, CA, CH, DE, DK, ES, GB, IN, US)type(string) - Type of information (e.g., maleFirst, femaleFirst, lastName, citys, streets, states)
- Example:
GET /v1.0/contry/AU/maleFirst
-
GET /v1.0/contry- Query: None
- Params: None
- Example:
GET /v1.0/contry
GET /v1.0/contry/random- Query: None
- Params: None
- Example:
GET /v1.0/contry/random
-
GET /v1.0/user- Query: None
- Params: None
- Example:
GET /v1.0/user
GET /v1.0/user/:contryCode- Query: None
- Params:
contryCode(string) - Country code (e.g., AU, BR, CA, CH, DE, DK, ES, GB, IN, US) - Example:
GET /v1.0/user/AU
GET /v1.0/saavnCDN- Query: None
- Params: None
- Example:
GET /v1.0/saavnCDN
-
GET /v1.0/github/user- Query: None
- Params: None
- Example:
GET /v1.0/github/user
-
GET /v1.0/github/user/random- Query: None
- Params: None
- Example:
GET /v1.0/github/user/random
GET /v1.0/github/avatar/random- Query: None
- Params: None
- Example:
GET /v1.0/github/avatar/random
GET /v1.0/gravatar- Query: None
- Params: None
- Example:
GET /v1.0/gravatar
-
POST /v1.0/crypt/c- Query: None
- Params: None
- Example:
POST /v1.0/crypt/c
-
POST /v1.0/crypt/d- Query: None
- Params: None
- Example:
POST /v1.0/crypt/d
-
GET /v1.0/crypt/c- Query: None
- Params: None
- Example:
GET /v1.0/crypt/c
GET /v1.0/crypt/d- Query: None
- Params: None
- Example:
GET /v1.0/crypt/d