API Home Page
curl
calls, jQuery, Postman, Ajax or other API calls. Thank you.List of web services:
- Get IP Address in text format
- Get IP Address in JSON format
- Get IP Address in JSONP
- Get IP Address in JSONP with custon callback
- Convert text to uppercase
- Convert text to lowercase
- Convert text to titlecase
1. Get IP Address in text format
This web service returns your IP address in text format.
URL: https://api.aruljohn.com/ip
PARAMETERS: none
RETURN TYPE: text
PARAMETERS: none
EXAMPLE:
curl https://api.aruljohn.com/ip
Alternative URL: https://ip.aruljohn.com
EXAMPLE:
curl https://ip.aruljohn.com/
OUTPUT:
199.199.199.1992. Get IP Address in JSON format
This web service returns your IP address in JSON format.
URL: https://api.aruljohn.com/ip/json
PARAMETERS: none
RETURN TYPE: JSON
EXAMPLE:
curl https://api.aruljohn.com/ip/json
Alternative URL: https://ip.aruljohn.com/json
EXAMPLE:
curl https://ip.aruljohn.com/json
OUTPUT:
{"ip":"199.199.199.199"}
3. Get IP Address in JSONP
This web service returns your IP address in JSONP format.
URL: https://api.aruljohn.com/ip/jsonp
PARAMETERS: none
RETURN TYPE: JSON
EXAMPLE:
curl https://api.aruljohn.com/ip/jsonp
Alternative URL: https://ip.aruljohn.com/jsonp
EXAMPLE:
curl https://ip.aruljohn.com/jsonp
OUTPUT:
callback({"ip":"199.199.199.199"});
4. Get IP Address in JSONP with custon callback
This web service returns your IP address in JSONP format with a custom function name.
URL: https://api.aruljohn.com/ip/jsonp
PARAMETERS: callback=functionName
RETURN TYPE: JSON
EXAMPLE:
curl https://api.aruljohn.com/ip/jsonp?callback=findmyip
Alternative URL: https://ip.aruljohn.com/jsonp?callback=findmyip
EXAMPLE:
curl https://ip.aruljohn.com/jsonp?callback=findmyip
OUTPUT:
findmyip({"ip":"199.199.199.199"});
5. Convert text to uppercase
This web service returns a string with all the input converted to uppercase.
URL: https://api.aruljohn.com/uppercase
METHOD: POST
PARAMETERS: str
RETURN TYPE: text
EXAMPLE:
curl -X POST --data "str=hEllo tHEre" https://api.aruljohn.com/uppercase
OUTPUT:
HELLO THERE
6. Convert text to lowercase
This web service returns a string with all the input converted to lowercase.
URL: https://api.aruljohn.com/lowercase
METHOD: POST
PARAMETERS: str
RETURN TYPE: text
EXAMPLE:
curl -X POST --data "str=hEllo tHEre" https://api.aruljohn.com/lowercase
OUTPUT:
hello there
7. Convert text to titlecase
This web service returns a string with all the input converted to titlercase.
URL: https://api.aruljohn.com/titlecase
METHOD: POST
PARAMETERS: str
RETURN TYPE: text
EXAMPLE:
curl -X POST --data "str=hEllo tHEre" https://api.aruljohn.com/titlecase
OUTPUT:
Hello There