Keywords API

Keyword Suggestions API

Send a seed keyword and get the phrases Google, YouTube and Amazon suggest for it while somebody types, as JSON. Each keyword says which of the three suggested it and how high. These are autocomplete suggestions, not search volumes.

  • 100 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/keywords/suggestions?q=running+shoes&limit=30" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 100 keywords for one seed, those that more of the sources suggest first
  • For each keyword, which of Google, YouTube and Amazon suggested it, and its place in each of their lists
  • A group for each keyword: question, comparison, preposition or other, with the question word it starts with
  • A summary of the seed: the number of keywords, questions, comparisons and phrases of four words or more, and the count per source
  • The country and the language the suggestions were asked for
200 OK · application/json
{
  "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
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/keywords/suggestions

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
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.

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.

Open the reference

Use cases

What people build with it

  • Content ideas from questions

    Keywords in the question group are questions the search boxes complete for people. Each one is a candidate for an article, a video or an FAQ entry.

  • Wording for product listings

    Ask for source=amazon to see how a shop's search box completes a product term, and use those words in titles and bullets.

  • Titles for videos

    Ask for source=youtube to see the phrases YouTube suggests for a topic before you title a video.

  • Term lists for other tools

    Feed the suggestions into a rank tracker or an ads tool as the list of terms to check.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit

A request costs 1 credit. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 100 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Does it return search volume, cost per click or keyword difficulty?

No. The endpoint returns autocomplete suggestions: the phrases Google, YouTube and Amazon offer while somebody types the seed. It has no search volumes, no cost per click and no difficulty scores. sourceCount and bestPosition tell you how many of the sources suggested a phrase and how high, which is a hint of interest, not a measurement.

Where do the keywords come from?

From the suggestion lists of the three search boxes, asked at the moment of your request. The seed is asked as it is, then with question words such as how, what and why in front of it, then with comparison words, prepositions and the letters a to z after it, until the limit is reached.

How many keywords do I get?

Up to the limit you pass: 50 by default, 100 at most. 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 the limit, because a phrase that only came back as a copy of what was asked is dropped.

Which countries and languages can I ask for?

Pass a two-letter country code in country; without it the suggestions are for the United States. The language follows the country. Google and YouTube take any country. Amazon has suggestions for 15 countries; for any other it is left out and named in sourcesUnavailable.

Is this an official API of Google, YouTube or Amazon?

No. Pipefetch is an independent service and is not affiliated with Google, YouTube or Amazon. It returns the suggestions their public search boxes show to anyone who types.

What if a seed has no suggestions?

The request answers 404 no_results and costs nothing.

What does a request cost?

One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.

Guides

Step-by-step guides

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.