databasestringआवश्यक
Regional Semrush database, e.g. "us", "uk", "de".
https://api.sandbase.ai/v1/api/semrush/domain-vs-domainKeyword gap between domains: shared and unique keywords with each domain's ranking position.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a keyword gap report for the domains you compare on a Semrush regional database. It needs a database code and a domains string in Semrush syntax. The response is semicolon-separated text with a header line and one line per keyword.
curl -X POST "https://api.sandbase.ai/v1/api/semrush/domain-vs-domain" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"database": "us", "domains": "*|or|nike.com|*|or|adidas.com"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
database | string | Yes | Regional Semrush database, e.g. "us", "uk", "de". |
domains | string | Yes | Domains to compare in Semrush syntax, e.g. "/or/nike.com//or/adidas.com". |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"Keyword;nike.com\r\nsoccer;31\r\nrunning;7\r\nrunning shoes;1\r\nbasketball shoes;1\r\nsoc…"
| Field | Meaning |
|---|---|
[0] | The header line. It names each column, starting with Keyword, followed by one column per domain, such as nike.com. |
[] | One line per keyword. Split the text on \r\n to get the lines. |
[][0] | The search keyword for that line, such as running shoes. |
[][1] | The ranking position of the domain named in the second header column. For example, running shoes;1 means that domain ranks at position 1 for running shoes. |
\r\n for lines and on ; for columns. The paths above refer to the lines and columns after that split.domains value uses Semrush syntax. Each domain is written as *|or|domain.com, and the entries are joined with |. For example, *|or|nike.com|*|or|adidas.com.Billed at the actual cost of each call, about $0.16 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/semrush/domain-vs-domain" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domains": "*|or|nike.com|*|or|adidas.com",
"database": "us"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
databasestringआवश्यकRegional Semrush database, e.g. "us", "uk", "de".
domainsstringआवश्यकDomains to compare in Semrush syntax, e.g. "*|or|nike.com|*|or|adidas.com".
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Semrush Domain vs Domainयह API Semrush | $0.16 प्रति कॉल से | JSON |
Semrush | $0.08 प्रति कॉल से | JSON |
Semrush | $0.08 प्रति कॉल से | JSON |
Semrush | $0.08 प्रति कॉल से | JSON |
Semrush | $0.004 प्रति कॉल | JSON |
Semrush | $0.04 प्रति कॉल से | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/semrush/domain-vs-domain पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.16 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: database (string) और domains (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Semrush Domain vs Domain SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Semrush API access के लिए आवेदन करने की आवश्यकता नहीं है।