Data encoding
All data you send to DataForSEO API should be UTF-8 encoded.
If you use one of the Clients listed in the first table, gzip will be the default format of data exchange. You will see Content-Encoding: gzip in the header.
All the responses are returned in the JSON format by default, but we also support responses in the XML format – just append .xml to the end of your request. In addition to that, you can request HTML results from endpoints that return HTML-encoded results by appending .html to the end of the request’s URL path.
For example, the following requests will return response encoded in XML or HTML accordingly:
https://api.dataforseo.com/v3/appendix/user_data.xml
https://api.dataforseo.com/v3/serp/google/organic/task_get/html/09061543-1535-0066-0000-6240830f56ba.html
Rate Limits
Each of DataForSEO APIs has a certain rate limit, which you can find in the HTTP header of every endpoint.
Rate limit HTTP headers we use:
X-RateLimit-Limit – the rate limit ceiling per minute for the given endpoint;
X-RateLimit-Remaining – the number of requests remaining in the current rate limit window.
If your system requires rate limits to be increased, please contact our support team.
Results storage
The term for storing API results in our system depends on the API and method of data retrieval.
Standard method: results are stored for 30 days*
Live method: results are not stored*
HTML results: results are stored for 7 days
*for SERP API in both Standard and Live methods, the results in JSON format are stored for 30 days.
To learn more about the terms of results storage, check this Help Center article.