Skip to content

Browser API

24 operationsbrowser:writebrowser:read

Scrape any URL as markdown, text, HTML, links and metadata, crawl whole sites on a schedule, and keep sites logged in with encrypted login profiles. A stealth browser clicks, types and runs your scripts.

POST/browser/scrapeScrape one URL now: markdown, text, HTML, links, metadata and extraction rules.
GET/browser/crawlsList site crawls.
POST/browser/crawlsCreate a site crawl: start pages whose links it follows across the site.
DELETE/browser/crawls/{crawlId}Delete a site crawl and its stored pages.
GET/browser/crawls/{crawlId}Get a site crawl with its link counts.
PATCH/browser/crawls/{crawlId}Update a site crawl's configuration.
POST/browser/crawls/{crawlId}/startStart a crawl run, or resume the open one.
POST/browser/crawls/{crawlId}/stopStop the running crawl.
DELETE/browser/crawls/{crawlId}/linksClear a site crawl's links.
GET/browser/crawls/{crawlId}/linksList the links a site crawl found, with their status.
POST/browser/crawls/{crawlId}/linksAdd links to a site crawl's queue.
GET/browser/crawls/{crawlId}/resultsList the stored pages of a site crawl.
GET/browser/crawls/{crawlId}/results/{urlHash}Get the stored result of one crawled URL.
GET/browser/profilesList browser profiles, newest first. A profile's login is never returned.
POST/browser/profilesCreate a browser profile: a saved login (cookies, localStorage, IndexedDB), stored encrypted, with a fixed user agent, locale, time zone, viewport and proxy country. Scrapes, crawls and browser jobs that name it start logged in.
DELETE/browser/profiles/{profileId}Delete a browser profile and its login.
GET/browser/profiles/{profileId}Get a browser profile with the sites its login covers.
PATCH/browser/profiles/{profileId}Update a browser profile's name, identity, default tunnel or login settings.
DELETE/browser/profiles/{profileId}/stateClear a browser profile's login: its next run starts logged out.
PUT/browser/profiles/{profileId}/stateImport cookies into a browser profile: a JSON cookie export (Cookie-Editor, EditThisCookie, DevTools, Puppeteer), a Playwright storageState or a Netscape cookies.txt. merge keeps the cookies it does not replace.
POST/browser/liveOpen a live browser of a profile at url and get liveUrl, a page where a person logs in by hand, 2FA included. Saving there stores the login in the profile.
GET/browser/live/{liveSessionId}Get a live session: open, saved, cancelled, expired or failed.
POST/browser/live/{liveSessionId}/stopClose a live session without saving.
GET/browser/skillsList the browser skills, per platform (Instagram, Facebook, Threads, TikTok, any website), with their parameters, whether they need a signed-in browser profile and their daily limit. Run them with a skills job (POST /v1/jobs with skills).

Scrape one URL now: markdown, text, HTML, links, metadata and extraction rules.

POST/v1/browser/scrape
scope browser:write

Bills 2 units for an HTTP fetch and 20 when a browser renders the page (engine browser, auto or chromium), plus 30 per MB through hoshime's residential proxy.

Request body

actions
Action[]
height
integer (int32)
key
string
maxLoops
integer (int32)
ms
integer (int32)
optional
boolean | null
script
string
selector
string
text
string
type
string
required
url
string
urlPattern
string
values
string[]
width
integer (int32)
args
string
blockAds
boolean | null
blockResources
string[]
cookies
Cookie[]
domain
string
name
string
required
path
string
value
string
country
string
darkMode
boolean
delayMs
integer (int32)
engine
string
extract
ExtractRule[]
arg
string
as
string
attr
string
fallbacks
string[]
fields
ExtractRule[]
jsonPath
string
list
boolean
name
string
required
regex
string
selector
string
required
selectorType
string
type
string
formats
string[]
headers
map
hideScrollbars
boolean
initScript
string
largeEvaluateResults
boolean
locale
string
networkLock
boolean
onlyMainContent
boolean
profileId
string
proxy
string
reducedMotion
boolean
timeZone
string
timeoutSeconds
integer (int32)
tunnel
string
url
string
userAgent
string
viewportDevice
string
viewportHeight
integer (int32)
viewportWidth
integer (int32)
waitForSelector
string
waitUntil
string

Response

24 fields
changeStatusstring
dataobject | null
enginestring
evaluateResultsany[]
finalUrlstring
htmlstring
linksstring[]
markdownstring
metadataPageMetadata | null
canonicalstring
descriptionstring
faviconstring
jsonLdany[]
langstring
ogDescriptionstring
ogImagestring
ogTitlestring
ogTypestring
siteNamestring
titlestring
statusCodeinteger (int32)
textstring
truncatedboolean
urlstring
curl -X POST "https://api.hoshime.com/v1/browser/scrape" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [
          "…"
        ],
        "width": 0
      }
    ],
    "args": "…",
    "blockAds": false,
    "blockResources": [
      "…"
    ],
    "cookies": [
      {
        "domain": "…",
        "name": "…",
        "path": "…",
        "value": "…"
      }
    ],
    "country": "…",
    "darkMode": false,
    "delayMs": 0,
    "engine": "…",
    "extract": [
      {
        "arg": "…",
        "as": "…",
        "attr": "…",
        "fallbacks": [
          "…"
        ],
        "fields": [
          {
            "arg": null,
            "as": null,
            "attr": null,
            "fallbacks": null,
            "fields": null,
            "jsonPath": null,
            "list": null,
            "name": null,
            "regex": null,
            "selector": null,
            "selectorType": null,
            "type": null
          }
        ],
        "jsonPath": "…",
        "list": false,
        "name": "…",
        "regex": "…",
        "selector": "…",
        "selectorType": "…",
        "type": "…"
      }
    ],
    "formats": [
      "…"
    ],
    "headers": {},
    "hideScrollbars": false,
    "initScript": "…",
    "largeEvaluateResults": false,
    "locale": "…",
    "networkLock": false,
    "onlyMainContent": false,
    "profileId": "abc123",
    "proxy": "…",
    "reducedMotion": false,
    "timeZone": "…",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…",
    "userAgent": "…",
    "viewportDevice": "…",
    "viewportHeight": 0,
    "viewportWidth": 0,
    "waitForSelector": "…",
    "waitUntil": "…"
  }'
200 Response shape
{
  "changeStatus": "…",
  "data": {},
  "engine": "…",
  "evaluateResults": [
    null
  ],
  "finalUrl": "https://…",
  "html": "…",
  "links": [
    "…"
  ],
  "markdown": "…",
  "metadata": {
    "canonical": "…",
    "description": "…",
    "favicon": "…",
    "jsonLd": [
      null
    ],
    "lang": "…",
    "ogDescription": "…",
    "ogImage": "…",
    "ogTitle": "…",
    "ogType": "…",
    "siteName": "…",
    "title": "…"
  },
  "statusCode": 0,
  "text": "…",
  "truncated": false,
  "url": "https://…"
}

List site crawls.

GET/v1/browser/crawls
scope browser:read

Parameters

page
integer
limit
integer
withTotal
boolean

Response

74 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsCrawl[]
clientRefstring
configCrawlConfig | null
allowExternalLinksboolean
allowPatternsstring[]
allowedDomainsstring[]
concurrencyinteger (int32)
crawlDelayMsinteger (int32)
denyPatternsstring[]
extractAllowPatternsstring[]
extractDenyPatternsstring[]
maxAttemptsinteger (int32)
maxDepthinteger (int32) | null
maxPagesinteger (int32)
maxPagesPerDayinteger (int32)
maxPagesPerHourinteger (int32)
maxPagesPerMonthinteger (int32)
recrawlEveryHoursinteger (int32)
respectRobotsTxtboolean
sitemapstring
startUrlsstring[]
countsLinkCounts | null
doneinteger (int64)
failedinteger (int64)
queuedinteger (int64)
runninginteger (int64)
skippedinteger (int64)
crawlIdstring
createdAtinteger (int64)
idempotencyKeystring | null
namestring
nextDispatchAtinteger (int64)
requestScrapeRequest | null
actionsAction[]
argsstring
blockAdsboolean | null
blockResourcesstring[]
cookiesCookie[]
countrystring
darkModeboolean
delayMsinteger (int32)
enginestring
extractExtractRule[]
formatsstring[]
headersmap
hideScrollbarsboolean
initScriptstring
largeEvaluateResultsboolean
localestring
networkLockboolean
onlyMainContentboolean
profileIdstring
proxystring
reducedMotionboolean
timeZonestring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
userAgentstring
viewportDevicestring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
waitForSelectorstring
waitUntilstring
runFinishedAtinteger (int64) | null
runIdstring
runStartedAtinteger (int64) | null
runtimeStatusstring
statusstring
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/browser/crawls" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "clientRef": "…",
      "config": null,
      "counts": null,
      "crawlId": "abc123",
      "createdAt": 0,
      "idempotencyKey": null,
      "name": "…",
      "nextDispatchAt": 0,
      "request": null,
      "runFinishedAt": null,
      "runId": "abc123",
      "runStartedAt": null,
      "runtimeStatus": "…",
      "status": "…",
      "updatedAt": 0
    }
  ]
}

Create a site crawl: start pages whose links it follows across the site.

POST/v1/browser/crawls
scope browser:write

Request body

config
CrawlConfig | null
required
allowExternalLinks
boolean
allowPatterns
string[]
allowedDomains
string[]
concurrency
integer (int32)
crawlDelayMs
integer (int32)
denyPatterns
string[]
extractAllowPatterns
string[]
extractDenyPatterns
string[]
maxAttempts
integer (int32)
maxDepth
integer (int32) | null
maxPages
integer (int32)
maxPagesPerDay
integer (int32)
maxPagesPerHour
integer (int32)
maxPagesPerMonth
integer (int32)
recrawlEveryHours
integer (int32)
respectRobotsTxt
boolean
sitemap
string
startUrls
string[]
idempotencyKey
string
name
string
request
ScrapeRequest | null
required
actions
Action[]
args
string
blockAds
boolean | null
blockResources
string[]
cookies
Cookie[]
country
string
darkMode
boolean
delayMs
integer (int32)
engine
string
extract
ExtractRule[]
formats
string[]
headers
map
hideScrollbars
boolean
initScript
string
largeEvaluateResults
boolean
locale
string
networkLock
boolean
onlyMainContent
boolean
profileId
string
proxy
string
reducedMotion
boolean
timeZone
string
timeoutSeconds
integer (int32)
tunnel
string
url
string
userAgent
string
viewportDevice
string
viewportHeight
integer (int32)
viewportWidth
integer (int32)
waitForSelector
string
waitUntil
string
start
boolean

Response

98 fields
clientRefstring
configCrawlConfig | null
allowExternalLinksboolean
allowPatternsstring[]
allowedDomainsstring[]
concurrencyinteger (int32)
crawlDelayMsinteger (int32)
denyPatternsstring[]
extractAllowPatternsstring[]
extractDenyPatternsstring[]
maxAttemptsinteger (int32)
maxDepthinteger (int32) | null
maxPagesinteger (int32)
maxPagesPerDayinteger (int32)
maxPagesPerHourinteger (int32)
maxPagesPerMonthinteger (int32)
recrawlEveryHoursinteger (int32)
respectRobotsTxtboolean
sitemapstring
startUrlsstring[]
countsLinkCounts | null
doneinteger (int64)
failedinteger (int64)
queuedinteger (int64)
runninginteger (int64)
skippedinteger (int64)
crawlIdstring
createdAtinteger (int64)
idempotencyKeystring | null
namestring
nextDispatchAtinteger (int64)
requestScrapeRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
argsstring
blockAdsboolean | null
blockResourcesstring[]
cookiesCookie[]
domainstring
namestring
pathstring
valuestring
countrystring
darkModeboolean
delayMsinteger (int32)
enginestring
extractExtractRule[]
argstring
asstring
attrstring
fallbacksstring[]
fieldsExtractRule[]
jsonPathstring
listboolean
namestring
regexstring
selectorstring
selectorTypestring
typestring
formatsstring[]
headersmap
hideScrollbarsboolean
initScriptstring
largeEvaluateResultsboolean
localestring
networkLockboolean
onlyMainContentboolean
profileIdstring
proxystring
reducedMotionboolean
timeZonestring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
userAgentstring
viewportDevicestring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
waitForSelectorstring
waitUntilstring
runFinishedAtinteger (int64) | null
runIdstring
runStartedAtinteger (int64) | null
runtimeStatusstring
statusstring
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/browser/crawls" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "config": {
      "allowExternalLinks": false,
      "allowPatterns": [
        "…"
      ],
      "allowedDomains": [
        "…"
      ],
      "concurrency": 0,
      "crawlDelayMs": 0,
      "denyPatterns": [
        "…"
      ],
      "extractAllowPatterns": [
        "…"
      ],
      "extractDenyPatterns": [
        "…"
      ],
      "maxAttempts": 0,
      "maxDepth": 0,
      "maxPages": 0,
      "maxPagesPerDay": 0,
      "maxPagesPerHour": 0,
      "maxPagesPerMonth": 0,
      "recrawlEveryHours": 0,
      "respectRobotsTxt": false,
      "sitemap": "…",
      "startUrls": [
        "…"
      ]
    },
    "idempotencyKey": "…",
    "name": "…",
    "request": {
      "actions": [
        {
          "height": 0,
          "key": "…",
          "maxLoops": 0,
          "ms": 0,
          "optional": null,
          "script": "…",
          "selector": "…",
          "text": "…",
          "type": "…",
          "url": "https://…",
          "urlPattern": "…",
          "values": [],
          "width": 0
        }
      ],
      "args": "…",
      "blockAds": false,
      "blockResources": [
        "…"
      ],
      "cookies": [
        {
          "domain": "…",
          "name": "…",
          "path": "…",
          "value": "…"
        }
      ],
      "country": "…",
      "darkMode": false,
      "delayMs": 0,
      "engine": "…",
      "extract": [
        {
          "arg": "…",
          "as": "…",
          "attr": "…",
          "fallbacks": [],
          "fields": [],
          "jsonPath": "…",
          "list": false,
          "name": "…",
          "regex": "…",
          "selector": "…",
          "selectorType": "…",
          "type": "…"
        }
      ],
      "formats": [
        "…"
      ],
      "headers": {},
      "hideScrollbars": false,
      "initScript": "…",
      "largeEvaluateResults": false,
      "locale": "…",
      "networkLock": false,
      "onlyMainContent": false,
      "profileId": "abc123",
      "proxy": "…",
      "reducedMotion": false,
      "timeZone": "…",
      "timeoutSeconds": 0,
      "tunnel": "…",
      "url": "https://…",
      "userAgent": "…",
      "viewportDevice": "…",
      "viewportHeight": 0,
      "viewportWidth": 0,
      "waitForSelector": "…",
      "waitUntil": "…"
    },
    "start": false
  }'
200 Response shape
{
  "clientRef": "…",
  "config": {
    "allowExternalLinks": false,
    "allowPatterns": [
      "…"
    ],
    "allowedDomains": [
      "…"
    ],
    "concurrency": 0,
    "crawlDelayMs": 0,
    "denyPatterns": [
      "…"
    ],
    "extractAllowPatterns": [
      "…"
    ],
    "extractDenyPatterns": [
      "…"
    ],
    "maxAttempts": 0,
    "maxDepth": 0,
    "maxPages": 0,
    "maxPagesPerDay": 0,
    "maxPagesPerHour": 0,
    "maxPagesPerMonth": 0,
    "recrawlEveryHours": 0,
    "respectRobotsTxt": false,
    "sitemap": "…",
    "startUrls": [
      "…"
    ]
  },
  "counts": {
    "done": 0,
    "failed": 0,
    "queued": 0,
    "running": 0,
    "skipped": 0
  },
  "crawlId": "abc123",
  "createdAt": 0,
  "idempotencyKey": "…",
  "name": "…",
  "nextDispatchAt": 0,
  "request": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "args": "…",
    "blockAds": false,
    "blockResources": [
      "…"
    ],
    "cookies": [
      {
        "domain": "…",
        "name": "…",
        "path": "…",
        "value": "…"
      }
    ],
    "country": "…",
    "darkMode": false,
    "delayMs": 0,
    "engine": "…",
    "extract": [
      {
        "arg": "…",
        "as": "…",
        "attr": "…",
        "fallbacks": [],
        "fields": [],
        "jsonPath": "…",
        "list": false,
        "name": "…",
        "regex": "…",
        "selector": "…",
        "selectorType": "…",
        "type": "…"
      }
    ],
    "formats": [
      "…"
    ],
    "headers": {},
    "hideScrollbars": false,
    "initScript": "…",
    "largeEvaluateResults": false,
    "locale": "…",
    "networkLock": false,
    "onlyMainContent": false,
    "profileId": "abc123",
    "proxy": "…",
    "reducedMotion": false,
    "timeZone": "…",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…",
    "userAgent": "…",
    "viewportDevice": "…",
    "viewportHeight": 0,
    "viewportWidth": 0,
    "waitForSelector": "…",
    "waitUntil": "…"
  },
  "runFinishedAt": 0,
  "runId": "abc123",
  "runStartedAt": 0,
  "runtimeStatus": "…",
  "status": "…",
  "updatedAt": 0
}

Delete a site crawl and its stored pages.

DELETE/v1/browser/crawls/{crawlId}
scope browser:write

Parameters

crawlId
string · path
required

Response

1 fields
statusboolean
curl -X DELETE "https://api.hoshime.com/v1/browser/crawls/{crawlId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "status": false
}

Get a site crawl with its link counts.

GET/v1/browser/crawls/{crawlId}
scope browser:read

Parameters

crawlId
string · path
required

Response

98 fields
clientRefstring
configCrawlConfig | null
allowExternalLinksboolean
allowPatternsstring[]
allowedDomainsstring[]
concurrencyinteger (int32)
crawlDelayMsinteger (int32)
denyPatternsstring[]
extractAllowPatternsstring[]
extractDenyPatternsstring[]
maxAttemptsinteger (int32)
maxDepthinteger (int32) | null
maxPagesinteger (int32)
maxPagesPerDayinteger (int32)
maxPagesPerHourinteger (int32)
maxPagesPerMonthinteger (int32)
recrawlEveryHoursinteger (int32)
respectRobotsTxtboolean
sitemapstring
startUrlsstring[]
countsLinkCounts | null
doneinteger (int64)
failedinteger (int64)
queuedinteger (int64)
runninginteger (int64)
skippedinteger (int64)
crawlIdstring
createdAtinteger (int64)
idempotencyKeystring | null
namestring
nextDispatchAtinteger (int64)
requestScrapeRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
argsstring
blockAdsboolean | null
blockResourcesstring[]
cookiesCookie[]
domainstring
namestring
pathstring
valuestring
countrystring
darkModeboolean
delayMsinteger (int32)
enginestring
extractExtractRule[]
argstring
asstring
attrstring
fallbacksstring[]
fieldsExtractRule[]
jsonPathstring
listboolean
namestring
regexstring
selectorstring
selectorTypestring
typestring
formatsstring[]
headersmap
hideScrollbarsboolean
initScriptstring
largeEvaluateResultsboolean
localestring
networkLockboolean
onlyMainContentboolean
profileIdstring
proxystring
reducedMotionboolean
timeZonestring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
userAgentstring
viewportDevicestring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
waitForSelectorstring
waitUntilstring
runFinishedAtinteger (int64) | null
runIdstring
runStartedAtinteger (int64) | null
runtimeStatusstring
statusstring
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/browser/crawls/{crawlId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "clientRef": "…",
  "config": {
    "allowExternalLinks": false,
    "allowPatterns": [
      "…"
    ],
    "allowedDomains": [
      "…"
    ],
    "concurrency": 0,
    "crawlDelayMs": 0,
    "denyPatterns": [
      "…"
    ],
    "extractAllowPatterns": [
      "…"
    ],
    "extractDenyPatterns": [
      "…"
    ],
    "maxAttempts": 0,
    "maxDepth": 0,
    "maxPages": 0,
    "maxPagesPerDay": 0,
    "maxPagesPerHour": 0,
    "maxPagesPerMonth": 0,
    "recrawlEveryHours": 0,
    "respectRobotsTxt": false,
    "sitemap": "…",
    "startUrls": [
      "…"
    ]
  },
  "counts": {
    "done": 0,
    "failed": 0,
    "queued": 0,
    "running": 0,
    "skipped": 0
  },
  "crawlId": "abc123",
  "createdAt": 0,
  "idempotencyKey": "…",
  "name": "…",
  "nextDispatchAt": 0,
  "request": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "args": "…",
    "blockAds": false,
    "blockResources": [
      "…"
    ],
    "cookies": [
      {
        "domain": "…",
        "name": "…",
        "path": "…",
        "value": "…"
      }
    ],
    "country": "…",
    "darkMode": false,
    "delayMs": 0,
    "engine": "…",
    "extract": [
      {
        "arg": "…",
        "as": "…",
        "attr": "…",
        "fallbacks": [],
        "fields": [],
        "jsonPath": "…",
        "list": false,
        "name": "…",
        "regex": "…",
        "selector": "…",
        "selectorType": "…",
        "type": "…"
      }
    ],
    "formats": [
      "…"
    ],
    "headers": {},
    "hideScrollbars": false,
    "initScript": "…",
    "largeEvaluateResults": false,
    "locale": "…",
    "networkLock": false,
    "onlyMainContent": false,
    "profileId": "abc123",
    "proxy": "…",
    "reducedMotion": false,
    "timeZone": "…",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…",
    "userAgent": "…",
    "viewportDevice": "…",
    "viewportHeight": 0,
    "viewportWidth": 0,
    "waitForSelector": "…",
    "waitUntil": "…"
  },
  "runFinishedAt": 0,
  "runId": "abc123",
  "runStartedAt": 0,
  "runtimeStatus": "…",
  "status": "…",
  "updatedAt": 0
}

Update a site crawl's configuration.

PATCH/v1/browser/crawls/{crawlId}
scope browser:write

Parameters

crawlId
string · path
required

Request body

config
CrawlConfig | null
allowExternalLinks
boolean
allowPatterns
string[]
allowedDomains
string[]
concurrency
integer (int32)
crawlDelayMs
integer (int32)
denyPatterns
string[]
extractAllowPatterns
string[]
extractDenyPatterns
string[]
maxAttempts
integer (int32)
maxDepth
integer (int32) | null
maxPages
integer (int32)
maxPagesPerDay
integer (int32)
maxPagesPerHour
integer (int32)
maxPagesPerMonth
integer (int32)
recrawlEveryHours
integer (int32)
respectRobotsTxt
boolean
sitemap
string
startUrls
string[]
name
string
request
ScrapeRequest | null
actions
Action[]
args
string
blockAds
boolean | null
blockResources
string[]
cookies
Cookie[]
country
string
darkMode
boolean
delayMs
integer (int32)
engine
string
extract
ExtractRule[]
formats
string[]
headers
map
hideScrollbars
boolean
initScript
string
largeEvaluateResults
boolean
locale
string
networkLock
boolean
onlyMainContent
boolean
profileId
string
proxy
string
reducedMotion
boolean
timeZone
string
timeoutSeconds
integer (int32)
tunnel
string
url
string
userAgent
string
viewportDevice
string
viewportHeight
integer (int32)
viewportWidth
integer (int32)
waitForSelector
string
waitUntil
string

Response

98 fields
clientRefstring
configCrawlConfig | null
allowExternalLinksboolean
allowPatternsstring[]
allowedDomainsstring[]
concurrencyinteger (int32)
crawlDelayMsinteger (int32)
denyPatternsstring[]
extractAllowPatternsstring[]
extractDenyPatternsstring[]
maxAttemptsinteger (int32)
maxDepthinteger (int32) | null
maxPagesinteger (int32)
maxPagesPerDayinteger (int32)
maxPagesPerHourinteger (int32)
maxPagesPerMonthinteger (int32)
recrawlEveryHoursinteger (int32)
respectRobotsTxtboolean
sitemapstring
startUrlsstring[]
countsLinkCounts | null
doneinteger (int64)
failedinteger (int64)
queuedinteger (int64)
runninginteger (int64)
skippedinteger (int64)
crawlIdstring
createdAtinteger (int64)
idempotencyKeystring | null
namestring
nextDispatchAtinteger (int64)
requestScrapeRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
argsstring
blockAdsboolean | null
blockResourcesstring[]
cookiesCookie[]
domainstring
namestring
pathstring
valuestring
countrystring
darkModeboolean
delayMsinteger (int32)
enginestring
extractExtractRule[]
argstring
asstring
attrstring
fallbacksstring[]
fieldsExtractRule[]
jsonPathstring
listboolean
namestring
regexstring
selectorstring
selectorTypestring
typestring
formatsstring[]
headersmap
hideScrollbarsboolean
initScriptstring
largeEvaluateResultsboolean
localestring
networkLockboolean
onlyMainContentboolean
profileIdstring
proxystring
reducedMotionboolean
timeZonestring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
userAgentstring
viewportDevicestring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
waitForSelectorstring
waitUntilstring
runFinishedAtinteger (int64) | null
runIdstring
runStartedAtinteger (int64) | null
runtimeStatusstring
statusstring
updatedAtinteger (int64)
curl -X PATCH "https://api.hoshime.com/v1/browser/crawls/{crawlId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "config": {
      "allowExternalLinks": false,
      "allowPatterns": [
        "…"
      ],
      "allowedDomains": [
        "…"
      ],
      "concurrency": 0,
      "crawlDelayMs": 0,
      "denyPatterns": [
        "…"
      ],
      "extractAllowPatterns": [
        "…"
      ],
      "extractDenyPatterns": [
        "…"
      ],
      "maxAttempts": 0,
      "maxDepth": 0,
      "maxPages": 0,
      "maxPagesPerDay": 0,
      "maxPagesPerHour": 0,
      "maxPagesPerMonth": 0,
      "recrawlEveryHours": 0,
      "respectRobotsTxt": false,
      "sitemap": "…",
      "startUrls": [
        "…"
      ]
    },
    "name": "…",
    "request": {
      "actions": [
        {
          "height": 0,
          "key": "…",
          "maxLoops": 0,
          "ms": 0,
          "optional": null,
          "script": "…",
          "selector": "…",
          "text": "…",
          "type": "…",
          "url": "https://…",
          "urlPattern": "…",
          "values": [],
          "width": 0
        }
      ],
      "args": "…",
      "blockAds": false,
      "blockResources": [
        "…"
      ],
      "cookies": [
        {
          "domain": "…",
          "name": "…",
          "path": "…",
          "value": "…"
        }
      ],
      "country": "…",
      "darkMode": false,
      "delayMs": 0,
      "engine": "…",
      "extract": [
        {
          "arg": "…",
          "as": "…",
          "attr": "…",
          "fallbacks": [],
          "fields": [],
          "jsonPath": "…",
          "list": false,
          "name": "…",
          "regex": "…",
          "selector": "…",
          "selectorType": "…",
          "type": "…"
        }
      ],
      "formats": [
        "…"
      ],
      "headers": {},
      "hideScrollbars": false,
      "initScript": "…",
      "largeEvaluateResults": false,
      "locale": "…",
      "networkLock": false,
      "onlyMainContent": false,
      "profileId": "abc123",
      "proxy": "…",
      "reducedMotion": false,
      "timeZone": "…",
      "timeoutSeconds": 0,
      "tunnel": "…",
      "url": "https://…",
      "userAgent": "…",
      "viewportDevice": "…",
      "viewportHeight": 0,
      "viewportWidth": 0,
      "waitForSelector": "…",
      "waitUntil": "…"
    }
  }'
200 Response shape
{
  "clientRef": "…",
  "config": {
    "allowExternalLinks": false,
    "allowPatterns": [
      "…"
    ],
    "allowedDomains": [
      "…"
    ],
    "concurrency": 0,
    "crawlDelayMs": 0,
    "denyPatterns": [
      "…"
    ],
    "extractAllowPatterns": [
      "…"
    ],
    "extractDenyPatterns": [
      "…"
    ],
    "maxAttempts": 0,
    "maxDepth": 0,
    "maxPages": 0,
    "maxPagesPerDay": 0,
    "maxPagesPerHour": 0,
    "maxPagesPerMonth": 0,
    "recrawlEveryHours": 0,
    "respectRobotsTxt": false,
    "sitemap": "…",
    "startUrls": [
      "…"
    ]
  },
  "counts": {
    "done": 0,
    "failed": 0,
    "queued": 0,
    "running": 0,
    "skipped": 0
  },
  "crawlId": "abc123",
  "createdAt": 0,
  "idempotencyKey": "…",
  "name": "…",
  "nextDispatchAt": 0,
  "request": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "args": "…",
    "blockAds": false,
    "blockResources": [
      "…"
    ],
    "cookies": [
      {
        "domain": "…",
        "name": "…",
        "path": "…",
        "value": "…"
      }
    ],
    "country": "…",
    "darkMode": false,
    "delayMs": 0,
    "engine": "…",
    "extract": [
      {
        "arg": "…",
        "as": "…",
        "attr": "…",
        "fallbacks": [],
        "fields": [],
        "jsonPath": "…",
        "list": false,
        "name": "…",
        "regex": "…",
        "selector": "…",
        "selectorType": "…",
        "type": "…"
      }
    ],
    "formats": [
      "…"
    ],
    "headers": {},
    "hideScrollbars": false,
    "initScript": "…",
    "largeEvaluateResults": false,
    "locale": "…",
    "networkLock": false,
    "onlyMainContent": false,
    "profileId": "abc123",
    "proxy": "…",
    "reducedMotion": false,
    "timeZone": "…",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…",
    "userAgent": "…",
    "viewportDevice": "…",
    "viewportHeight": 0,
    "viewportWidth": 0,
    "waitForSelector": "…",
    "waitUntil": "…"
  },
  "runFinishedAt": 0,
  "runId": "abc123",
  "runStartedAt": 0,
  "runtimeStatus": "…",
  "status": "…",
  "updatedAt": 0
}

Start a crawl run, or resume the open one.

POST/v1/browser/crawls/{crawlId}/start
scope browser:write

Each crawled page bills 2 units, or 20 when the browser rendered it, plus 30 per MB through hoshime's residential proxy, recorded when the page is done. Skipped links are free.

Parameters

crawlId
string · path
required

Request body

recrawl
boolean

Response

98 fields
clientRefstring
configCrawlConfig | null
allowExternalLinksboolean
allowPatternsstring[]
allowedDomainsstring[]
concurrencyinteger (int32)
crawlDelayMsinteger (int32)
denyPatternsstring[]
extractAllowPatternsstring[]
extractDenyPatternsstring[]
maxAttemptsinteger (int32)
maxDepthinteger (int32) | null
maxPagesinteger (int32)
maxPagesPerDayinteger (int32)
maxPagesPerHourinteger (int32)
maxPagesPerMonthinteger (int32)
recrawlEveryHoursinteger (int32)
respectRobotsTxtboolean
sitemapstring
startUrlsstring[]
countsLinkCounts | null
doneinteger (int64)
failedinteger (int64)
queuedinteger (int64)
runninginteger (int64)
skippedinteger (int64)
crawlIdstring
createdAtinteger (int64)
idempotencyKeystring | null
namestring
nextDispatchAtinteger (int64)
requestScrapeRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
argsstring
blockAdsboolean | null
blockResourcesstring[]
cookiesCookie[]
domainstring
namestring
pathstring
valuestring
countrystring
darkModeboolean
delayMsinteger (int32)
enginestring
extractExtractRule[]
argstring
asstring
attrstring
fallbacksstring[]
fieldsExtractRule[]
jsonPathstring
listboolean
namestring
regexstring
selectorstring
selectorTypestring
typestring
formatsstring[]
headersmap
hideScrollbarsboolean
initScriptstring
largeEvaluateResultsboolean
localestring
networkLockboolean
onlyMainContentboolean
profileIdstring
proxystring
reducedMotionboolean
timeZonestring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
userAgentstring
viewportDevicestring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
waitForSelectorstring
waitUntilstring
runFinishedAtinteger (int64) | null
runIdstring
runStartedAtinteger (int64) | null
runtimeStatusstring
statusstring
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/browser/crawls/{crawlId}/start" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "recrawl": false
  }'
200 Response shape
{
  "clientRef": "…",
  "config": {
    "allowExternalLinks": false,
    "allowPatterns": [
      "…"
    ],
    "allowedDomains": [
      "…"
    ],
    "concurrency": 0,
    "crawlDelayMs": 0,
    "denyPatterns": [
      "…"
    ],
    "extractAllowPatterns": [
      "…"
    ],
    "extractDenyPatterns": [
      "…"
    ],
    "maxAttempts": 0,
    "maxDepth": 0,
    "maxPages": 0,
    "maxPagesPerDay": 0,
    "maxPagesPerHour": 0,
    "maxPagesPerMonth": 0,
    "recrawlEveryHours": 0,
    "respectRobotsTxt": false,
    "sitemap": "…",
    "startUrls": [
      "…"
    ]
  },
  "counts": {
    "done": 0,
    "failed": 0,
    "queued": 0,
    "running": 0,
    "skipped": 0
  },
  "crawlId": "abc123",
  "createdAt": 0,
  "idempotencyKey": "…",
  "name": "…",
  "nextDispatchAt": 0,
  "request": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "args": "…",
    "blockAds": false,
    "blockResources": [
      "…"
    ],
    "cookies": [
      {
        "domain": "…",
        "name": "…",
        "path": "…",
        "value": "…"
      }
    ],
    "country": "…",
    "darkMode": false,
    "delayMs": 0,
    "engine": "…",
    "extract": [
      {
        "arg": "…",
        "as": "…",
        "attr": "…",
        "fallbacks": [],
        "fields": [],
        "jsonPath": "…",
        "list": false,
        "name": "…",
        "regex": "…",
        "selector": "…",
        "selectorType": "…",
        "type": "…"
      }
    ],
    "formats": [
      "…"
    ],
    "headers": {},
    "hideScrollbars": false,
    "initScript": "…",
    "largeEvaluateResults": false,
    "locale": "…",
    "networkLock": false,
    "onlyMainContent": false,
    "profileId": "abc123",
    "proxy": "…",
    "reducedMotion": false,
    "timeZone": "…",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…",
    "userAgent": "…",
    "viewportDevice": "…",
    "viewportHeight": 0,
    "viewportWidth": 0,
    "waitForSelector": "…",
    "waitUntil": "…"
  },
  "runFinishedAt": 0,
  "runId": "abc123",
  "runStartedAt": 0,
  "runtimeStatus": "…",
  "status": "…",
  "updatedAt": 0
}

Stop the running crawl.

POST/v1/browser/crawls/{crawlId}/stop
scope browser:write

Parameters

crawlId
string · path
required

Response

98 fields
clientRefstring
configCrawlConfig | null
allowExternalLinksboolean
allowPatternsstring[]
allowedDomainsstring[]
concurrencyinteger (int32)
crawlDelayMsinteger (int32)
denyPatternsstring[]
extractAllowPatternsstring[]
extractDenyPatternsstring[]
maxAttemptsinteger (int32)
maxDepthinteger (int32) | null
maxPagesinteger (int32)
maxPagesPerDayinteger (int32)
maxPagesPerHourinteger (int32)
maxPagesPerMonthinteger (int32)
recrawlEveryHoursinteger (int32)
respectRobotsTxtboolean
sitemapstring
startUrlsstring[]
countsLinkCounts | null
doneinteger (int64)
failedinteger (int64)
queuedinteger (int64)
runninginteger (int64)
skippedinteger (int64)
crawlIdstring
createdAtinteger (int64)
idempotencyKeystring | null
namestring
nextDispatchAtinteger (int64)
requestScrapeRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
argsstring
blockAdsboolean | null
blockResourcesstring[]
cookiesCookie[]
domainstring
namestring
pathstring
valuestring
countrystring
darkModeboolean
delayMsinteger (int32)
enginestring
extractExtractRule[]
argstring
asstring
attrstring
fallbacksstring[]
fieldsExtractRule[]
jsonPathstring
listboolean
namestring
regexstring
selectorstring
selectorTypestring
typestring
formatsstring[]
headersmap
hideScrollbarsboolean
initScriptstring
largeEvaluateResultsboolean
localestring
networkLockboolean
onlyMainContentboolean
profileIdstring
proxystring
reducedMotionboolean
timeZonestring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
userAgentstring
viewportDevicestring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
waitForSelectorstring
waitUntilstring
runFinishedAtinteger (int64) | null
runIdstring
runStartedAtinteger (int64) | null
runtimeStatusstring
statusstring
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/browser/crawls/{crawlId}/stop" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "clientRef": "…",
  "config": {
    "allowExternalLinks": false,
    "allowPatterns": [
      "…"
    ],
    "allowedDomains": [
      "…"
    ],
    "concurrency": 0,
    "crawlDelayMs": 0,
    "denyPatterns": [
      "…"
    ],
    "extractAllowPatterns": [
      "…"
    ],
    "extractDenyPatterns": [
      "…"
    ],
    "maxAttempts": 0,
    "maxDepth": 0,
    "maxPages": 0,
    "maxPagesPerDay": 0,
    "maxPagesPerHour": 0,
    "maxPagesPerMonth": 0,
    "recrawlEveryHours": 0,
    "respectRobotsTxt": false,
    "sitemap": "…",
    "startUrls": [
      "…"
    ]
  },
  "counts": {
    "done": 0,
    "failed": 0,
    "queued": 0,
    "running": 0,
    "skipped": 0
  },
  "crawlId": "abc123",
  "createdAt": 0,
  "idempotencyKey": "…",
  "name": "…",
  "nextDispatchAt": 0,
  "request": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "args": "…",
    "blockAds": false,
    "blockResources": [
      "…"
    ],
    "cookies": [
      {
        "domain": "…",
        "name": "…",
        "path": "…",
        "value": "…"
      }
    ],
    "country": "…",
    "darkMode": false,
    "delayMs": 0,
    "engine": "…",
    "extract": [
      {
        "arg": "…",
        "as": "…",
        "attr": "…",
        "fallbacks": [],
        "fields": [],
        "jsonPath": "…",
        "list": false,
        "name": "…",
        "regex": "…",
        "selector": "…",
        "selectorType": "…",
        "type": "…"
      }
    ],
    "formats": [
      "…"
    ],
    "headers": {},
    "hideScrollbars": false,
    "initScript": "…",
    "largeEvaluateResults": false,
    "locale": "…",
    "networkLock": false,
    "onlyMainContent": false,
    "profileId": "abc123",
    "proxy": "…",
    "reducedMotion": false,
    "timeZone": "…",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…",
    "userAgent": "…",
    "viewportDevice": "…",
    "viewportHeight": 0,
    "viewportWidth": 0,
    "waitForSelector": "…",
    "waitUntil": "…"
  },
  "runFinishedAt": 0,
  "runId": "abc123",
  "runStartedAt": 0,
  "runtimeStatus": "…",
  "status": "…",
  "updatedAt": 0
}

Add links to a site crawl's queue.

POST/v1/browser/crawls/{crawlId}/links
scope browser:write

Parameters

crawlId
string · path
required

Request body

urls
string[]
required

Response

3 fields
queuedinteger (int32)
requestedinteger (int32)
skippedinteger (int32)
curl -X POST "https://api.hoshime.com/v1/browser/crawls/{crawlId}/links" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "…"
    ]
  }'
200 Response shape
{
  "queued": 0,
  "requested": 0,
  "skipped": 0
}

List the stored pages of a site crawl.

GET/v1/browser/crawls/{crawlId}/results
scope browser:read

Parameters

crawlId
string · path
required
page
integer
limit
integer
withTotal
boolean
runId
string
since
integer
changedOnly
boolean

Response

25 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsCrawlResult[]
crawlIdstring
resultScrapeResult | null
changeStatusstring
dataobject | null
enginestring
evaluateResultsany[]
finalUrlstring
htmlstring
linksstring[]
markdownstring
metadataPageMetadata | null
statusCodeinteger (int32)
textstring
truncatedboolean
urlstring
runIdstring
scrapedAtinteger (int64)
ttlinteger (int64)
urlstring
urlHashstring
curl "https://api.hoshime.com/v1/browser/crawls/{crawlId}/results" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "crawlId": "abc123",
      "result": null,
      "runId": "abc123",
      "scrapedAt": 0,
      "ttl": 0,
      "url": "https://…",
      "urlHash": "…"
    }
  ]
}

Get the stored result of one crawled URL.

GET/v1/browser/crawls/{crawlId}/results/{urlHash}
scope browser:read

Parameters

crawlId
string · path
required
urlHash
string · path
required

Response

31 fields
crawlIdstring
resultScrapeResult | null
changeStatusstring
dataobject | null
enginestring
evaluateResultsany[]
finalUrlstring
htmlstring
linksstring[]
markdownstring
metadataPageMetadata | null
canonicalstring
descriptionstring
faviconstring
jsonLdany[]
langstring
ogDescriptionstring
ogImagestring
ogTitlestring
ogTypestring
siteNamestring
titlestring
statusCodeinteger (int32)
textstring
truncatedboolean
urlstring
runIdstring
scrapedAtinteger (int64)
ttlinteger (int64)
urlstring
urlHashstring
curl "https://api.hoshime.com/v1/browser/crawls/{crawlId}/results/{urlHash}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "crawlId": "abc123",
  "result": {
    "changeStatus": "…",
    "data": {},
    "engine": "…",
    "evaluateResults": [
      null
    ],
    "finalUrl": "https://…",
    "html": "…",
    "links": [
      "…"
    ],
    "markdown": "…",
    "metadata": {
      "canonical": "…",
      "description": "…",
      "favicon": "…",
      "jsonLd": [
        null
      ],
      "lang": "…",
      "ogDescription": "…",
      "ogImage": "…",
      "ogTitle": "…",
      "ogType": "…",
      "siteName": "…",
      "title": "…"
    },
    "statusCode": 0,
    "text": "…",
    "truncated": false,
    "url": "https://…"
  },
  "runId": "abc123",
  "scrapedAt": 0,
  "ttl": 0,
  "url": "https://…",
  "urlHash": "…"
}

List browser profiles, newest first. A profile's login is never returned.

GET/v1/browser/profiles
scope browser:read

Parameters

page
integer
limit
integer
withTotal
boolean

Response

23 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsBrowserProfile[]
cookieCountinteger (int32)
countrystring
createdAtinteger (int64)
domainsstring[]
lastUsedAtinteger (int64) | null
localestring
namestring
originCountinteger (int32)
profileIdstring
saveChangesboolean
stateBytesinteger (int32)
stateUpdatedAtinteger (int64) | null
timeZonestring
tunnelstring
updatedAtinteger (int64)
userAgentstring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
curl "https://api.hoshime.com/v1/browser/profiles" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "cookieCount": 1280,
      "country": "…",
      "createdAt": 0,
      "domains": [
        "…"
      ],
      "lastUsedAt": null,
      "locale": "…",
      "name": "…",
      "originCount": 1280,
      "profileId": "abc123",
      "saveChanges": false,
      "stateBytes": 0,
      "stateUpdatedAt": null,
      "timeZone": "…",
      "tunnel": "…",
      "updatedAt": 0,
      "userAgent": "…",
      "viewportHeight": 0,
      "viewportWidth": 0
    }
  ]
}

Create a browser profile: a saved login (cookies, localStorage, IndexedDB), stored encrypted, with a fixed user agent, locale, time zone, viewport and proxy country. Scrapes, crawls and browser jobs that name it start logged in.

POST/v1/browser/profiles
scope browser:write

Request body

country
string
locale
string
name
string
required
reuseByName
boolean
saveChanges
boolean | null
timeZone
string
tunnel
string
userAgent
string
viewportHeight
integer (int32)
viewportWidth
integer (int32)

Response

18 fields
cookieCountinteger (int32)
countrystring
createdAtinteger (int64)
domainsstring[]
lastUsedAtinteger (int64) | null
localestring
namestring
originCountinteger (int32)
profileIdstring
saveChangesboolean
stateBytesinteger (int32)
stateUpdatedAtinteger (int64) | null
timeZonestring
tunnelstring
updatedAtinteger (int64)
userAgentstring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
curl -X POST "https://api.hoshime.com/v1/browser/profiles" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "…",
    "locale": "…",
    "name": "…",
    "reuseByName": false,
    "saveChanges": false,
    "timeZone": "…",
    "tunnel": "…",
    "userAgent": "…",
    "viewportHeight": 0,
    "viewportWidth": 0
  }'
200 Response shape
{
  "cookieCount": 1280,
  "country": "…",
  "createdAt": 0,
  "domains": [
    "…"
  ],
  "lastUsedAt": 0,
  "locale": "…",
  "name": "…",
  "originCount": 1280,
  "profileId": "abc123",
  "saveChanges": false,
  "stateBytes": 0,
  "stateUpdatedAt": 0,
  "timeZone": "…",
  "tunnel": "…",
  "updatedAt": 0,
  "userAgent": "…",
  "viewportHeight": 0,
  "viewportWidth": 0
}

Delete a browser profile and its login.

DELETE/v1/browser/profiles/{profileId}
scope browser:write

Parameters

profileId
string · path
required

Response

1 fields
statusboolean
curl -X DELETE "https://api.hoshime.com/v1/browser/profiles/{profileId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "status": false
}

Get a browser profile with the sites its login covers.

GET/v1/browser/profiles/{profileId}
scope browser:read

Parameters

profileId
string · path
required

Response

18 fields
cookieCountinteger (int32)
countrystring
createdAtinteger (int64)
domainsstring[]
lastUsedAtinteger (int64) | null
localestring
namestring
originCountinteger (int32)
profileIdstring
saveChangesboolean
stateBytesinteger (int32)
stateUpdatedAtinteger (int64) | null
timeZonestring
tunnelstring
updatedAtinteger (int64)
userAgentstring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
curl "https://api.hoshime.com/v1/browser/profiles/{profileId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "cookieCount": 1280,
  "country": "…",
  "createdAt": 0,
  "domains": [
    "…"
  ],
  "lastUsedAt": 0,
  "locale": "…",
  "name": "…",
  "originCount": 1280,
  "profileId": "abc123",
  "saveChanges": false,
  "stateBytes": 0,
  "stateUpdatedAt": 0,
  "timeZone": "…",
  "tunnel": "…",
  "updatedAt": 0,
  "userAgent": "…",
  "viewportHeight": 0,
  "viewportWidth": 0
}

Update a browser profile's name, identity, default tunnel or login settings.

PATCH/v1/browser/profiles/{profileId}
scope browser:write

Parameters

profileId
string · path
required

Request body

country
string | null
locale
string | null
name
string | null
saveChanges
boolean | null
timeZone
string | null
tunnel
string | null
userAgent
string | null
viewportHeight
integer (int32) | null
viewportWidth
integer (int32) | null

Response

18 fields
cookieCountinteger (int32)
countrystring
createdAtinteger (int64)
domainsstring[]
lastUsedAtinteger (int64) | null
localestring
namestring
originCountinteger (int32)
profileIdstring
saveChangesboolean
stateBytesinteger (int32)
stateUpdatedAtinteger (int64) | null
timeZonestring
tunnelstring
updatedAtinteger (int64)
userAgentstring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
curl -X PATCH "https://api.hoshime.com/v1/browser/profiles/{profileId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "…",
    "locale": "…",
    "name": "…",
    "saveChanges": false,
    "timeZone": "…",
    "tunnel": "…",
    "userAgent": "…",
    "viewportHeight": 0,
    "viewportWidth": 0
  }'
200 Response shape
{
  "cookieCount": 1280,
  "country": "…",
  "createdAt": 0,
  "domains": [
    "…"
  ],
  "lastUsedAt": 0,
  "locale": "…",
  "name": "…",
  "originCount": 1280,
  "profileId": "abc123",
  "saveChanges": false,
  "stateBytes": 0,
  "stateUpdatedAt": 0,
  "timeZone": "…",
  "tunnel": "…",
  "updatedAt": 0,
  "userAgent": "…",
  "viewportHeight": 0,
  "viewportWidth": 0
}

Clear a browser profile's login: its next run starts logged out.

DELETE/v1/browser/profiles/{profileId}/state
scope browser:write

Parameters

profileId
string · path
required

Response

18 fields
cookieCountinteger (int32)
countrystring
createdAtinteger (int64)
domainsstring[]
lastUsedAtinteger (int64) | null
localestring
namestring
originCountinteger (int32)
profileIdstring
saveChangesboolean
stateBytesinteger (int32)
stateUpdatedAtinteger (int64) | null
timeZonestring
tunnelstring
updatedAtinteger (int64)
userAgentstring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
curl -X DELETE "https://api.hoshime.com/v1/browser/profiles/{profileId}/state" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "cookieCount": 1280,
  "country": "…",
  "createdAt": 0,
  "domains": [
    "…"
  ],
  "lastUsedAt": 0,
  "locale": "…",
  "name": "…",
  "originCount": 1280,
  "profileId": "abc123",
  "saveChanges": false,
  "stateBytes": 0,
  "stateUpdatedAt": 0,
  "timeZone": "…",
  "tunnel": "…",
  "updatedAt": 0,
  "userAgent": "…",
  "viewportHeight": 0,
  "viewportWidth": 0
}

Import cookies into a browser profile: a JSON cookie export (Cookie-Editor, EditThisCookie, DevTools, Puppeteer), a Playwright storageState or a Netscape cookies.txt. merge keeps the cookies it does not replace.

PUT/v1/browser/profiles/{profileId}/state
scope browser:write

Parameters

profileId
string · path
required

Request body

data
string
required
merge
boolean

Response

18 fields
cookieCountinteger (int32)
countrystring
createdAtinteger (int64)
domainsstring[]
lastUsedAtinteger (int64) | null
localestring
namestring
originCountinteger (int32)
profileIdstring
saveChangesboolean
stateBytesinteger (int32)
stateUpdatedAtinteger (int64) | null
timeZonestring
tunnelstring
updatedAtinteger (int64)
userAgentstring
viewportHeightinteger (int32)
viewportWidthinteger (int32)
curl -X PUT "https://api.hoshime.com/v1/browser/profiles/{profileId}/state" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": "…",
    "merge": false
  }'
200 Response shape
{
  "cookieCount": 1280,
  "country": "…",
  "createdAt": 0,
  "domains": [
    "…"
  ],
  "lastUsedAt": 0,
  "locale": "…",
  "name": "…",
  "originCount": 1280,
  "profileId": "abc123",
  "saveChanges": false,
  "stateBytes": 0,
  "stateUpdatedAt": 0,
  "timeZone": "…",
  "tunnel": "…",
  "updatedAt": 0,
  "userAgent": "…",
  "viewportHeight": 0,
  "viewportWidth": 0
}

Open a live browser of a profile at url and get liveUrl, a page where a person logs in by hand, 2FA included. Saving there stores the login in the profile.

POST/v1/browser/live
scope browser:write

Opening it bills nothing. The session bills 50 units per started minute it is open, at least 50, recorded when it ends: saved, stopped or expired; a failed one bills nothing. It also bills 30 per MB its browser moved through hoshime's residential proxy.

Request body

maxSeconds
integer (int32)
profileId
string
required
tunnel
string
url
string
required

Response

10 fields
createdAtinteger (int64)
errorCodestring
errorMessagestring
expiresAtinteger (int64)
finishedAtinteger (int64) | null
liveSessionIdstring
liveUrlstring
profileIdstring
statusstring
urlstring
curl -X POST "https://api.hoshime.com/v1/browser/live" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "maxSeconds": 0,
    "profileId": "abc123",
    "tunnel": "…",
    "url": "https://…"
  }'
200 Response shape
{
  "createdAt": 0,
  "errorCode": "…",
  "errorMessage": "…",
  "expiresAt": 0,
  "finishedAt": 0,
  "liveSessionId": "abc123",
  "liveUrl": "https://…",
  "profileId": "abc123",
  "status": "…",
  "url": "https://…"
}

Get a live session: open, saved, cancelled, expired or failed.

GET/v1/browser/live/{liveSessionId}
scope browser:read

Parameters

liveSessionId
string · path
required

Response

10 fields
createdAtinteger (int64)
errorCodestring
errorMessagestring
expiresAtinteger (int64)
finishedAtinteger (int64) | null
liveSessionIdstring
liveUrlstring
profileIdstring
statusstring
urlstring
curl "https://api.hoshime.com/v1/browser/live/{liveSessionId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "createdAt": 0,
  "errorCode": "…",
  "errorMessage": "…",
  "expiresAt": 0,
  "finishedAt": 0,
  "liveSessionId": "abc123",
  "liveUrl": "https://…",
  "profileId": "abc123",
  "status": "…",
  "url": "https://…"
}

Close a live session without saving.

POST/v1/browser/live/{liveSessionId}/stop
scope browser:write

Parameters

liveSessionId
string · path
required

Response

10 fields
createdAtinteger (int64)
errorCodestring
errorMessagestring
expiresAtinteger (int64)
finishedAtinteger (int64) | null
liveSessionIdstring
liveUrlstring
profileIdstring
statusstring
urlstring
curl -X POST "https://api.hoshime.com/v1/browser/live/{liveSessionId}/stop" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "createdAt": 0,
  "errorCode": "…",
  "errorMessage": "…",
  "expiresAt": 0,
  "finishedAt": 0,
  "liveSessionId": "abc123",
  "liveUrl": "https://…",
  "profileId": "abc123",
  "status": "…",
  "url": "https://…"
}

List the browser skills, per platform (Instagram, Facebook, Threads, TikTok, any website), with their parameters, whether they need a signed-in browser profile and their daily limit. Run them with a skills job (POST /v1/jobs with skills).

GET/v1/browser/skills
scope browser:read

Parameters

platform
string
page
integer
limit
integer
withTotal
boolean

Response

16 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsSkillPlatform[]
homestring
namestring
skillsSkill[]
dailyLimitinteger (int32)
descriptionstring
loginboolean
namestring
paramsSkillParam[]
platformstring
titlestring
titlestring
curl "https://api.hoshime.com/v1/browser/skills" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "home": "…",
      "name": "…",
      "skills": [
        {
          "dailyLimit": null,
          "description": null,
          "login": null,
          "name": null,
          "params": null,
          "platform": null,
          "title": null
        }
      ],
      "title": "…"
    }
  ]
}
esc
↑↓ move↵ open