PulseEmetrics

Search trends

6 endpoints. All requests need an x-api-key header.

GET/v1/trends/search

Trending searches

What is trending in search right now for a country.

Cost: 4 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
geostringTwo-letter country code. Default is worldwide. Example: NG
freshbooleanSkip the cache and fetch live data.
freshbooleanSet 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-time

Interest 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

NameTypeDescription
qrequiredstringSearch term(s), comma separated, up to 5 Example: jollof
geostringTwo-letter country code. Default is worldwide. Example: NG
datestringTime range, for example "today 12-m", "today 5-y", "now 7-d". Example: today 12-m
freshbooleanSet 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/related-queries

Related queries

Top and rising search queries related to a term.

Cost: 4 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
qrequiredstringSearch term Example: jollof
geostringTwo-letter country code. Default is worldwide. Example: NG
datestringTime range, for example "today 12-m", "today 5-y", "now 7-d". Example: today 12-m
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/trends/related-queries?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/related-queries?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/related-queries",
    params={"q": "jollof"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/trends/related-topics

Related topics

Top and rising topics related to a term.

Cost: 4 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
qrequiredstringSearch term Example: jollof
geostringTwo-letter country code. Default is worldwide. Example: NG
datestringTime range, for example "today 12-m", "today 5-y", "now 7-d". Example: today 12-m
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/trends/related-topics?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/related-topics?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/related-topics",
    params={"q": "jollof"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/trends/interest-by-region

Interest 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

NameTypeDescription
qrequiredstringSearch term Example: jollof
geostringTwo-letter country code. Default is worldwide. Example: NG
datestringTime range, for example "today 12-m", "today 5-y", "now 7-d". Example: today 12-m
regionstringGranularity of the breakdown. One of: COUNTRYREGIONDMACITY Example: REGION
freshbooleanSet 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/autocomplete

Autocomplete

Suggested topics and queries that complete a partial search term.

Cost: 4 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
qrequiredstringPartial search term Example: jollof
freshbooleanSet 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())