> For the complete documentation index, see [llms.txt](https://sdk-doc.tyrads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk-doc.tyrads.com/iframe/installation/manual-integration/manual-integration-example-using-nodejs.md).

# Manual Integration Example Using NodeJS

{% hint style="warning" %}

#### Initialize After Media Source or MMP Initialization

Please initialize our SDK only after the media source or MMP data is initialized. This ensures that the media source data is sent correctly and prevents passing empty values.
{% endhint %}

## Using Express and FetchAPI

Here is the implementation example on NodeJS using Express and FetchAPI

{% embed url="<https://github.com/tyrads-com/nodejs-sdk-iframe-example/blob/main/FetchApiExpressJS/index.js>" %}

### Usage Example

1. Clone the repository and open the directory
2. In FetchApiExpressJS`/index.js`, change the `API_KEY` , `API_SECRET` , `AGE` , `GENDER` , and `PUBLISHER_USER_ID` to yours
3. Open terminal and run `node` FetchApiExpressJS`/index.js`
4. Now you can open the `index.html` file on your browser

## Using Express and Axios

Here is the implementation example on NodeJS using Express and Axios

{% embed url="<https://github.com/tyrads-com/nodejs-sdk-iframe-example/blob/main/AxiosExpressJS/index.js>" %}

### Usage Example

1. Clone the repository and open the directory
2. In `AxiosExpressJS/index.js`, change the `API_KEY` , `API_SECRET` , `AGE` , `GENDER` , and `PUBLISHER_USER_ID` to yours
3. Open terminal and run `node AxiosExpressJS/index.js`
4. Now you can open the `index.html` file on your browser
