How to limit the number of duplicate tasks?
Duplicate tasks in DataForSEO are tasks with identical payloads. In other words, if you set several tasks to the same API endpoint using the same parameters and account, such tasks are considered duplicates.
We understand that setting multiple identical tasks is easier when you test our product in the initial stages – that’s why duplicate tasks are not limited by default. However, you might want to limit the number of identical tasks per hour in order to avoid overspending later on (for example, when you release an actual application).
When you set a limit for the maximum number of tasks with identical payload, all duplicate tasks above the limit set within an hour will return the following error:
{
"status_code": 40205,
"status_message": "The duplicate task limit per hour has been exceeded. You can modify your limits in the user panel https://app.dataforseo.com/api-settings/api-limits ."
}
To set a Duplicate tasks limit, follow the step-by-step instructions below.
- Log in to the DataForSEO Dashboard.
- Go to Settings.
- Select API Limits.
- Under Custom settings, find the Duplicate tasks limit. Switch it on, and specify the maximum number of duplicate tasks that will be allowed. Then hit Save.
Note that the minimum value for Duplicate tasks limit is 10 and the maximum value is 100. The value you specify must be a multiple of 10.