There are some small, yet useful APIs. You can familiarise yourself with AJAX caling by using these APIs.
- https://medium.com/@vicbergquist/18-fun-apis-for-your-next-project-8008841c7be9
- https://dev.to/mukeshkuiry/12-free-and-fun-api-for-your-next-project-5eem
Use api.ipify.org for IPv4 and api6.ipify.org for IPv6. There is a param called format
with tree values avaiable:
text
returns a text file like127.0.0.1
.json
returns a JSON file like{"ip":"127.0.0.1"}
.jsonp
returns a JavaScript file likecallback({"ip":"127.0.0.1"});
.- Additionally, You can specify
callback
to decide the name of the callback function in your front end. FOr example,callback=cb
returnscb({"ip":"127.0.0.1"});
.
- Additionally, You can specify
Use force
to force the API returns yes
, no
, or maybe
. Usually the API returns yes
or no
, but maybe
appears every 1/10.000 time.
10,000 requests a month when using without x-api-key
.
10,000 requests a month when using without x-api-key
.
A playground is avaiable.
- https://xkcd.com/info.0.json (current comic)
https://xkcd.com/{ID}/info.0.json
(comic ofID
)
Is there an interface for automated systems to access comics and metadata? Yes. You can get comics through the JSON interface, at URLs like https://xkcd.com/info.0.json (current comic) and https://xkcd.com/614/info.0.json (comic #614). ~ From https://xkcd.com/about
Generate random lorem ipsum text.
- number: Number of paragraphs or words to generate (default: 1)
- type: Type of content to generate, either paragraphs or words (default: paragraphs)
- length: Length of each paragraph or word (default: long)
Generate random lorem ipsum text.