Push the boundaries of what DataForSEO can do
Learn about the latest updates

Subscribe To Our Newsletter

Back

Multi-location requests in Google Trends API

January,24 2025 17:31:19

Keyword Data API
Multi-location requests in Google Trends API

Need to analyze keyword popularity across different regions simultaneously? With our latest update to the DataForSEO Google Trends API this becomes possible!

Now you can specify multiple locations in a single request using either the location_code or location_name parameter as an array.

Note that each item in this array corresponds to a specific keyword from the keywords array, so the number of locations and keywords must match. Also, the order in which you specify locations and keywords determines their pairing.

Here’s a quick example:

{
  "keywords": ["iphone", "samsung"],   
  "location_name": ["United States", "Ukraine"]
}

In this case, the API will return trends for:

➤ “iphone” in the United States;
➤ “samsung” in Ukraine.

Keep in mind that you cannot request global data for one of the keywords while specifying locations for others. In this case, the API will return an error.

We hope this update makes your keyword trends analysis more dynamic, precise, and actionable. For a complete guide on using the new power of location parameters in Google Trends API, visit our Help Center.

Embed DataForSeo widget on your website


Embed code:
Preview: