From 31 January 2017 you must use HTTPS to access the Linkdex API
28 April 2017
Form params:
Form params:
Form params:
The API uses "2-legged" OAuth v1.0a to provide authentication and authorisation services.
A Linkdex Account administrator can create an API user, which will be assigned an API key and a "secret".
The key and secret should be used to sign any HTTP requests being submitted to the Linkdex API service using
the HMAC-SHA1 algorithm.
The Java
oauth-signpost library provides one simple
method for doing this:
// create an HTTP request to a protected resource URL url = new URL("https://api.example.com/protected") HttpURLConnection request = (HttpURLConnection) url.openConnection(); // sign the request (consumer is a Signpost DefaultOAuthConsumer) DefaultOAuthConsumer consumer = new DefaultOAuthConsumer("my_api_key", "my_api_secret"); consumer.sign(request); // send the request request.connect();
The OAuth signing process also generates a timestamp and unique request id.
The Linkdex API will validate the signed request, including the timestamp and unique id, before allowing
access to the requested resource.
An
HTTP 401 Unauthorized response will be returned if access to the resource is not permitted.
{path_context} contains contextual information to correctly identify resources being accessed.
The starting point for resource access is
https://api.linkdex.com/v1/projects/list. This will return a collection
of project descriptors available for the provided API key.
Basic resource access
The API supports retrieval of data in XML (application/xml) or JSON (application/json) format.
Requests to the API can include an Accept header to indicate the preferred response type.
The default response type is XML.
Some of the resources can have detailed exports generated with additional data. These will be generated asynchronously.
An export request will be of the form <path_to_resource>/<resource_id>/export_[format].
Once the export request has been submitted, an HTTP 202 Accepted response will be returned. The body of the response will contain a URL to monitor the progress of the export job. The URL will also be set in the Location header of the response.
The client can use this URL to retrieve the current status of the job; the status will be contained in the response body as plain text. Once the data are ready for retrieval, the response will contain a URL to allow download of the exported data.
Export data will be compressed using GZIP.
Resource | Method | Description |
---|---|---|
https://api.linkdex.com/schema/v1 | GET
|
|
https://api.linkdex.com/v1/rankingconfigs/{path_context}/{id} | GET
|
|
https://api.linkdex.com/v1/rankingconfigs/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/rankings/{path_context}/history | POST
|
|
https://api.linkdex.com/v1/rankings/{path_context}/export_csv | POST
|
|
https://api.linkdex.com/v1/rankings/{path_context}/shareofsearch | POST
|
|
https://api.linkdex.com/v1/rankings/{path_context}/taganalysis | POST
|
|
https://api.linkdex.com/v1/rankings/{path_context}/marketwinners | POST
|
|
https://api.linkdex.com/v1/rankings/{path_context}/all_pages | POST
|
|
https://api.linkdex.com/v1/rankings/{path_context}/full_results | POST
|
|
https://api.linkdex.com/schema | GET
|
|
https://api.linkdex.com/v1/domains/{path_context} | GET
|
|
https://api.linkdex.com/v1/domains/{path_context}/locales | GET
|
|
https://api.linkdex.com/v1/domains/{path_context}/exportVisibility | POST
|
|
https://api.linkdex.com/v1/domains/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/indexes/{path_context}/{index_id:\d+}/export_csv | POST
|
|
https://api.linkdex.com/v1/indexes/{path_context}/{index_id:\d+} | GET
|
|
https://api.linkdex.com/v1/indexes/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/contacts/{path_context}/{id} | GET
|
|
https://api.linkdex.com/v1/contacts/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/sitecrawls/{path_context}/{crawl_id:\d+}/export_csv | POST
|
|
https://api.linkdex.com/v1/sitecrawls/{path_context}/{crawl_id:\d+} | GET
|
|
https://api.linkdex.com/v1/sitecrawls/{path_context}/list | GET
|
|
https://api.linkdex.com/status | GET
|
|
https://api.linkdex.com/v1/jobs/{path_context}/{job_id:\d+}/data | GET
|
|
https://api.linkdex.com/v1/jobs/{path_context}/{job_id:\d+} | GET
|
|
https://api.linkdex.com/v1/jobs/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/projects/{path_context} | GET
|
|
https://api.linkdex.com/v1/projects/list | GET
|
|
https://api.linkdex.com/v1/tags/{path_context}/{id} | GET
|
|
https://api.linkdex.com/v1/tags/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/campaigns/{path_context}/export_xml | POST
|
|
https://api.linkdex.com/v1/campaigns/{path_context}/export_csv | POST
|
|
https://api.linkdex.com/v1/campaigns/{path_context}/list | GET
|
|
https://api.linkdex.com/v1/searchanalytics/{path_context}/countries | GET
|
|
https://api.linkdex.com/v1/searchanalytics/{path_context}/exportKeywords | POST
|
|
https://api.linkdex.com/v1/searchanalytics/{path_context}/exportKeywordsAllPages | POST
|
|
https://api.linkdex.com/v1/searchanalytics/{path_context}/exportPages | POST
|
|
https://api.linkdex.com/v1/keywords/{path_context}/{keyword_id} | GET
|
|
https://api.linkdex.com/v1/keywords/{path_context}/list | GET
|
|
https://api.linkdex.com/application.wadl.html | GET
|
|
GET |
application/xml |
|
|
|
GET |
id | int | id of requested ranking configuration |
path_context | string | encoded context of the request |
application/xml, application/json | ranking-configuration |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | ranking-configurations |
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||||||||||||||
query params
|
text/plain |
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||||||||
query params
|
text/plain |
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | ||||||||||||
query params
|
text/plain |
|
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | ||||||||||||
query params
|
text/plain |
|
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||
query params
|
text/plain |
|
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||||||||||||||
query params
|
text/plain |
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||
query params
|
application/xml, application/json |
|
|
|
|
GET |
application/xml |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | domain |
|
|
|
GET |
path_context | string | encoded context of the request |
path_context | string | encoded context of the request |
application/xml, application/json | domains |
|
|
|
POST |
path_context | string | encoded context of the request |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | ||||||
query params
|
text/plain |
|
|
|
|
|
GET |
path_context | string | encoded context of the request |
path_context | string | encoded context of the request |
application/xml, application/json | domains |
|
|
|
POST |
index_id | long | id of index to export |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | ||||||
query params
|
text/plain |
|
|
|
|
GET |
index_id | long | id of index to retrieve |
path_context | string | encoded context of the request |
application/xml, application/json | index |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | indexes |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | contacts |
|
|
|
POST |
crawl_id | long | id of crawl to generate export for |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | ||||||
query params
|
text/plain |
|
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | sitecrawls |
|
|
|
GET |
text/plain |
|
|
|
GET |
application/octet-stream |
|
|
|
GET |
application/xml, application/json | job |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | jobs |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | project |
|
|
|
GET |
application/xml, application/json | projects |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | tag |
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||
query params
|
text/plain |
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||
query params
|
text/plain |
|
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | campaigns |
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | /searchanalytics/[context]/countries |
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||
query params
|
text/plain |
|
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||
query params
|
text/plain |
|
|
|
|
|
POST |
path_context | string | encoded context of the request |
application/x-www-form-urlencoded | |||||||||
query params
|
text/plain |
|
|
|
|
|
GET |
path_context | string | encoded context of the request |
application/xml, application/json | keywords |
|
|
|
GET |
text/html |
|
|
|