GET
Send an HTTP GET request.
Signature
TypeScript
function get(
url: string,
config?: AxiosRequestConfig
): Promise<{
headers: Record<string, string>;
status: number;
data: any;
}>;
Parameters
url
: The request URL.config
: The request config. Refer to the Axios docs for details.
Returns
- The response object.
Examples
TypeScript
const res = await zeta.v1.http.get(
"https://api.dictionaryapi.dev/api/v2/entries/en/equanimity"
);