# API Tren Frasa – Analisis Konten

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/content_analysis/phrase_trends/live`

**Tags:** DataForSEO

Metrik ringkasan untuk sebuah kata kunci, diulang per periode waktu. Setiap entri membawa `date` beserta `total_count`, `rank`, `top_domains` (masing-masing `domain` dan `count`), `sentiment_connotations` (anger, happiness, love, sadness, share, fun), `connotation_types` (positive, negative, neutral), `text_categories`, `page_categories`, `page_types`, `countries`, dan `languages`. `date_from`, `date_to`, dan `date_group` (day, week, month) menetapkan rentang dan granularitas. Gunakan untuk melihat apakah sebutan sebuah frasa naik atau turun; untuk satu titik waktu, gunakan `post_dataforseo_content_summary_live`. Untuk melacak seluruh kategori produk dan bukan satu frasa, gunakan `post_dataforseo_content_category_trends_live`.

### Referensi harga

- Pengukuran: biaya respons yang dilaporkan.
- Perkiraan referensi per permintaan: USD 0,0276.
- Pengali referensi pelanggan: 1,0. Jangan menerapkannya lagi pada jumlah tagihan pelanggan yang telah diselesaikan.

Hanya metadata referensi, bukan penawaran akun, harga yang dijamin, atau batas pengeluaran. Kredit sumber daya bukan kredit Felo. Biaya akhir mengikuti catatan penagihan Felo.

## Related links

- [artikel Pusat Bantuan](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [Search endpoint](<https://docs.dataforseo.com/v3/content_analysis/search/live/?bash>)
- [API Analisis Konten - Filter](<https://docs.dataforseo.com/v3/content_analysis/filters>)
- [artikel pusat bantuan ini.](<https://dataforseo.com/help-center/what-are-the-initial-dataset-filters-and-how-do-they-work>)
- [artikel Pusat Bantuan ini](<https://dataforseo.com/help-center/using-the-rank_scale-parameter-in-content-analysis-api>)
- [Categories](<https://docs.dataforseo.com/v3/content_analysis/categories/>)
- [Locations](<https://docs.dataforseo.com/v3/content_analysis/locations/>)
- [Languages](<https://docs.dataforseo.com/v3/content_analysis/languages/>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "description": "<em>kata kunci target</em><br><strong>field wajib</strong><br>pengodean UTF-8<br>kata kunci akan diubah ke format huruf kecil;<br><strong>Catatan</strong>: untuk mencocokkan frasa persis alih-alih kata kunci mandiri, gunakan tanda kutip ganda dan garis miring terbalik; <br>contoh: <br><code>\"keyword\": \"\\\"tesla palo alto\\\"\"</code><p>pelajari lebih lanjut tentang aturan dan batasan field <code>keyword</code> dan <code>keywords</code> di API DataForSEO di artikel Pusat Bantuan ini"
          },
          "keyword_fields": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "<em>field kata kunci target dan kata kunci target</em><br>field opsional<br>gunakan parameter ini untuk memfilter set data berdasarkan kata kunci yang harus dimuat oleh field tertentu;<br>field yang dapat Anda tentukan: <code>title</code>, <code>main_title</code>, <code>previous_title</code>, <code>snippet</code><br>Anda dapat menunjukkan beberapa field;<br><strong>Catatan</strong>: untuk mencocokkan frasa persis alih-alih kata kunci mandiri, gunakan tanda kutip ganda dan garis miring terbalik; <br>contoh:<br>`\"keyword_fields\": {<br>\"snippet\": \"\\\"logitech mouse\\\"\",<br>\"main_title\": \"sale\"<br>}`"
          },
          "page_type": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>jenis halaman target</em><br>field opsional<br>gunakan parameter ini untuk memfilter set data berdasarkan jenis halaman<br>nilai yang mungkin: <br><code>\"ecommerce\"</code>, <code>\"news\"</code>, <code>\"blogs\"</code>, <code>\"message-boards\"</code>, <code>\"organization\"</code>"
          },
          "search_mode": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>jenis pengelompokan hasil</em><br>field opsional<br>jenis pengelompokan yang mungkin:<br><code>as_is</code> - mengembalikan data semua sitasi untuk <code>keyword</code> target<br><code>one_per_domain</code> - mengembalikan data satu sitasi <code>keyword</code> per domain<br>nilai default: <code>as_is</code>"
          },
          "internal_list_limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>jumlah maksimum elemen dalam array internal</em><br>field opsional<br>Anda dapat menggunakan field ini untuk membatasi jumlah elemen dalam array berikut:<br><code>top_domains</code><br><code>text_categories</code><br><code>page_categories</code><br><code>countries</code><br><code>languages</code><br>nilai default: <code>1</code><br>nilai maksimum: <code>20</code>"
          },
          "date_from": {
            "type": "string",
            "description": "<em>tanggal mulai rentang waktu</em><br><strong>field wajib</strong><br>format tanggal: <code>\"yyyy-mm-dd\"</code><br>contoh:<br><code>\"2019-01-15\"</code>"
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>tanggal berakhir rentang waktu</em><br>field opsional<br>jika Anda tidak menentukan field ini, tanggal hari ini akan digunakan secara default<br>format tanggal: <code>\"yyyy-mm-dd\"</code><br>contoh:<br><code>\"2019-01-15\"</code>"
          },
          "date_group": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>rentang waktu yang akan digunakan untuk mengelompokkan hasil</em><br>field opsional<br>nilai default: <code>month</code><br>nilai yang mungkin: <code>day</code>, <code>week</code>, <code>month</code>"
          },
          "initial_dataset_filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>parameter filter set data awal</em><br>field opsional<br>parameter filter awal yang berlaku untuk field di Search endpoint;<br><strong>Anda dapat menambahkan beberapa filter sekaligus (maksimal 8 filter);</strong><br>Anda harus menetapkan operator logika <code>and</code>, <code>or</code> di antara kondisi;<br>operator berikut didukung:<br><code>regex</code>, <code>not_regex</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>=</code>, <code>&lt;&gt;</code>, <code>in</code>, <code>not_in</code>, <code>like</code>,<code>not_like</code>, <code>has</code>, <code>has_not</code>, <code>match</code>, <code>not_match</code><br>Anda dapat menggunakan operator <code>%</code> dengan <code>like</code> dan <code>not_like</code> untuk mencocokkan string apa pun dengan nol atau lebih karakter;<br>contoh:<br><code>[\"domain\",\"&lt;&gt;\", \"logitech.com\"]</code><p><code>[[\"domain\",\"&lt;&gt;\",\"logitech.com\"],\"and\",[\"content_info.connotation_types.negative\",\"&gt;\",1000]]</code><p><code>[[\"domain\",\"&lt;&gt\",\"logitech.com\"]],<br>\"and\",<br>[[\"content_info.connotation_types.negative\",\"&gt;\",1000],<br>\"or\",<p>[\"content_info.text_category\",\"has\",10994]]]</code><br>untuk informasi selengkapnya tentang filter, lihat API Analisis Konten - Filter<br>pelajari lebih lanjut tentang filter set data awal di artikel pusat bantuan ini."
          },
          "rank_scale": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>menentukan skala yang digunakan untuk menghitung dan menampilkan nilai <code>rank</code></em><br>field opsional<p>Anda dapat menggunakan parameter ini untuk memilih apakah nilai rank disajikan pada skala 0–100 atau 0–1000<p>nilai yang mungkin:<br><code>one_hundred</code> — nilai rank ditampilkan pada skala 0–100<br><code>one_thousand</code> — nilai rank ditampilkan pada skala 0–1000<p>nilai default: <code>one_thousand</code><p>pelajari lebih lanjut tentang cara parameter ini bekerja di artikel Pusat Bantuan ini"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>pengenal tugas yang ditentukan pengguna</em><br>field opsional<br><em>batas karakter adalah 255</em><br>Anda dapat menggunakan parameter ini untuk mengidentifikasi tugas dan mencocokkannya dengan hasil<br>Anda akan menemukan nilai <code>tag</code> yang ditentukan di objek <code>data</code> pada respons"
          }
        },
        "example": [
          {
            "keyword": "logitech",
            "search_mode": "as_is",
            "date_from": "2022-09-01",
            "date_group": "month"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keyword": "logitech",
      "search_mode": "as_is",
      "date_from": "2022-09-01",
      "date_group": "month"
    }
  ]
}
```

## Responses

### 200 — Operasi berhasil

Headers:
- `X-Request-Id` (string) — Pengenal permintaan yang harus disertakan saat menghubungi dukungan Felo.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResponseInfo"
    }
  ]
}
```

### 400 — Permintaan tidak dapat diproses. Periksa parameter permintaan.

### 401 — Kunci API Felo yang valid diperlukan.

### 402 — Permintaan tidak dapat dilanjutkan karena persyaratan penagihan belum terpenuhi.

### 403 — Akun tidak diizinkan melakukan operasi ini.

### 429 — Batas permintaan atau batas pengeluaran telah tercapai.

### 502 — Layanan tidak dapat menyelesaikan permintaan.

### 503 — API atau layanan penagihan untuk sementara tidak tersedia.

### 504 — Layanan kehabisan waktu saat memproses permintaan.

### default — Respons error; respons passthrough upstream dapat menggunakan format penyedia

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "versi API saat ini"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kode status umum; Anda dapat menemukan daftar lengkap kode respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "pesan informasi umum; Anda dapat menemukan daftar lengkap pesan informasi umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "total waktu eksekusi, detik"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "total biaya tugas, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah tugas dalam array tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah tugas dalam array tasks yang dikembalikan dengan error",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "pengenal tugas; pengenal tugas unik di sistem kami dalam format UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kode status tugas yang dihasilkan oleh DataForSEO; dapat berada dalam rentang berikut: 10000-60000; Anda dapat menemukan daftar lengkap kode respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "pesan informasi tugas; Anda dapat menemukan daftar lengkap pesan informasi umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "waktu eksekusi, detik"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "total biaya tugas, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah elemen dalam array hasil",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Jalur URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "berisi parameter yang sama dengan yang Anda tentukan dalam permintaan POST"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisCategoriesInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo`

```json
{
  "properties": {
    "category": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "integer",
          "null"
        ]
      }
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveTaskInfo"
              }
            ]
          },
          "description": "<em>array tugas</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tanggal penyediaan data</em>"
    },
    "total_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>jumlah total hasil di basis data kami yang relevan dengan permintaan Anda</em>",
      "format": "int64"
    },
    "rank": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>peringkat semua URL yang mengutip <code>keyword</code></em><br>jumlah ternormalisasi peringkat semua URL yang mengutip <code>keyword</code> target untuk tanggal tertentu"
    },
    "top_domains": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_TopDomainInfo"
          }
        ]
      },
      "description": "<em>domain teratas yang mengutip kata kunci target</em><br>berisi objek dengan domain teratas yang mengutip kata kunci target dan jumlah kutipan per domain"
    },
    "sentiment_connotations": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>konotasi sentimen</em><br>berisi sentimen (reaksi emosional) yang terkait dengan kutipan kata kunci target dan jumlah kutipan per sentimen<br>konotasi yang tersedia: <code>\"anger\"</code>, <code>\"happiness\"</code>, <code>\"love\"</code>, <code>\"sadness\"</code>, <code>\"share\"</code>, <code>\"fun\"</code>"
    },
    "connotation_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>jenis konotasi</em><br>berisi jenis sentimen (polaritas sentimen) yang terkait dengan kutipan kata kunci dan jumlah kutipan per jenis sentimen<br>jenis konotasi yang tersedia: <code>\"positive\"</code>, <code>\"negative\"</code>, <code>\"neutral\"</code>"
    },
    "text_categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo"
          }
        ]
      },
      "description": "<em>kategori teks</em><br>berisi objek dengan kategori teks dan jumlah kutipan di setiap kategori teks<br>untuk mendapatkan daftar lengkap kategori yang tersedia, lihat endpoint Categories"
    },
    "page_categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo"
          }
        ]
      },
      "description": "<em>kategori halaman</em><br>berisi objek dengan kategori halaman dan jumlah kutipan di setiap kategori halaman<br>untuk mendapatkan daftar lengkap kategori yang tersedia, lihat endpoint Categories"
    },
    "page_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>jenis halaman</em><br>berisi jenis halaman dan jumlah kutipan per jenis halaman"
    },
    "countries": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>negara</em><br>berisi negara dan jumlah kutipan di setiap negara<br>untuk mendapatkan daftar lengkap negara yang tersedia, lihat endpoint Locations"
    },
    "languages": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>bahasa</em><br>berisi bahasa dan jumlah kutipan di setiap bahasa<br>untuk mendapatkan daftar lengkap bahasa yang tersedia, lihat endpoint Languages"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResultInfo"
              }
            ]
          },
          "description": "<em>array hasil</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_TopDomainInfo

`#/components/schemas/Response36Afe1097B20_TopDomainInfo`

```json
{
  "properties": {
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
```
