Everbase uses the standardized GraphQL protocol. Never heard of it? Check out the GraphQL website for more information.
Our GraphQL endpoint lives at:
https://api.everbase.co/graphql?apikey=your_key
You only need to fill in your API key (sign up to get one) and you're good to go.
We recommend using our API with a GraphQL client library - but you don't need one. To make a
request, send a POST
request to the URL from abive with the following application/json
payload:
{
"query": "...",
"operationName": "...",
"variables": { "myVariable": "someValue", ... }
}
Here's how to do it using JavaScript:
const query = `
{
client {
userAgent
}
}
`
const res = await fetch('https://api.everbase.co/graphql?apikey=your_key', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query}),
})
let {data} = await res.json()
console.log(data)
So why do we recommend using a GraphQL client library? One word: caching! GraphQL libraries intelligently cache resources and make your application faster. To find a client for your programming language of choice, check out the awesome GraphQL list.
To find out what our API has to offer, click on Query. You can also use the query editor with its built in auto-completion and explorer to easily discover what Everbase has to offer.
If you run into any problems: We have a community forum, or you
can just email us at support@everbase.co
and we'll get back to you ASAP.