Hanzo
OpenapiSeo

How often named phrases are searched, and what a click costs

Measures phrases the caller already has. It answers, for each phrase named, how many people search it in a month, what an advertising click on it costs,…

POST /v1/seo/keywords

Addresshttps://api.hanzo.ai/v1/seo/keywords
MethodPOST
OperationseoKeyword
AuthAuthorization: Bearer $HANZO_API_KEY

Measures phrases the caller already has.

It answers, for each phrase named, how many people search it in a month, what an advertising click on it costs, and how contested that advertising is. This is the ground fact of search: everything else on this surface is a question about phrases, and this is the one that says whether a phrase is worth having.

Give it phrases you already suspect. To find phrases you have not thought of, use seoIdea; to find the ones a site already places for, use seoRank.

The market defaults to the United States in English. It is priced per request rather than per phrase, so asking about fifty phrases costs what asking about one does.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
keywordsbodystring[]Keywords are the phrases.
languagebodystringLanguage is the ISO code.
locationbodyintegerLocation is the market, as the upstream's numeric code.

Response

StatusBodyMeaning
200seoKeywordOutok

200 body — 8 fields.

FieldInTypeAlwaysDescription
costbodystringCost is what this call cost, in USD, as an exact decimal string.
keywordsbodyseoMetric[]Keywords is one measurement per phrase, in the order the upstream answered.
keywords[].competitionbodynumberCompetition is how contested the advertising is, from 0 to 1.
keywords[].cpcbodynumberCPC is the average cost of one advertising click, in USD.
keywords[].difficultybodyintegerDifficulty is how hard the first page is to reach organically, 0 to 100.
keywords[].keywordbodystringKeyword is the phrase.
keywords[].levelbodystringLevel is the same fact as a word: low, medium or high.
keywords[].volumebodyintegerVolume is the average monthly searches.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


SEO API · All Hanzo APIs · Interactive reference

How is this guide?

On this page