databasestringbắt buộc
Regional Semrush database, e.g. "us", "uk", "de".
https://api.sandbase.ai/v1/api/semrush/question-keywordsQuestion-form keyword ideas for a seed phrase, with search volume, CPC and competition.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns question-form keyword ideas for a seed phrase, such as how to choose running shoes. Each row has the search volume and the CPC. You send a phrase and a regional database.
phrase against us, uk and de to compare question demand by country.curl -X POST "https://api.sandbase.ai/v1/api/semrush/question-keywords" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phrase": "running shoes", "database": "us"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
database | string | Yes | Regional Semrush database, e.g. "us", "uk", "de". |
phrase | string | Yes | Keyword to analyze, e.g. "running shoes". |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"Keyword;Search Volume;CPC\r\nhow to choose running shoes;110000;0.43\r\nhow long do …"
| Field | Meaning |
|---|---|
[0] | Column 1 of each row, with the header Keyword. It holds the question-form keyword, for example how long do running shoes last. |
[1] | Column 2 of each row, with the header Search Volume. It holds the search volume for the keyword in the chosen database. For example, how to choose running shoes shows 110000. |
[2] | Column 3 of each row, with the header CPC. It holds the cost per click as a decimal number such as 0.43. The response does not show the currency. |
Keyword;Search Volume;CPC, and lines are separated by \r\n.; to get the columns. In the field list, [0], [1] and [2] mean the first, second and third column of a line.Keyword, Search Volume and CPC columns.Billed at the actual cost of each call, about $0.08 for the request above. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/semrush/question-keywords" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phrase": "running shoes",
"database": "us"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
databasestringbắt buộcRegional Semrush database, e.g. "us", "uk", "de".
phrasestringbắt buộcKeyword to analyze, e.g. "running shoes".
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Semrush Question KeywordsAPI này Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | $0.004 mỗi lần gọi | JSON |
Semrush | Từ $0.04 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/semrush/question-keywords với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
Từ $0.08 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: database (string) và phrase (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Semrush Question Keywords chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Semrush.