Search the web using AI. Returns a response containing Markdown text and cited URLs.
The keywords or query string to search for.
OptionalabortSignal: AbortSignalOptional signal used to abort the underlying request. When the signal aborts, the in-flight HTTP request is cancelled and its promise rejects, allowing callers to bound a single call without leaking the request.
OptionalallowedDomains: string[]Optional list of domains the search is restricted to (subdomains included). When provided, every cited URL in the response belongs to one of the listed domains.
Creates a shortened URL for the given URL.
Defaults to a 1-day expiration if no expiry is provided via the secondsToLive field.
If secondsToLive is set to 0, the URL will never expire.
Either a URL string or an options object with url and all available options.
Creates shortened URLs for the given URLs.
Defaults to a 1-day expiration if no expiry is provided via the secondsToLive field.
If secondsToLive is set to 0, the URL will never expire.
Either an array of URL strings or an options object and all available options.
Deletes a shortened URL by its ID.
The ID is the unique identifier at the end of the shortened URL.
The ID of the shortened URL to delete.
Deletes shortened URLs by their IDs.
The ID is the unique identifier at the end of the shortened URL.
The IDs of the shortened URL to delete.
Fetch content from a URL.
The URL to fetch content from.
WebClient provides methods to interact with web-related functionalities.