{"id":22894236,"url":"https://github.com/clearcodehq/openrtb","last_synced_at":"2025-09-15T06:39:03.547Z","repository":{"id":46600606,"uuid":"408387769","full_name":"ClearcodeHQ/openrtb","owner":"ClearcodeHQ","description":"This is a library with OpenRTB v2.5 and v3.0 types. Library allows to build and validate OpenRTB objects.","archived":false,"fork":false,"pushed_at":"2023-01-06T12:38:58.000Z","size":72,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-09-02T17:41:53.342Z","etag":null,"topics":["advertising","javascript","openrtb","realtime-bidding","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ClearcodeHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-20T09:47:19.000Z","updated_at":"2024-02-07T08:42:05.000Z","dependencies_parsed_at":"2023-02-06T02:31:52.944Z","dependency_job_id":null,"html_url":"https://github.com/ClearcodeHQ/openrtb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ClearcodeHQ/openrtb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fopenrtb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fopenrtb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fopenrtb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fopenrtb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClearcodeHQ","download_url":"https://codeload.github.com/ClearcodeHQ/openrtb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClearcodeHQ%2Fopenrtb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275218748,"owners_count":25425881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advertising","javascript","openrtb","realtime-bidding","typescript"],"created_at":"2024-12-13T23:17:16.233Z","updated_at":"2025-09-15T06:39:03.496Z","avatar_url":"https://github.com/ClearcodeHQ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenRTB\n## Overview\n\nThis is a Node.js library with OpenRTB [v2.5](https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf) and [v3.0](https://github.com/InteractiveAdvertisingBureau/openrtb/blob/master/OpenRTB%20v3.0%20FINAL.md) types. Library allows to build and validate OpenRTB objects.\n\n## Installation\nFor npm:\n* `npm i @clearcodehq/openrtb --save-dev`\n\nFor yarn:\n* `yarn add @clearcodehq/openrtb --dev`\n\n## Usage\nTo use the OpenRTB v2.5 types, import the package into your file:\n\n```typescript\nimport { OpenRTB25 } from '@clearcodehq/openrtb'\n\nconst request: OpenRTB25.BidRequest = {\n  id: '0123456789ABCDEF',\n  imp: [],\n}\n\nconst response: OpenRTB25.BidResponse = {\n  id: '0123456789ABCDEF',\n  seatbid: [\n    {\n      bid:[\n        {\n          id: \"3388668784683234620\",\n          impid: \"1234\",\n          price: 0.01594973499743546,\n          adm: \"\u003cdiv\u003etest\u003c/div\u003e\",\n          adid: \"1234\",\n          adomain: [\n            \"https://example.com\"\n          ],\n          iurl: \"https://example.com/cr?id=1234\",\n          cid: \"1234\",\n          crid: \"1234\",\n          w: 160,\n          h: 600,\n        }\n      ],\n      seat: \"bidder\"\n    }\n  ],\n  cur: \"EUR\"\n}\n```\n\nThe same with OpenRTB v3.0 types:\n\n```typescript\nimport { OpenRTB30 } from '@clearcodehq/openrtb'\n\nconst request: OpenRTB30.BidRequest = {\n  openrtb: {\n    ver: '3.0',\n    domainspec: 'adcom',\n    domainver: '1.0',\n    request: {\n      id: \"0123456789ABCDEF\",\n    },\n  }\n}\n\nconst response: OpenRTB30.BidResponse = {\n  openrtb: {\n    ver: '3.0',\n    domainspec: 'adcom',\n    domainver: '1.0',\n    response: {\n      id: \"0123456789ABCDEF\",\n      bidid: \"0011223344AABBCC\",\n      seatbid: [\n        {\n          seat: \"XYZ\",\n          bid: [\n            {\n              id: \"yaddayadda\",\n              item: \"1\",\n              deal: \"1234\",\n              price: 1.50,\n              macro: [\n                {\n                  key: \"TIMESTAMP\",\n                  value: \"1127987134\"\n                },\n                {\n                  key: \"CLICKTOKEN\",\n                  value: \"A7D800F2716DB\"\n                }\n              ],\n            }\n          ]\n        }\n      ]\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Fopenrtb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclearcodehq%2Fopenrtb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearcodehq%2Fopenrtb/lists"}