Taddy Docs
  • Getting started
    • Интеграция
    • Обмен трафиком
      • TMA
      • Бот
  • Реклама
    • TMA
    • Бот
  • Webhooks
  • SDK
    • Web (JS/TS)
    • PHP
    • Node.js (soon)
    • Go (soon)
    • Python (soon)
  • Rest API
    • About
    • Start event
    • Custom events
    • Exchange API
      • Get feed
      • Impressions event
      • Check completion
    • Ads API
      • Get Ad
      • Impressions event
  • Terms of Service
    • Правила платформы
    • Terms of Service
Powered by GitBook
On this page
  1. Rest API
  2. Exchange API

Get feed

Получение списка заданий (feed) на обмен трафиком

PreviousExchange APINextImpressions event

Last updated 1 month ago

Get exchange items feed

post
Body
all ofOptional
Responses
200
OK
application/json
400
Invalid Request
application/json
post
POST /v1/exchange/feed HTTP/1.1
Host: api.taddy.pro
Content-Type: application/json
Accept: */*
Content-Length: 400

{
  "pubId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "user": {
    "id": 1234567890,
    "firstName": "John",
    "lastName": "Doe",
    "username": "john_doe",
    "premium": true,
    "language": "en",
    "country": "DE",
    "gender": "male",
    "ip": "65.82.123.21",
    "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
    "birthDate": "2001-01-01"
  },
  "origin": "server",
  "imageFormat": "webp",
  "limit": 4,
  "autoImpressions": false
}
{
  "result": [
    {
      "id": "qwertyuio....asdfghjk",
      "title": "This is demo",
      "description": "Please, click me!",
      "image": "https://cdn.google.com/images/123456.webp",
      "type": "app",
      "link": "https://t.tadly.pro/e/qwertyuio....asdfghjk"
    }
  ]
}