Skip to content

SERP API

5 operationsserp:writeserp:read

Search Google, Bing and DuckDuckGo by country, language, location and device, with AI Overview citations, and track where a domain ranks for a keyword.

POST/serp/searchSearch Google, Bing or DuckDuckGo and get normalised results, with AI Overview citations.
GET/serp/checksList rank checks.
POST/serp/checksCheck where a domain or URL ranks for a keyword.
GET/serp/checks/{serpCheckId}Get a rank check.
GET/serp/locationsList the locations a search can target.

Search Google, Bing or DuckDuckGo and get normalised results, with AI Overview citations.

POST/v1/serp/search
scope serp:write

Bills 60 units per started 10 results (60 × ceil(depth / 10)), where depth 0 means 20, plus 60 when aiOverview is set.

Request body

aiOverview
boolean
country
string
depth
integer (int32)
device
string
engine
string
required
language
string
location
string
provider
string
query
string
required
tunnel
string

Response

12 fields
enginestring
itemsSerpItem[]
domainstring
rankAbsoluteinteger (int32)
rankGroupinteger (int32)
snippetstring
titlestring
typestring
urlstring
providerstring
querystring
searchedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/serp/search" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "aiOverview": false,
    "country": "…",
    "depth": 0,
    "device": "…",
    "engine": "…",
    "language": "…",
    "location": "…",
    "provider": "…",
    "query": "…",
    "tunnel": "…"
  }'
200 Response shape
{
  "engine": "…",
  "items": [
    {
      "domain": "…",
      "rankAbsolute": 0,
      "rankGroup": 0,
      "snippet": "…",
      "title": "…",
      "type": "…",
      "url": "https://…"
    }
  ],
  "provider": "…",
  "query": "…",
  "searchedAt": 0
}

List rank checks.

GET/v1/serp/checks
scope serp:read

Parameters

page
integer
limit
integer
withTotal
boolean
status
string
clientRef
string

Response

44 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsSerpCheck[]
attemptinteger (int32)
clientRefstring
createdAtinteger (int64)
errorstring
finishedAtinteger (int64) | null
idempotencyKeystring | null
itemsSerpItem[]
domainstring
rankAbsoluteinteger (int32)
rankGroupinteger (int32)
snippetstring
titlestring
typestring
urlstring
matchedUrlstring
maxAttemptsinteger (int32)
metadatamap
nextAttemptAtinteger (int64)
providerstring
rankinteger (int32) | null
rankAbsoluteinteger (int32) | null
requestSearchInput | null
aiOverviewboolean
countrystring
depthinteger (int32)
devicestring
enginestring
languagestring
locationstring
providerstring
querystring
tunnelstring
serpCheckIdstring
statusstring
targetFeaturesstring[]
targetTypestring
targetValuestring
ttlinteger (int64)
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/serp/checks" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "attempt": 0,
      "clientRef": "…",
      "createdAt": 0,
      "error": "…",
      "finishedAt": null,
      "idempotencyKey": null,
      "items": [
        {
          "domain": null,
          "rankAbsolute": null,
          "rankGroup": null,
          "snippet": null,
          "title": null,
          "type": null,
          "url": null
        }
      ],
      "matchedUrl": "https://…",
      "maxAttempts": 0,
      "metadata": {},
      "nextAttemptAt": 0,
      "provider": "…",
      "rank": null,
      "rankAbsolute": null,
      "request": null,
      "serpCheckId": "abc123",
      "status": "…",
      "targetFeatures": [
        "…"
      ],
      "targetType": "…",
      "targetValue": "…",
      "ttl": 0,
      "updatedAt": 0
    }
  ]
}

Check where a domain or URL ranks for a keyword.

POST/v1/serp/checks
scope serp:write

Bills the same units as a search, recorded when the check succeeds.

Request body

async
boolean
idempotencyKey
string
metadata
map
search
SearchInput | null
required
aiOverview
boolean
country
string
depth
integer (int32)
device
string
engine
string
required
language
string
location
string
provider
string
query
string
required
tunnel
string
targetType
string
required
targetValue
string
required

Response

39 fields
attemptinteger (int32)
clientRefstring
createdAtinteger (int64)
errorstring
finishedAtinteger (int64) | null
idempotencyKeystring | null
itemsSerpItem[]
domainstring
rankAbsoluteinteger (int32)
rankGroupinteger (int32)
snippetstring
titlestring
typestring
urlstring
matchedUrlstring
maxAttemptsinteger (int32)
metadatamap
nextAttemptAtinteger (int64)
providerstring
rankinteger (int32) | null
rankAbsoluteinteger (int32) | null
requestSearchInput | null
aiOverviewboolean
countrystring
depthinteger (int32)
devicestring
enginestring
languagestring
locationstring
providerstring
querystring
tunnelstring
serpCheckIdstring
statusstring
targetFeaturesstring[]
targetTypestring
targetValuestring
ttlinteger (int64)
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/serp/checks" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "async": false,
    "idempotencyKey": "…",
    "metadata": {},
    "search": {
      "aiOverview": false,
      "country": "…",
      "depth": 0,
      "device": "…",
      "engine": "…",
      "language": "…",
      "location": "…",
      "provider": "…",
      "query": "…",
      "tunnel": "…"
    },
    "targetType": "…",
    "targetValue": "…"
  }'
200 Response shape
{
  "attempt": 0,
  "clientRef": "…",
  "createdAt": 0,
  "error": "…",
  "finishedAt": 0,
  "idempotencyKey": "…",
  "items": [
    {
      "domain": "…",
      "rankAbsolute": 0,
      "rankGroup": 0,
      "snippet": "…",
      "title": "…",
      "type": "…",
      "url": "https://…"
    }
  ],
  "matchedUrl": "https://…",
  "maxAttempts": 0,
  "metadata": {},
  "nextAttemptAt": 0,
  "provider": "…",
  "rank": 0,
  "rankAbsolute": 0,
  "request": {
    "aiOverview": false,
    "country": "…",
    "depth": 0,
    "device": "…",
    "engine": "…",
    "language": "…",
    "location": "…",
    "provider": "…",
    "query": "…",
    "tunnel": "…"
  },
  "serpCheckId": "abc123",
  "status": "…",
  "targetFeatures": [
    "…"
  ],
  "targetType": "…",
  "targetValue": "…",
  "ttl": 0,
  "updatedAt": 0
}

Get a rank check.

GET/v1/serp/checks/{serpCheckId}
scope serp:read

Parameters

serpCheckId
string · path
required

Response

39 fields
attemptinteger (int32)
clientRefstring
createdAtinteger (int64)
errorstring
finishedAtinteger (int64) | null
idempotencyKeystring | null
itemsSerpItem[]
domainstring
rankAbsoluteinteger (int32)
rankGroupinteger (int32)
snippetstring
titlestring
typestring
urlstring
matchedUrlstring
maxAttemptsinteger (int32)
metadatamap
nextAttemptAtinteger (int64)
providerstring
rankinteger (int32) | null
rankAbsoluteinteger (int32) | null
requestSearchInput | null
aiOverviewboolean
countrystring
depthinteger (int32)
devicestring
enginestring
languagestring
locationstring
providerstring
querystring
tunnelstring
serpCheckIdstring
statusstring
targetFeaturesstring[]
targetTypestring
targetValuestring
ttlinteger (int64)
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/serp/checks/{serpCheckId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "attempt": 0,
  "clientRef": "…",
  "createdAt": 0,
  "error": "…",
  "finishedAt": 0,
  "idempotencyKey": "…",
  "items": [
    {
      "domain": "…",
      "rankAbsolute": 0,
      "rankGroup": 0,
      "snippet": "…",
      "title": "…",
      "type": "…",
      "url": "https://…"
    }
  ],
  "matchedUrl": "https://…",
  "maxAttempts": 0,
  "metadata": {},
  "nextAttemptAt": 0,
  "provider": "…",
  "rank": 0,
  "rankAbsolute": 0,
  "request": {
    "aiOverview": false,
    "country": "…",
    "depth": 0,
    "device": "…",
    "engine": "…",
    "language": "…",
    "location": "…",
    "provider": "…",
    "query": "…",
    "tunnel": "…"
  },
  "serpCheckId": "abc123",
  "status": "…",
  "targetFeatures": [
    "…"
  ],
  "targetType": "…",
  "targetValue": "…",
  "ttl": 0,
  "updatedAt": 0
}

List the locations a search can target.

GET/v1/serp/locations
scope serp:read

Parameters

engine
string
required
country
string
required
query
string
page
integer
limit
integer
withTotal
boolean

Response

8 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsLocation[]
codestring
namestring
typestring
curl "https://api.hoshime.com/v1/serp/locations?engine=value&country=value" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "code": "…",
      "name": "…",
      "type": "…"
    }
  ]
}
esc
↑↓ move↵ open