Welcome to the documentation of TempleAPI!
The base URL is https://temple.xslendi.xyz/api/v1
. You can find all endpoints at /endpoints
.
When a request finishes processing, it returns a status code alongside some data. Those are the available status codes:
0
- Success1
- Failure, this returns a message
as data which explains what went wrong.God Word can be found at /godword
. It accepts the following parameters:
amount
- How many words to generate. The default is 1
.dict
- Which dictionary to use, currently, only happy
and vocab
. The default is vocab
An example request would be:
$ curl https://temple.xslendi.xyz/api/v1/godword\?amount=10
{"status":0,"words":"babes manifoldly cases modify masters tellest floating persons chilled honours","count":10}
Terry Quote can be found at /quote
. This retuns random(s) quote(s) from Terry. It accepts the following parameters:
amount
- How many quotes to fetch. The default is 1
.offensive
- Whether to fetch quotes containing the n-word. The default is 0
.An example request would be:
$ curl https://temple.xslendi.xyz/api/v1/quote\?amount=2
{"status":0,"quote":"This is fucking ridiculous I have a goddamn space alien","quotes":["This is fucking ridiculous I have a goddamn space alien","CIA niggers glow in the dark. You can see them if you're driving. You just run them over. That's what you do."],"count":2}