# iab-openrtb

> TypeScript definitions for IAB Tech Lab's OpenRTB (Open Real Time Bidding)

Latest version **2.2.0** (published 2026-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install iab-openrtb
pnpm add iab-openrtb
yarn add iab-openrtb
bun add iab-openrtb
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2026-11-17 |
| First published | 2024-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=14.0.0 |
| Dependencies | 1 |
| Unpacked size | 169.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Author | Kai Miyamoto |
| Maintainers | kaihogehoge |
| Keywords | OpenRTB, IAB Tech Lab, AdCOM, typescript, types, definitions, advertising, programmatic |

## Links

- npm: https://www.npmjs.com/package/iab-openrtb
- Repository: https://github.com/hogekai/iab-types
- Homepage: https://github.com/hogekai/iab-types.git
- Issues: https://github.com/hogekai/iab-types.git
- npm.io page: https://npm.io/package/iab-openrtb

## Dependencies (1)

- [iab-adcom](https://npm.io/package/iab-adcom.md) 2.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2026-11-17
- 2.1.0 — 2026-03-15
- 1.0.1 — 2025-03-01
- 1.0.0 — 2025-02-03
- 0.4.3 — 2025-01-16
- 0.4.2 — 2025-01-16
- 0.4.1 — 2025-01-14
- 0.4.0 — 2025-01-12
- 0.3.10 — 2025-01-11
- 0.3.9 — 2025-01-08
- 0.3.8 — 2025-01-08
- 0.3.7 — 2025-01-08
- 0.3.6 — 2025-01-08
- 0.3.5 — 2025-01-08
- 0.3.4 — 2025-01-08
- … 9 more at https://npm.io/package/iab-openrtb/versions

## README

# iab-openrtb

TypeScript type definitions for IAB Tech Lab's OpenRTB (Open Real-Time Bidding) specification

## Overview

This package provides TypeScript type definitions based on the OpenRTB specification, which is a standard protocol for programmatic advertising transactions.

## Installation

```bash
npm install iab-openrtb
```

This package depends on [iab-adcom](https://github.com/hogekai/types-iab-adcom#readme), so it's recommended to install it as well:

```bash
npm install iab-adcom
```

## Usage

```typescript
// OpenRTB v2.5
import { BidRequest, BidResponse } from "iab-openrtb/v25";
// OpenRTB v2.6
import { BidRequest, BidResponse } from "iab-openrtb/v26";
// OpenRTB v3.0
import { Request, Response } from "iab-openrtb/v30";
```

Using enums:

```typescript
// OpenRTB v2.5
import { NoBidReasonCode, LossReasonCode } from "iab-openrtb/v25";
// OpenRTB v2.6
import { NoBidReasonCode, LossReasonCode } from "iab-openrtb/v26";
// OpenRTB v3.0
import { NoBidReasonCode, LossReasonCode } from "iab-openrtb/v30";
```

Note: Currently only NoBidReasonCode and LossReasonCode enums are supported. Other enums are defined in the iab-adcom package.

## Structure

The package consists of the following modules:

- `iab-openrtb/v25`: Type definitions for OpenRTB 2.5
- `iab-openrtb/v26`: Type definitions for OpenRTB 2.6
- `iab-openrtb/v30`: Type definitions for OpenRTB 3.0

## Requirements

- TypeScript 4.0 or higher
- Node.js 14.0.0 or higher

## License

MIT

## Related Links

- [OpenRTB Specification](https://iabtechlab.com/standards/openrtb/)
- [IAB Tech Lab](https://iabtechlab.com/)

## Contributing

Issues and Pull Requests are welcome at our [GitHub repository](https://github.com/hogekai/iab-types).

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