Search page source code and return matching domains with snippets.
GET/api/v1/search
- Takes: Domain
- Passive: the target is not contacted
- Cost: One search credit covers a query plus 25 more requests; 5 cents from prepaid credit on pay-as-you-go. `counts_only` uses
- Plan: Paid plan or prepaid balance
Also accepts POST with the same parameters. regex cannot be combined with ignore_case; ignore_case works on plain queries only. A missing next_offset means the result set is exhausted. count_kind is exact, estimated or partial.
Query parameters
qQuery: boolean, phrase or literal syntax
regexTreat the query as a regular expression
ignore_caseCase-insensitive match; plain queries only
tldLimit to a top-level domain
limitResults per page, 1 to 256 (larger values are clamped)
offsetOffset; pass next_offset from the previous response
counts_onlyReturn only the count, no results
Response fields · 13ShowHide
count_kind
exact, estimated or partial
total
Total matches
verified_hits
Hits verified in this response
next_offset
Offset for the next page; absent when exhausted
match_mode
How the query was matched
domain
Matching domain
url
Matching page URL
tld
Top-level domain
rank
Rank of the domain
occurrences
Number of occurrences
snippet
Matching snippet of the source
charged_cents
Amount charged for this call, in cents
balance_cents
Remaining balance, in cents
curl 'https://www.searchwebcode.com/api/v1/search?q=UA-0000000-1' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"count_kind": "estimated",
"total": 1200,
"verified_hits": 1,
"next_offset": 256,
"match_mode": "substring",
"results": [
{
"domain": "example.com",
"url": "https://example.com/",
"tld": "com",
"rank": 1,
"occurrences": 2,
"snippet": {}
}
],
"charged_cents": 5,
"balance_cents": 1495
}