# @polkadot/x-fetch

> A cross-environment fetch replacement

Latest version **14.0.3** (published 2026-03-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @polkadot/x-fetch
pnpm add @polkadot/x-fetch
yarn add @polkadot/x-fetch
bun add @polkadot/x-fetch
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 14.0.3 |
| Published | 2026-03-23 |
| First published | 2020-09-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 3 |
| Unpacked size | 18.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 261 |
| Author | Jaco Greeff |
| Maintainers | jacogr, polkadotjs, paritytech-ci |

## Links

- npm: https://www.npmjs.com/package/@polkadot/x-fetch
- Repository: https://github.com/polkadot-js/common
- Homepage: https://github.com/polkadot-js/common/tree/master/packages/x-fetch#readme
- Issues: https://github.com/polkadot-js/common/issues
- npm.io page: https://npm.io/package/@polkadot/x-fetch

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^2.8.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.3.2
- [@polkadot/x-global](https://npm.io/package/@polkadot/x-global.md) 14.0.3

## Recent versions

- 14.0.3 (latest) — 2026-03-23
- 11.1.4-12 (beta) — 2023-04-13
- 14.0.2 — 2026-03-16
- 14.0.1 — 2025-12-09
- 13.5.9 — 2025-11-25
- 13.5.8 — 2025-11-11
- 13.5.7 — 2025-10-13
- 13.5.6 — 2025-08-26
- 13.5.5 — 2025-08-11
- 13.5.4 — 2025-07-28
- 13.5.3 — 2025-07-01
- 13.5.2 — 2025-06-17
- 13.5.1 — 2025-05-19
- 13.4.4 — 2025-04-14
- 13.4.3 — 2025-02-17
- … 742 more at https://npm.io/package/@polkadot/x-fetch/versions

## README

# @polkadot/x-fetch

A cross-environment fetch.

Install it via `yarn add @polkadot/x-fetch`

```js
import { fetch } from '@polkadot/x-fetch';

...
const response = await fetch('https://example.com/something.json');
const json = await response.json();
```

---
_Source: https://npm.io/package/@polkadot/x-fetch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
