Appearance
Modules and Components
Making Requests
Authorization Required
You need to add the authorization header to make requests
ssh
Authorization: Bearer supersecretkeythatisinthevaultThird party API keys are not required
You do not need to provide api keys to the services. This will automatically append
How to make a Request
The request maps to the relevant endpoint via a wildcard;
SEMrush example request
shell
http://0.0.0.0/api/v1/semrush/?type=domain_ranks&export_columns=Ot%2CDb&domain=ayima.com&display_sort=Ot_desc&display_limit=10maps externally to;
shell
https://api.semrush.com/?type=domain_ranks&export_columns=Ot%2CDb&domain=ayima.com&display_sort=Ot_desc&display_limit=10Majestic example request
shell
http://0.0.0.0/api/v1/majestic/?cmd=GetIndexItemInfo&item0=www.glassesdirect.co.uk&datasource=fresh&items=1&AddAllTopics=true&EnableResourceUnitFailover=1maps externally to;
shell
https://api.majestic.com/api/json?cmd=GetIndexItemInfo&item0=www.glassesdirect.co.uk&datasource=fresh&items=1&AddAllTopics=true&EnableResourceUnitFailover=1Busting Cached Requests
Sometimes you need to bust the cache. In this case simply append bypass_cache=true to the query string.
Busting Cached Requests
Sometimes, you want to only return cached results - you can do this by passing only_cache=true.
If the object is not found it will return a 422 error.
json
{
"response": "resource not cached"
}Checking for cached results
shell
x-cache-hit: 1 or 0
x-cache-tt: time in secs