---
title: "Ads"
description: "TikTok 광고 라이브러리를 키워드로 검색하거나, 한 광고주가 EU·영국 등 라이브러리가 다루는 국가에서 집행한 모든 광고를 가져옵니다."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/ads/llms.txt)

```http
GET | POST /v1/tiktok-ads/ads
```

파라미터는 `GET`의 쿼리 문자열로도, `POST`의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.

## 요청

```bash tab="cURL"
curl "https://gateway.apinoa.com/v1/tiktok-ads/ads?advertiserName=NIKE%20Retail%20B.V.&advertiser=6876453864464188162&country=DE" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ advertiserName: "NIKE Retail B.V.", advertiser: "6876453864464188162", country: "DE" });
const res = await fetch(`https://gateway.apinoa.com/v1/tiktok-ads/ads?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/tiktok-ads/ads",
    params={"advertiserName": "NIKE Retail B.V.", "advertiser": "6876453864464188162", "country": "DE"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## 넘길 값

| 넘기는 값 | 읽는 것 | 비고 |
|---|---|---|
| `query` | 키워드에 맞는 광고 | |
| `advertiserName` | 한 광고주가 집행한 모든 광고 | [`advertisers`](/docs/api-reference/tiktok-ads/advertisers)가 돌려주는 이름. `advertiser`(그 id)도 넘기면 조회를 건너뜁니다 |

`query`나 `advertiserName`, 그리고 `country`를 넘기세요. `country`는 다음 중 하나입니다: AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR. 라이브러리는 EU와 EEA, 스위스, 영국, 튀르키예, 브라질에서 노출된 광고를 다루며, 미국은 다루지 않습니다. 필터(`startDate`, `endDate`, `sort`, `order`, `status`)는 둘 다와 함께 쓸 수 있습니다.

## 파라미터

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `advertiser` | string |  | With `advertiserName`: the advertiser's id (`advertisers` and an ad's `advertiser.id` give it), which saves the name lookup. A comma list where the library lists several. |
| `advertiserName` | string |  | Every ad one advertiser ran: its name exactly as `advertisers` lists it. |
| `country` | enum |  | Where the ads were shown (required): one of AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR — the EU, the EEA, Switzerland, the UK, Turkey and Brazil (not the US), which is what the library covers. `AT` `BE` `BG` `HR` `CY` `CZ` `DK` `EE` `FI` `FR` `DE` `GR` `HU` `IE` `IT` `LV` `LT` `LU` `MT` `NL` `PL` `PT` `RO` `SK` `SI` `ES` `SE` `IS` `LI` `NO` `CH` `GB` `TR` `BR` |
| `cursor` | string |  | Opaque cursor from the previous page's `cursor`. Pass it alone for the next page. |
| `endDate` | string |  | Last day shown, YYYY-MM-DD (default: today). |
| `order` | enum |  | desc (default) or asc. `desc` `asc` |
| `query` | string |  | Keywords to search the library's ads for. |
| `sort` | enum |  | Order: the day last shown (default), creation, or impressions. `lastShown` `created` `impressions` |
| `startDate` | string |  | First day shown, YYYY-MM-DD (default: 30 days before `endDate`). |
| `status` | enum |  | all ads (default), or only those still running. `all` `active` |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## 응답

`data`에 [`AdPage`](/docs/api-reference/ads/response-schema#adpage)를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.

```json
{
  "success": true,
  "data": {
    "library": "tiktok-ads",
    "items": [
      {
        "library": "tiktok-ads",
        "id": "1882724572699761",
        "url": "https://library.tiktok.com/ads/detail/?ad_id=1882724572699761",
        "advertiser": {
          "name": "NIKE Retail B.V."
        },
        "images": [],
        "videos": [
          {
            "url": "https://library.tiktok.com/api/v1/cdn/1795662568/video/aHR0cHM6Ly92MTZtLnRpa3Rva…",
            "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast2a-p-0037-euttp/oIP9EXaIYbgzE0ZC…"
          }
        ],
        "cards": [],
        "firstShownAt": "2026-11-24T00:00:00.000Z",
        "lastShownAt": "2026-11-24T00:00:00.000Z",
        "reach": {
          "text": "100K-200K",
          "lower": 100000,
          "upper": 200000
        },
        "ext": {
          "audit_status": "1",
          "type": "2",
          "spent": "",
          "impression": 0,
          "show_mode": 1,
          "rejection_info": null,
          "sor_audit_status": "1"
        }
      }
    ],
    "cursor": "dERsZAXeOKHmah7cEuTr7TborJxvm1ZkC31Xm_ImwWtV6floyr3ypouSoI4TEDeGpJKZHrwiQqgmYBj7…",
    "total": 16528
  }
}
```

## 에러

| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | `INVALID_CURSOR` | 이 오퍼레이션이 돌려준 `cursor`가 아닙니다. `cursor` 없이 처음부터 다시 시작하세요. |
| 400 | `INVALID_PARAMS` | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났습니다. 메시지에 이름이 나옵니다. |
| 401 | `UNAUTHORIZED` | `x-api-key` 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | `INSUFFICIENT_CREDITS` | 크레딧이 이 호출 비용에 모자랍니다. 대시보드에서 플랜을 고르거나 충전하세요. |
| 404 | `NOT_FOUND` | 라이브러리에 그 이름의 광고주가 없습니다. 메시지에 라이브러리가 제시한 이름이 나옵니다. |
| 429 | `MARKETPLACE_SATURATED` | 동시 호출이 너무 많습니다. `Retry-After` 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | `UPSTREAM_ERROR` | 플랫폼이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
| 503 | `SERVICE_UNAVAILABLE` | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |

모든 코드는 [Errors](/docs/errors)에 있습니다. 실패한 호출은 과금되지 않습니다.

## 가격

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## 참고

- `advertiser`는 광고주의 `id`이며 `advertiserName`과 함께 넘깁니다. TikTok 라이브러리는 광고주를 이름과 id로 함께 찾습니다. 둘 다 `advertisers`가 돌려줍니다.
- `total`은 맞는 광고 수를 라이브러리가 밝힌 그대로 담습니다. 키워드 검색은 5,000까지만 세므로, 그 상한에서는 대신 `totalRange`(`lower`: 5000)가 옵니다. 광고주의 광고는 끝까지 셉니다.
- `startDate`와 `endDate`는 광고가 노출된 기간의 날짜(`YYYY-MM-DD`)입니다. 넘기지 않으면 최근 30일입니다.
- `reach`는 광고가 도달한 순 사용자 수의 범위로, TikTok이 표시한 텍스트(`100K-200K`)와 거기서 읽은 경계값을 담습니다.
- 광고비를 낸 주체, 링크, 국가별 노출, 타기팅은 [`ad`](/docs/api-reference/tiktok-ads/ad)로 읽으세요.
- TikTok만 밝히는 정보(심사 코드, 표시 관련 필드)는 라이브러리의 원래 이름으로 `ext`에 있습니다.
- 다음 페이지는 `cursor`만 넘기면 됩니다.
