https://github.com/bigdatacloudapi/js-client-ip-client
A Javascript client for fetching the public IP address of a fronted user
https://github.com/bigdatacloudapi/js-client-ip-client
api ip-address-lookup ip-geolocation ip-lookup
Last synced: 3 months ago
JSON representation
A Javascript client for fetching the public IP address of a fronted user
- Host: GitHub
- URL: https://github.com/bigdatacloudapi/js-client-ip-client
- Owner: bigdatacloudapi
- License: mit
- Created: 2019-10-09T00:36:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T00:09:45.000Z (over 2 years ago)
- Last Synced: 2023-09-13T10:26:35.361Z (almost 2 years ago)
- Topics: api, ip-address-lookup, ip-geolocation, ip-lookup
- Language: JavaScript
- Homepage: https://www.bigdatacloud.com
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BigDataCloud Free Public Client IP API Client
A Javascript client for fetching the public IP address of a fronted user [BigDataCloud](https://www.bigdatacloud.com)
This client works without any Javascript dependencies and has no API key or account requirement... Simply load it up and you're ready to fetch the public IP address of your frontend users.For more information about this API and how it works, [please click here.](https://www.bigdatacloud.com/docs/api/public-ip-address-api)
## Documentation
Documentation specific to this Free API Client is detailed below.
For more information on other available APIs, please visit our [API area](https://www.bigdatacloud.com/docs).## Authentication / Identification
There is no authentication or identification required to use this API or client.
You may use this API and client for Free without an account.## Usage Limits
This client-side API is completely FREE for both commercial and non-commercial use, including unlimited usage with no throttling or limitations.
## Manual Installation
1. Download the included javascript file and place it in a publically accessible location
2. Include the script tag `` before your code execution
3. Initiate the Client Info API Client as per the below example## CDN Installation
1. Include the CDN script tag `` before your code execution
2. Initiate the API Client and make the required calls as necessary## Example usage
```javascript
getBDCClientIp(
/* provide a callback function for receiving the client ip */
function(result) {
console.log(result);
}
);```
## Example output
```javascript
{
"ipString": "8.8.8.8",
"ipNumeric": 134744072,
"ipType": "IPv4",
"isBehindProxy": false,
}
```