# คู่แข่งแอป App Store แบบเรียลไทม์

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/dataforseo_labs/apple/app_competitors/live`

**Tags:** DataForSEO

แอป App Store ที่แข่งขันกับแอปหนึ่งบนคำค้นที่ใช้ร่วมกัน แบ่งหน้าด้วย `limit`, `offset` และ `offset_token`; ใช้โทเค็นต่อจากหน้าแรก ๆ ห่อหุ้มในซองของ DataForSEO: ข้อมูลอยู่ใน `tasks[0].result` ผลลัพธ์อยู่ใน `tasks[0].status_code` - คำขอที่ถูกปฏิเสธยังคงคืนค่า HTTP 200 คู่แฝดบน Google Play: `post_dataforseo_labs_google_app_competitors_live`

### ข้อมูลอ้างอิงราคา

- การวัดปริมาณ: ต้นทุนการตอบกลับที่รายงาน
- ประมาณการคำขออ้างอิง: USD 0.1356
- ตัวคูณลูกค้าอ้างอิง: 1.0 ห้ามนำไปใช้ซ้ำกับยอดที่ตัดบัญชีของลูกค้าแล้ว

เป็นเพียงข้อมูลเมตาอ้างอิง ไม่ใช่ใบเสนอราคาของบัญชี ไม่ใช่ราคาที่รับประกัน และไม่ใช่เพดานการใช้จ่าย เครดิตทรัพยากรไม่ใช่เครดิต Felo การเรียกเก็บเงินขั้นสุดท้ายเป็นไปตามบันทึกการเรียกเก็บเงินของ Felo

## Related links

- [Dataforseo Labs - Filters](<https://docs.dataforseo.com/v3/dataforseo_labs/filters>)
- [คู่มือ Help Center นี้](<https://dataforseo.com/help-center/how-to-use-filters-in-dataforseo-labs-api>)

## 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": {
          "app_id": {
            "type": "string",
            "description": "<em>ID ของแอป</em><br><strong>ฟิลด์ที่จำเป็น</strong><br>ID ของแอปพลิเคชันมือถือบน App Store;<br>ดู ID ได้จาก URL ของทุกแอปที่แสดงบน App Store;<br>ตัวอย่าง:<br>ใน URL <code>https://apps.apple.com/us/app/id835599320</code><br>ID คือ <code>835599320</code>"
          },
          "location_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของสถานที่</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_code</code><br><strong>หมายเหตุ:</strong> ต้องระบุ <code>location_name</code> หรือ <code>location_code</code> อย่างใดอย่างหนึ่ง<br>คุณสามารถรับรายการสถานที่ที่ใช้ได้พร้อม <code>location_name</code> ได้โดยส่งคำขอแยกไปที่ <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code>;<br><strong>หมายเหตุ:</strong> endpoint นี้รองรับเฉพาะสถานที่ในสหรัฐอเมริกาเท่านั้น<br>ตัวอย่าง:<br><code class=\"long-string\">United States</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>รหัสสถานที่</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_name</code><br><strong>หมายเหตุ:</strong> ต้องระบุ <code>location_name</code> หรือ <code>location_code</code> อย่างใดอย่างหนึ่ง<br>คุณสามารถรับรายการสถานที่ที่ใช้ได้พร้อม <code>location_code</code> ได้โดยส่งคำขอแยกไปที่ <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code>;<br><strong>หมายเหตุ:</strong> endpoint นี้รองรับเฉพาะสถานที่ในสหรัฐอเมริกาเท่านั้น<br>ตัวอย่าง:<br><code class=\"long-string\">2840</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของภาษา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>language_code</code><br><strong>หมายเหตุ:</strong> ต้องระบุ <code>language_name</code> หรือ <code>language_code</code> อย่างใดอย่างหนึ่ง<br>คุณสามารถรับรายการภาษาที่ใช้ได้พร้อม <code>language_name</code> ได้โดยส่งคำขอแยกไปที่ <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code>;<br><strong>หมายเหตุ:</strong> endpoint นี้รองรับเฉพาะภาษาอังกฤษเท่านั้น;<br>ตัวอย่าง:<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>รหัสภาษา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>language_name</code><br><strong>หมายเหตุ:</strong> ต้องระบุ <code>language_name</code> หรือ <code>language_code</code> อย่างใดอย่างหนึ่ง<br>คุณสามารถรับรายการภาษาที่ใช้ได้พร้อม <code>language_code</code> ได้โดยส่งคำขอแยกไปที่ <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code>;<br><strong>หมายเหตุ:</strong> endpoint นี้รองรับเฉพาะภาษาอังกฤษเท่านั้น<br>ตัวอย่าง:<br><code class=\"long-string\">en</code>"
          },
          "filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>อาร์เรย์ของพารามิเตอร์การกรองผลลัพธ์</em><br>ฟิลด์ที่ไม่บังคับ<br><strong>เพิ่มตัวกรองได้หลายรายการพร้อมกัน (สูงสุด 8 ตัวกรอง)</strong><br>ต้องกำหนดโอเปอเรเตอร์ทางตรรกะ <code>and</code>, <code>or</code> ระหว่างเงื่อนไข<br>รองรับโอเปอเรเตอร์ต่อไปนี้:<br><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><br>ตัวอย่าง:<br><code>[\"intersections\",\"&gt;\",500]</code><p><code>[[\"competitor_metrics.app_store_search_organic.pos_1\",\"&lt;&gt;\",10],\"and\",[\"avg_position\",\"&gt;=\",\"10\"]]</code><p><code>[[[\"intersections\",\"&gt;=\",50],\"and\",[\"competitor_metrics.app_store_search_organic.pos_1\",\"in\",[1,5]]],<br>\"or\",<br>[\"sum_position\",\"&gt;=\",\"10000\"]]</code><p>ดูข้อมูลเพิ่มเติมเกี่ยวกับตัวกรองได้ที่ Dataforseo Labs - Filters หรือคู่มือ Help Center นี้"
          },
          "order_by": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>กฎการเรียงลำดับผลลัพธ์</em><br>ฟิลด์ที่ไม่บังคับ<br>ใช้ค่าเดียวกับในอาร์เรย์ <code>filters</code> เพื่อเรียงลำดับผลลัพธ์ได้;<br>ประเภทการเรียงลำดับที่เป็นไปได้:<br><code>asc</code> - เรียงผลลัพธ์จากน้อยไปมาก;<br><code>desc</code> - เรียงผลลัพธ์จากมากไปน้อย;<br>ใช้เครื่องหมายจุลภาคเพื่อระบุประเภทการเรียงลำดับ;<br>ตัวอย่าง:<br><code>[\"intersections,asc\"]</code><br><strong>หมายเหตุ:</strong> ตั้งกฎการเรียงลำดับได้ไม่เกินสามข้อต่อหนึ่งคำขอ;<br>ใช้เครื่องหมายจุลภาคแยกกฎการเรียงลำดับหลายข้อ;<br>ตัวอย่าง:<br><code>[\"intersections,desc\",\"sum_position,asc\"]</code><p>กฎเริ่มต้น:<br><code>[\"intersections,desc\"]</code><br><strong>หมายเหตุ:</strong> หากอาร์เรย์ <code>item_types</code> มีประเภทไอเท็มที่แตกต่างจาก <code>organic</code> ผลลัพธ์จะเรียงตามประเภทไอเท็มแรกในอาร์เรย์"
          },
          "limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>จำนวนแอปสูงสุดที่คืน</em><br>ฟิลด์ที่ไม่บังคับ<br>ค่าเริ่มต้น: <code>100</code><br>ค่าสูงสุด: <code>1000</code>"
          },
          "offset": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>ออฟเซตในอาร์เรย์ผลลัพธ์ของแอปที่คืน</em><br>ฟิลด์ที่ไม่บังคับ<br>ค่าเริ่มต้น: <code>0</code><br>หากระบุค่า <code>10</code> แอปสิบรายการแรกในอาร์เรย์ผลลัพธ์จะถูกข้ามไป และข้อมูลจะถูกส่งสำหรับคีย์เวิร์ดถัดไป"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ตัวระบุงานที่ผู้ใช้กำหนด</em><br>ฟิลด์ไม่บังคับ<br><em>จำกัด 255 อักขระ</em><br>ใช้พารามิเตอร์นี้เพื่อระบุงานและจับคู่กับผลลัพธ์<br>คุณจะพบค่า <code>tag</code> ที่ระบุในออบเจ็กต์ <code>data</code> ของการตอบกลับ"
          }
        },
        "example": [
          {
            "app_id": "686449807",
            "language_name": "English",
            "location_code": 2840,
            "limit": 10
          }
        ]
      }
    ]
  },
  "example": [
    {
      "app_id": "686449807",
      "language_name": "English",
      "location_code": 2840,
      "limit": 10
    }
  ]
}
```

## Responses

### 200 — ดำเนินการสำเร็จ

Headers:
- `X-Request-Id` (string) — ตัวระบุคำขอที่ต้องระบุเมื่อติดต่อฝ่ายสนับสนุนของ Felo

**application/json**

Schema: object | null

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

### 400 — ไม่สามารถประมวลผลคำขอได้ ตรวจสอบพารามิเตอร์ของคำขอ

### 401 — จำเป็นต้องใช้คีย์ API ของ Felo ที่ถูกต้อง

### 402 — ไม่สามารถดำเนินการตามคำขอได้ เนื่องจากไม่เป็นไปตามข้อกำหนดด้านการเรียกเก็บเงิน

### 403 — บัญชีไม่ได้รับอนุญาตให้ดำเนินการนี้

### 429 — ถึงขีดจำกัดคำขอหรือการใช้จ่ายแล้ว

### 502 — บริการไม่สามารถดำเนินการตามคำขอให้เสร็จสิ้นได้

### 503 — API หรือบริการเรียกเก็บเงินไม่พร้อมใช้งานชั่วคราว

### 504 — บริการหมดเวลาระหว่างประมวลผลคำขอ

### default — การตอบกลับข้อผิดพลาด; การตอบกลับที่ส่งผ่านจากต้นทางอาจใช้รูปแบบของผู้ให้บริการ

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AppMetricsInfo

`#/components/schemas/Response36Afe1097B20_AppMetricsInfo`

```json
{
  "type": "object",
  "properties": {
    "pos_1": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวน SERP แบบออร์แกนิกที่สินค้าอยู่อันดับ #1</em>"
    },
    "pos_2_3": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวน SERP แบบออร์แกนิกที่สินค้าอยู่อันดับ #2-3</em>"
    },
    "pos_4_10": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวน SERP แบบออร์แกนิกที่สินค้าอยู่อันดับ #4-10</em>"
    },
    "pos_11_100": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวน SERP แบบออร์แกนิกที่สินค้าอยู่อันดับ #11-100</em>"
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวน Amazon SERP แบบออร์แกนิกทั้งหมดที่มีสินค้านี้</em>",
      "format": "int64"
    },
    "search_volume": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ปริมาณการค้นหารวมของคีย์เวิร์ดที่สินค้าจัดอันดับใน SERP แบบออร์แกนิก</em>",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "เวอร์ชันปัจจุบันของ API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "รหัสสถานะทั่วไป\nคุณสามารถดูรายการรหัสการตอบกลับทั้งหมดได้ที่นี่"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ข้อความข้อมูลทั่วไป\nคุณสามารถดูรายการข้อความข้อมูลทั่วไปทั้งหมดได้ที่นี่"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "เวลาดำเนินการทั้งหมด (วินาที)"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "ค่าใช้จ่ายรวมของงาน, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "จำนวนงานในอาร์เรย์ tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "จำนวนงานในอาร์เรย์ tasks ที่ส่งคืนพร้อมข้อผิดพลาด",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ตัวระบุงาน\nตัวระบุงานที่ไม่ซ้ำกันในระบบของเราในรูปแบบ UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "รหัสสถานะของงาน\nสร้างโดย DataForSEO โดยอยู่ในช่วงต่อไปนี้ได้: 10000-60000\nคุณสามารถดูรายการรหัสการตอบกลับทั้งหมดได้ที่นี่"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ข้อความข้อมูลของงาน\nคุณสามารถดูรายการข้อความข้อมูลทั่วไปทั้งหมดได้ที่นี่"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "เวลาดำเนินการ, วินาที"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "ค่าใช้จ่ายรวมของงาน, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "จำนวนองค์ประกอบในอาร์เรย์ result",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "พาธ URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "มีพารามิเตอร์เดียวกับที่คุณระบุในคำขอ POST"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsAppleAppCompetitorsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsAppleAppCompetitorsLiveResponseInfo`

```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_DataforseoLabsAppleAppCompetitorsLiveTaskInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของงาน</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_DataforseoLabsAppleAppCompetitorsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsAppleAppCompetitorsLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "se_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ประเภทของเครื่องมือค้นหา</em>"
    },
    "app_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>id ของแอปในอาร์เรย์ POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>รหัสสถานที่ในอาร์เรย์ POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>รหัสภาษาในอาร์เรย์ POST</em>"
    },
    "total_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวนผลลัพธ์ทั้งหมดในฐานข้อมูลของเราที่เกี่ยวข้องกับคำขอของคุณ</em>",
      "format": "int64"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวนผลลัพธ์ที่ส่งคืนในอาร์เรย์ <code>items</code></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsleAppCompetitorsLiveItem"
          }
        ]
      },
      "description": "<em>มีข้อมูลที่เกี่ยวข้องกับ <code>app_id</code> และแอปคู่แข่ง</em>"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsAppleAppCompetitorsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsAppleAppCompetitorsLiveTaskInfo`

```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_DataforseoLabsAppleAppCompetitorsLiveResultInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของผลลัพธ์</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_DataforseoLabsleAppCompetitorsLiveItem

`#/components/schemas/Response36Afe1097B20_DataforseoLabsleAppCompetitorsLiveItem`

```json
{
  "type": "object",
  "properties": {
    "se_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ประเภทของเครื่องมือค้นหา</em>"
    },
    "app_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>id ของแอปในอาร์เรย์ POST</em>"
    },
    "avg_position": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>ตำแหน่งเฉลี่ยของแอปใน SERP ของ Google Play</em><br><strong>หมายเหตุ:</strong> ตำแหน่งเฉลี่ยคำนวณจากคีย์เวิร์ดที่อินเตอร์เซกต์เท่านั้น;<br>ค่าของแอปที่กำหนดอาจแตกต่างกันเมื่อจับคู่กับแอปเป้าหมายอื่น",
      "format": "float"
    },
    "sum_position": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ผลรวมของตำแหน่งทั้งหมดของแอปใน SERP ของ Google Play</em><br><strong>หมายเหตุ:</strong> ตำแหน่งผลรวมคำนวณจากคีย์เวิร์ดที่อินเตอร์เซกต์เท่านั้น;<br>ค่าของแอปที่กำหนดอาจแตกต่างกันเมื่อจับคู่กับแอปเป้าหมายอื่น"
    },
    "intersections": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวนคีย์เวิร์ดที่อินเตอร์เซกต์</em>"
    },
    "competitor_metrics": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "$ref": "#/components/schemas/Response36Afe1097B20_AppMetricsInfo"
      },
      "description": "<em>ตัวชี้วัดสำหรับคีย์เวิร์ดที่อินเตอร์เซกต์</em><br>ข้อมูลอันดับที่เกี่ยวข้องกับคีย์เวิร์ดที่แอปคู่แข่งที่ให้มามีร่วมกับแอปในคำขอ POST;<br><strong>หมายเหตุ:</strong> ในอาร์เรย์นี้ ข้อมูลอันดับจะแสดงสำหรับ <code>app_id</code> ของคู่แข่งที่คืนมา"
    },
    "full_metrics": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "$ref": "#/components/schemas/Response36Afe1097B20_AppMetricsInfo"
      },
      "description": "<em>ตัวชี้วัดสำหรับคีย์เวิร์ดทั้งหมดของแอป</em><br>ภาพรวมข้อมูลอันดับทั้งหมดที่เกี่ยวข้องกับทุกคีย์เวิร์ดที่ <code>app_id</code> ที่ให้มาจัดอันดับอยู่"
    }
  }
}
```
