Search trends
6 endpoints. All requests need an x-api-key header.
GET
/v1/trends/searchTrending searches
What is trending in search right now for a country.
Cost: 4 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
geo | string | Two-letter country code. Default is worldwide. Example: NG |
fresh | boolean | Skip the cache and fetch live data. |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/trends/search?geo=NG&fresh=value" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/trends/search?geo=NG&fresh=value", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/trends/search",
params={"geo": "NG", "fresh": "value"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())GET
/v1/trends/interest-over-timeInterest over time
How search interest in one or more terms changed over a period. Pass up to five comma-separated terms to compare them.
Cost: 4 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
qrequired | string | Search term(s), comma separated, up to 5 Example: jollof |
geo | string | Two-letter country code. Default is worldwide. Example: NG |
date | string | Time range, for example "today 12-m", "today 5-y", "now 7-d". Example: today 12-m |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/trends/interest-over-time?q=jollof" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/trends/interest-over-time?q=jollof", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/trends/interest-over-time",
params={"q": "jollof"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())GET
/v1/trends/interest-by-regionInterest by region
Where a term is most searched, by country, region, city or metro area.
Cost: 4 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
qrequired | string | Search term Example: jollof |
geo | string | Two-letter country code. Default is worldwide. Example: NG |
date | string | Time range, for example "today 12-m", "today 5-y", "now 7-d". Example: today 12-m |
region | string | Granularity of the breakdown. One of: COUNTRYREGIONDMACITY Example: REGION |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/trends/interest-by-region?q=jollof" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/trends/interest-by-region?q=jollof", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/trends/interest-by-region",
params={"q": "jollof"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())GET
/v1/trends/autocompleteAutocomplete
Suggested topics and queries that complete a partial search term.
Cost: 4 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
qrequired | string | Partial search term Example: jollof |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/trends/autocomplete?q=jollof" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/trends/autocomplete?q=jollof", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/trends/autocomplete",
params={"q": "jollof"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())