Suggestions
Keyword ideas for a seed keyword from the autocomplete suggestions of Google, YouTube and Amazon, with the sources behind each.
Try it in the dashboard 100 free credits when you sign up, no card.
GET/v1/keywords/suggestions
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
qrequired |
string | The seed keyword: a word or a short phrase of up to 80 characters, such as running shoes. |
sourceoptional |
string | Whose suggestions to collect: google, youtube or amazon, or all three. One of: all, google, youtube, amazon. Default: all. |
countryoptional |
string | Two-letter country code the suggestions are asked for, such as US, GB or DE. The language follows the country: German for DE, English for US. Default: US. |
limitoptional |
integer | The most keywords to return. Default: 50. From 1 to 100. |
Example request
curl "https://pipefetch.com/v1/keywords/suggestions?q=running+shoes&limit=30" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/keywords/suggestions?q=running+shoes&limit=30', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/keywords/suggestions",
params={"q": "running shoes", "limit": 30},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"seed": {
"keyword": "running shoes",
"country": "US",
"language": "en",
"sources": [
"google",
"youtube"
],
"sourcesUnavailable": [],
"keywordCount": 30,
"truncated": true,
"questionCount": 24,
"comparisonCount": 0,
"prepositionCount": 3,
"multiSourceCount": 21,
"longTailCount": 28,
"keywordsBySource": {
"google": 24,
"youtube": 25,
"amazon": 5
}
},
"keywords": [
{
"keyword": "running shoes",
"sources": [
"google",
"youtube"
],
"sourceCount": 3,
"bestPosition": 1,
"positionsBySource": {
"google": 1,
"youtube": 1,
"amazon": 2
},
"group": "seed",
"questionWord": null,
"isSeed": true,
"wordCount": 2
},
{
"keyword": "running shoes for women",
"sources": [
"google",
"youtube"
],
"sourceCount": 3,
"bestPosition": 2,
"positionsBySource": {
"google": 2,
"youtube": 7,
"amazon": 4
},
"group": "preposition",
"questionWord": null,
"isSeed": false,
"wordCount": 4
}
]
},
"credits": {
"used": 1,
"remaining": 99
}
}Good to know
- These are autocomplete suggestions: the phrases Google, YouTube and Amazon offer while somebody types the seed. The answer has no search volumes, no cost per click and no difficulty scores.
- The seed is asked as it is, then with question words in front of it (how, what, why), then with comparison words, prepositions and the letters a to z after it, until limit phrases are collected. A seed with many suggestions reaches the limit before the later steps are asked, and truncated is then true. The answer can be a few keywords short of limit, because a phrase that only came back as a copy of what was asked is dropped.
- Keywords are sorted by sourceCount, the number of sources that suggested the phrase, then by bestPosition, the highest place any of them gave it (1 is the top suggestion). group is read from the words of the keyword: question, comparison, preposition or other, and seed for the seed itself, which is in the list when a source suggests it.
- Amazon has suggestions for 15 countries: US, GB, DE, FR, IT, ES, CA, JP, IN, AU, MX, BR, NL, SE and PL. For any other country it is left out and named in sourcesUnavailable; asked for alone there, it answers 404 source_unavailable.
- The counts in seed describe the keywords in the answer. A seed for which no source suggests anything but the seed itself answers 404 no_results and costs nothing.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the Keyword Suggestions API page.