3.0.0 • Published 5 years ago
@datafire/sheerseo v3.0.0
@datafire/sheerseo
Client library for SheerSEO API
Installation and Usage
npm install --save @datafire/sheerseo
let sheerseo = require('@datafire/sheerseo').create({
ApiKeyAuth: ""
});
.then(data => {
console.log(data);
});
Description
Sheerseo API has 2 stages:First stage - initiating the task: You fill in your task and receive in return the task id. Second stage - collecting the results: send a request containing the task ids you got at the first stage and collecting the results.
Actions
rankCollect
Submit serp jobs
sheerseo.rankCollect({
"body": null
}, context)
Input
- input
object
- body required CollectRequest
Output
- output rankCollectResponse
rankSubmit
Submit rank jobs
sheerseo.rankSubmit({
"body": null
}, context)
Input
- input
object
- body required rankSubmitRequest
Output
- output rankSubmitResponse
serpCollect
Submit serp jobs
sheerseo.serpCollect({
"body": null
}, context)
Input
- input
object
- body required CollectRequest
Output
- output serpCollectResponse
serpSubmit
Submit serp jobs
sheerseo.serpSubmit({
"body": null
}, context)
Input
- input
object
- body required serpSubmitRequest
Output
- output serpSubmitResponse
Definitions
CollectRequest
- CollectRequest
object
- task_ids required
array
: Receiving the request results through thier task id's- items
string
- items
- task_ids required
ErrorResponse
- ErrorResponse
object
- error_message required
string
: explanation of what was wrong
- error_message required
KeywordJobRank
- KeywordJobRank
object
- domain
string
: The domain you want to check its rank for the keyword entered - keyword required
string
: keyword (search term) - localization_code required
string
(values: us, uk, au, br, be_dutch, be_french, ca, de, es, ie, il, nl, sg, za, it, is, ch, fr, se, at, dk, nz, gr, no, in, ms, pl, hk, id, ru, ae, fi, pt, mx, tr, cl, jp, ar): A code for the localization, which is a combination of country and language - localization_zip
string
: option to localize the results per zip code - search_engine
string
(values: google, bing, google_mobile): google/bing/google_mobile
- domain
KeywordJobSerp
- KeywordJobSerp
object
- keyword required
string
: keyword (search term) - localization_code required
string
(values: us, uk, au, br, be_dutch, be_french, ca, de, es, ie, il, nl, sg, za, it, is, ch, fr, se, at, dk, nz, gr, no, in, ms, pl, hk, id, ru, ae, fi, pt, mx, tr, cl, jp, ar): A code for the localization, which is a combination of country and language - localization_zip
string
: option to localize the results per zip code - search_engine
string
(values: google, bing, google_mobile): google/bing/google_mobile
- keyword required
KeywordTask
- KeywordTask
object
- keyword required
string
: keyword (search term) - localization_code required
string
(values: us, uk, au, br, be_dutch, be_french, ca, de, es, ie, il, nl, sg, za, it, is, ch, fr, se, at, dk, nz, gr, no, in, ms, pl, hk, id, ru, ae, fi, pt, mx, tr, cl, jp, ar): A code for the localization, which is a combination of country and language - localization_zip
string
: option to localize the results per zip code - search_engine
string
(values: google, bing, google_mobile): google/bing/google_mobile - status
string
(values: ok, invalid): status of this task request. "ok" means we're working on collecting it. "invalid" means there was an error and it won't be collected - task_id
string
: the assigned task id for this task. Should be used later in the serp-collect request
- keyword required
rankCollectResponse
- Response for rank-collect request
object
- tasks
array
- items
object
- task_id
object
: the id of the task you want to look for- error_message
string
: error message in case task status is invalid - keyword
string
: keyword (search term) - local_pack_rank
integer
: relevent only to google: show the local pack rank of the domain in case exist - localization_code
string
(values: us, uk, au, br, be_dutch, be_french, ca, de, es, ie, il, nl, sg, za, it, is, ch, fr, se, at, dk, nz, gr, no, in, ms, pl, hk, id, ru, ae, fi, pt, mx, tr, cl, jp, ar): A code for the localization, which is a combination of country and language - localization_zip
string
: option to localize the results per zip code - rank
integer
: the exact rank of the domain in the search engine asked - ready
string
(values: true, false): task ready indicator - search_engine
string
(values: google, bing, google_mobile): google/bing/google_mobile - status
string
(values: ok, invalid): task status in terms of success
- error_message
- task_id
- items
- tasks
rankSubmitRequest
- rankSubmitRequest
object
- priority
string
(values: low, high): The priority for the keyword jobs submitted. High priority costs double credits. Default value is low. - tasks required
array
: The keyword RANK jobs. Maximum 1000 jobs per a single request.- items KeywordJobRank
- priority
rankSubmitResponse
- Response for rank-submit request
object
: Describes the result of uploading an image resource- error_message
string
- response_code required
integer
: The request response_code. - tasks
array
- items KeywordTask
- error_message
serpCollectResponse
- Response for serp-collect request
object
: Describes the result of uploading an image resource- tasks
array
- items
object
- task_id
object
- error_message
string
: error message in case task status is invalid - keyword
string
: keyword (search term) - localization_code
string
(values: us, uk, au, br, be_dutch, be_french, ca, de, es, ie, il, nl, sg, za, it, is, ch, fr, se, at, dk, nz, gr, no, in, ms, pl, hk, id, ru, ae, fi, pt, mx, tr, cl, jp, ar): A code for the localization, which is a combination of country and language - localization_zip
string
: option to localize the results per zip code - num_results
integer
: number of results found in SERP - organic_results
array
- items
object
- items
- ready
string
(values: true, false): task ready indicator - search_engine
string
- status
string
(values: ok, invalid): task status in terms of success
- error_message
- task_id
- items
- tasks
serpSubmitRequest
- serpSubmitRequest
object
- priority
string
(values: low, high): The priority for the keyword jobs submitted. High priority costs double credits. Default value is low. - tasks required
array
: The keyword SERP jobs. Maximum 1000 jobs per a single request.- items KeywordJobSerp
- priority
serpSubmitResponse
- Response for serp-submit request
object
: Describes the result of uploading an image resource- error_message
string
- response_code required
integer
: The request response_code. - tasks
array
- items KeywordTask
- error_message
3.0.0
5 years ago