Skip to content

The endpoints in this section let you inspect browser instance metadata, discover remote debugging endpoints, manage tabs, and shut down running instances. All endpoints address a specific instance via the browser_id query parameter (a 0-based index).

Retrieve detailed metadata for a running browser instance, including session information, browser/OS details, viewport settings, the list of open tabs, and the Chrome DevTools WebSocket URL (when remote debugging is enabled).

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
Terminal window
curl -G https://api.hoody.icu/api/browser/control/metadata \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

Return the Chrome DevTools WebSocket URL and the HTTP discovery URL (/json/version) for the specified browser instance. The HTTP endpoint can be used to resolve the WebSocket URL automatically.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
Terminal window
curl -G https://api.hoody.icu/api/browser/control/devtools-url \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

List all open tabs in a browser instance. Each tab includes its identifier, current URL, and whether it is the active tab.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
Terminal window
curl -G https://api.hoody.icu/api/browser/control/tabs \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

Close a specific browser tab by its tab ID. If no tabId is provided, the active tab is closed (unless it is the last remaining tab, in which case the request fails).

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
NameTypeRequiredDescription
tabIdintegerNoThe ID of the tab to close
Terminal window
curl -X POST https://api.hoody.icu/api/browser/control/tab/close \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-G --data-urlencode "browser_id=0" \
-d '{"tabId": 2}'

Shut down a specific browser instance and release its resources. The instance must be restarted before it can be used again.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
Terminal window
curl -G https://api.hoody.icu/api/browser/control/shutdown \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

The endpoints in this section manage the cookie store for a browser context: reading, writing, and clearing cookies. Cookies are scoped to the browser context, so all tabs in an instance share the same cookie jar.

Return all cookies for the browser context. Optionally filter the result to cookies associated with a specific URL.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
urlquerystringNoFilter cookies by URL
Terminal window
curl -G https://api.hoody.icu/api/browser/control/cookies \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0" \
--data-urlencode "url=https://example.com"

Add one or more cookies to the browser context. Each cookie requires a name, value, and url; the url field is used to derive the cookie’s domain and secure flag when not provided explicitly.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
NameTypeRequiredDescription
cookiesarrayYesList of cookies to add to the browser context. Each entry requires name, value, and url; domain, path, httpOnly, and secure are optional.
Terminal window
curl -X POST https://api.hoody.icu/api/browser/control/cookies \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-G --data-urlencode "browser_id=0" \
-d '{
"cookies": [
{
"name": "session_id",
"value": "s%3Aabc123def456",
"url": "https://example.com",
"domain": ".example.com",
"path": "/",
"httpOnly": true,
"secure": true
},
{
"name": "locale",
"value": "en-US",
"url": "https://example.com",
"domain": ".example.com",
"path": "/",
"httpOnly": false,
"secure": true
}
]
}'

Remove all cookies from the browser context. The cookie jar is fully emptied regardless of domain or path.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance. Default: true
Terminal window
curl -X DELETE https://api.hoody.icu/api/browser/control/cookies \
-H "Authorization: Bearer <token>" \
-G --data-urlencode "browser_id=0"