Get access to 30+ marketing and SEO tools. analyze competitors, keywords, and backlinks for free..
Sign in Sign Up

We use cookies to make Serpstat better. By clicking "Accept cookies", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Learn more

Sending keywords to crawl and getting a task id for further queries (tasks.addTask)

The tasks.addTask method allows sending keywords to crawl and get a task ID for further queries.

General request parameters and instructions for using Serpstat API

Request parameters
Parameter Description Type Optional Default value Value options
id Identifier of current request, can be set manually or automatically string no 1, test
method API method name string no   tasks.addTask
params Object with parameters object no
keywords Keywords for parsing string no
"iphone,iphone X,iphone 10"

Search engine identifier

int no 1 — Google
2 — Yandex
country_id Country identifier
Country (for Google) is indicated in the document
int no If Yandex is chosen, country_id should be set as 1, default (as well as Yandex accepts only region_id as the setting for crawling). 23 (USA)

Region or city identifier.
Region is indicated in the document

int yes  Google;
no — Yandex
21176 (Texas)

Language identifier.
Language is indicated in the document

int yes Language of country by default 1 (English)

Device type identifier

int yes Desktop 1 — Desktop
2 — Mobile

Response parameters
Parameter Description
id Identifiers of the current request
result Contains the answer
Crawling identifier
blocked_keywords Keywords with special symbols, which were rejected, credits won’t be charged

Error Description
You have no keywords after filtrating, blocked keywords: [list of blocked keywords] If all sent keywords sent are invalid
Required parameter '[parameter]' missed A parameter missed
Task (id=x) with such parameters has already been created today You have already created a task with such parameters
No such se_id Invalid se_id
Invalid type id value
Invalid type_id
Not enough money. You lack N$ When there's a lack of credits for such amount of keywords

Request data:
    "id": "some_id",
    "method": "tasks.addTask",
    "params": {
        "keywords": "iphone,iphone X,iphone 10",
        "typeId": 1,
        "seId": 1,
        "countryId": 23,
        "regionId": 21176,
        "langId": 1
Response data:
    "id": "some_id",
    "result": {
        "task_id": "2071484",
        "blocked_keywords": []

Share this article with your friends

Sign In Free Sign Up

You’ve reached your query limit.

Or email
Forgot password?
Or email
Back To Login

Don’t worry! Just fill in your email and we’ll send over your password.

Are you sure?


To complete your registration you need to enter your phone number


We sent confirmation code to your phone number

Your phone Resend code Queries left

Something went wrong.

Contact our support team
Or confirm the registration using the Telegram bot Follow this link
Please pick the project to work on

Introducing Serpstat

Find out about the main features of the service in a convenient way for you!

Please send a request, and our specialist will offer you education options: a personal demonstration, a trial period, or materials for self-study and increasing expertise — everything for a comfortable start to work with Serpstat.




We are glad of your comment
I agree to Serpstat`s Privacy Policy.
Upgrade your plan

Upgrade your plan

Export is not available for your account. Please upgrade to Lite or higher to get access to the tool. Learn more

Sign Up Free

Thank you, we have saved your new mailing settings.

View Editing


You have run out of limits

You have reached the limit for the number of created projects. You cannot create new projects unless you increase the limits or delete existing projects.

I want more limits
Open support chat