Rate this page:

Fetch API

Forge Fetch API is a partial implementation of node-fetch.

Import the Forge API package in your app, as follows:

1
import { fetch } from '@forge/api';

Fetches data from an HTTP server. See Options in the node-fetch documentation on GitHub for full implementation details.

Method signature

1
fetch(url[, options]) => Promise<Response>

Parameters

NameTypeDescription
urlstringThe URL to request data from.
optionsobject

See the node-fetch library’s Options documentation for the accepted values. Defaults are the same as node-fetch.

Rate this page: