Gater Docs
Search…
Sending and Receiving Data
Learn the basics of sending requests and parsing the results.
For starters, let's test Gater to make sure it's up and running properly, and to help get a feel for navigating Gater's return JSON file. While following the steps below, take note that the base URL for accessing the Gater API is https://api.gater.dev.
All responses from Gater are structured like this:
sampleResponse.JSON
1
{"main":
2
3
{
4
"content_1":content1,
5
"content_2":content2
6
}
7
8
}
Copied!
Note, there are sometimes more than one 'key' and 'value' pair (named differently).
The keywords ("content1" & "content2") will be customized for the type of info that you request from Gater.
The first keyword, "main", will always be there to help organize information. You can count on this when writing your code :)

Sample Request

Sending a blank status request to Gater with the URL https://api.gater.dev/status will return this if Gater is ready to go:
statusRequest.JSON
1
{"main":
2
3
{
4
"status":"Gater is alive and well"
5
}
6
7
}
Copied!
If Gater returns anything other than "Gater is alive and well" (including 500 or 404 errors), please contact [email protected] for help.
Last modified 4mo ago
Copy link