Skip to content

The browser service exposes endpoints for monitoring server health, retrieving buffered console and network logs for debugging, and querying or deleting persistent browsing history. Use these endpoints to instrument your integration, troubleshoot page behavior, and audit navigation activity across browser instances.

GET /api/v1/browser/health

Returns standardized health metadata for the hoody-browser service, including process identifiers, memory usage, file descriptor counts, and the caller’s remote address. The response conforms to the 9-field health contract shared across all hoody-kit services.

This endpoint takes no parameters.

Terminal window
curl https://api.hoody.com/v1/browser/health \
-H "Authorization: Bearer YOUR_API_KEY"

GET /console

Returns buffered browser console messages (log, error, warning, info, and page errors). The buffer retains the last 500 entries per browser instance.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index).
tabIdqueryintegerNoThe ID of the tab to interact with.
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.
typequerystringNoFilter by message type (log, error, warning, info, etc.).
sincequerystringNoOnly return logs after this ISO timestamp.
clearquerybooleanNoClear the buffer after reading. Default: false.
Terminal window
curl "https://api.hoody.com/v1/browser/console?browser_id=0&tabId=0&type=error" \
-H "Authorization: Bearer YOUR_API_KEY"

GET /network

Returns buffered network request and response entries. The buffer retains the last 500 entries per browser instance.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index).
tabIdqueryintegerNoThe ID of the tab to interact with.
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.
sincequerystringNoOnly return logs after this ISO timestamp.
clearquerybooleanNoClear the buffer after reading. Default: false.
Terminal window
curl "https://api.hoody.com/v1/browser/network?browser_id=0&tabId=0&clear=false" \
-H "Authorization: Bearer YOUR_API_KEY"

GET /history

Returns paginated browsing history entries with optional filters. History is recorded for all navigations including API-triggered calls to /browse and manual page navigation. Reads from persistent storage (symlink directories).

NameInTypeRequiredDescription
sincequerystringNoReturn entries after this ISO 8601 timestamp.
domainquerystringNoFilter by domain (exact match).
browser_idquerystringNoFilter by browser ID.
limitqueryintegerNoMaximum entries to return (between 1 and 500). Default: 50.
offsetqueryintegerNoNumber of entries to skip for pagination. Default: 0.
Terminal window
curl "https://api.hoody.com/v1/browser/history?domain=example.com&limit=20&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"

DELETE /history

Deletes browsing history entries matching the given filters. Without filters, deletes all history.

NameInTypeRequiredDescription
beforequerystringNoDelete entries before this ISO 8601 timestamp.
browser_idquerystringNoDelete entries for specific browser ID only.
Terminal window
curl -X DELETE "https://api.hoody.com/v1/browser/history?before=2024-01-01T00:00:00Z" \
-H "Authorization: Bearer YOUR_API_KEY"