Google search volume, CPC and competition by keyword
semrush.google.keywords.volumeGet Google search volume, CPC, competition and result count for a single keyword
- Price
- Price pendingAt provider cost
- Success rate
- —No success-rate data yetLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/semrush.google.keywords.volumePreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
CSV response, one data line per keyword. `phrase_this` takes ONE keyword; for a batch use `type=phrase_these` with keywords joined by semicolons (phrase=ebay;seo), same price per line, which is much cheaper per keyword than looping this endpoint.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
type | string | Required | phrase_this | |
phrase | string | Required | the keyword to look up | seo |
database | string | Required | us | |
display_date | string | Optional | YYYYMM15 for a past month; historical requests bill at 50 units/line | |
export_escape | integer | Optional | ||
export_columns | string | Optional | default Ph,Nq,Cp,Co,Nr,Td. Nq=volume Cp=CPC Co=competition Nr=number of results Td=12-month trend | Ph,Nq,Cp,Co,Nr,Td |
- Query parameters
typestringRequiredExample:
phrase_thisphrasestringRequiredthe keyword to look up
Example:
seodatabasestringRequiredExample:
usdisplay_datestringOptionalYYYYMM15 for a past month; historical requests bill at 50 units/line
export_escapeintegerOptionalexport_columnsstringOptionaldefault Ph,Nq,Cp,Co,Nr,Td. Nq=volume Cp=CPC Co=competition Nr=number of results Td=12-month trend
Example:
Ph,Nq,Cp,Co,Nr,Td
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/semrush.google.keywords.volume' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/semrush.google.keywords.volume",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/semrush.google.keywords.volume", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data.