# ตั้งงาน Google App Searches

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/app_data/google/app_searches/task_post`

**Tags:** DataForSEO

เข้าคิวการค้นหาใน Google Play สำหรับ `keyword` และคืน `id` ของงาน `location_code`, `language_code` และ `depth` เป็นตัวกำหนด แบบอะซิงโครนัส: การส่งจะคืน `id` ของงานใน `tasks[0].id` และเครื่องมือดึงผลจะคืนผลลัพธ์เมื่อพร้อม `location_code` 2840 คือสหรัฐอเมริกา ดึงผลด้วย `get_dataforseo_app_google_app_searches_fetch`

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

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

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

## Related links

- [บทความ Help Center](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [ราคา](<https://dataforseo.com/pricing/api/google-play>)
- [ราคา](<https://dataforseo.com/pricing/app-data/google-play>)

## 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>คีย์เวิร์ด</em><br><strong>ฟิลด์ที่จำเป็น</strong><br>ระบุได้<strong>สูงสุด 700 อักขระ</strong>ในฟิลด์ <code>keyword</code>;<br>อักขระ %## ทั้งหมดจะถูกถอดรหัส (อักขระ ‘+’ จะถูกถอดรหัสเป็นช่องว่าง);<br>หากต้องใช้ อักขระ “%” ใน <code>keyword</code> ให้ระบุเป็น “%25”;<br>หากต้องใช้ อักขระ “+” ใน <code>keyword</code> ให้ระบุเป็น “%2B”<p>ดูข้อมูลเพิ่มเติมเกี่ยวกับกฎและข้อจำกัดของฟิลด์ <code>keyword</code> และ <code>keywords</code> ใน DataForSEO API ได้ในบทความ Help Center"
          },
          "location_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของตำแหน่งของเสิร์ชเอนจิน</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_code</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_code</code></strong><br>รับรายการตำแหน่งที่ใช้ได้ของเสิร์ชเอนจินพร้อม <code>location_name</code> ได้โดยส่งคำขอแยกไปยัง <code>https://api.dataforseo.com/v3/app_data/google/locations</code><br>ตัวอย่าง:<br><code class=\"long-string\">West Los Angeles,California,United States</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>รหัสตำแหน่งของเสิร์ชเอนจิน</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_name</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_name</code></strong><br>รับรายการตำแหน่งที่ใช้ได้ของเสิร์ชเอนจินพร้อม <code>location_code</code> ได้โดยส่งคำขอแยกไปยัง <code>https://api.dataforseo.com/v3/app_data/google/locations</code><br>ตัวอย่าง:<br><code class=\"long-string\">9061121</code>"
          },
          "language_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ชื่อเต็มของภาษาของเสิร์ชเอนจิน</em><br>ฟิลด์ที่ไม่บังคับ<br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_code</code></strong><br>รับรายการภาษาที่ใช้ได้พร้อม <code>language_name</code> ได้โดยส่งคำขอแยกไปยัง <code>https://api.dataforseo.com/v3/app_data/google/languages</code><br>ตัวอย่าง:<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>รหัสภาษาของเสิร์ชเอนจิน</em><br>ฟิลด์ที่ไม่บังคับ<br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_name</code></strong><br>รับรายการภาษาที่ใช้ได้พร้อม <code>language_code</code> ได้โดยส่งคำขอแยกไปยัง <code>https://api.dataforseo.com/v3/app_data/google/languages</code><em><br></em>ตัวอย่าง:<em><br></em><code class=\"long-string\">en</code>"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>ลำดับความสำคัญของงาน</em><br>ฟิลด์ที่ไม่บังคับ<br>รับค่าได้ดังนี้:<br>1 – ลำดับความสำคัญปกติ (ตั้งเป็นค่าเริ่มต้น)<br>2 – ลำดับความสำคัญสูง งานที่มีลำดับความสำคัญสูงจะถูกเรียกเก็บเงินเพิ่ม<br>คำนวณค่าใช้จ่ายได้ที่หน้า ราคา"
          },
          "depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>ความลึกในการดึงข้อมูล</em><br>ฟิลด์ที่ไม่บังคับ<br>จำนวนผลลัพธ์ที่จะคืนจาก SERP ของ Google Play;<br>แนะนำอย่างยิ่งให้ตั้งค่าความลึกเป็นจำนวนเท่าของ 30 เนื่องจากระบบของเราประมวลผลผลลัพธ์ครั้งละ 30 รายการ;<br>ค่าเริ่มต้น: <code>30</code>;<br>ค่าสูงสุด: <code>200</code>;<br><strong>บัญชีของคุณจะถูกเรียกเก็บเงินต่อ SERP ที่มีผลลัพธ์ไม่เกิน 30 รายการ;</strong> <br>การตั้งค่าความลึกเกิน 30 อาจทำให้มีค่าใช้จ่ายเพิ่มเติมหากเสิร์ชเอนจินคืนผลลัพธ์เกิน 30 รายการ</a>;<br>คำนวณค่าใช้จ่ายได้ที่หน้า ราคา"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ตัวระบุงานที่ผู้ใช้กำหนด</em><br>ฟิลด์ไม่บังคับ<br><em>จำกัด 255 อักขระ</em><br>ใช้พารามิเตอร์นี้เพื่อระบุงานและจับคู่กับผลลัพธ์<br>คุณจะพบค่า <code>tag</code> ที่ระบุในออบเจ็กต์ <code>data</code> ของการตอบกลับ"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>URL สำหรับส่งผลลัพธ์ของงาน</em><br>ฟิลด์ที่ไม่บังคับ<br>เมื่องานเสร็จสิ้น เราจะส่งคำขอ POST พร้อมผลลัพธ์ที่บีบอัดในรูปแบบ <code>gzip</code> ไปยัง <code>postback_url</code> ที่ระบุ<br>ใช้สตริง ‘$id’ เป็นตัวแปร <code>$id</code> และ ‘$tag’ เป็นตัวแปร <code>$tag</code> ที่เข้ารหัส URL เราจะกำหนดค่าที่จำเป็นก่อนส่งคำขอ<br>ตัวอย่าง:<br><code>http://your-server.com/postbackscript?id=$id</code><br><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><br><strong>หมายเหตุ:</strong> อักขระพิเศษใน <code>postback_url</code> จะถูกเข้ารหัส URL; <br>กล่าวคือ อักขระ <code>#</code> จะถูกเข้ารหัสเป็น <code>%23</code>"
          },
          "postback_data": {
            "type": "string",
            "description": "<em>ชนิดข้อมูลของ postback_url</em><br><strong>ฟิลด์ที่จำเป็นหากระบุ <code>postback_url</code></strong><br>สอดคล้องกับชนิดข้อมูลที่จะส่งไปยังเซิร์ฟเวอร์ของคุณ<br>ค่าที่เป็นไปได้:<br><code>advanced</code>, <code>html</code>"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>URL แจ้งเตือนของงานที่เสร็จสิ้น</em><br>ฟิลด์ที่ไม่บังคับ<br>เมื่องานเสร็จสิ้น เราจะแจ้งคุณด้วยคำขอ GET ที่ส่งไปยัง URL ที่ระบุ<br>ใช้สตริง ‘$id’ เป็นตัวแปร <code>$id</code> และ ‘$tag’ เป็นตัวแปร <code>$tag</code> ที่เข้ารหัส URL เราจะกำหนดค่าที่จำเป็นก่อนส่งคำขอ<br>ตัวอย่าง:<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>หมายเหตุ:</strong> อักขระพิเศษใน <code>pingback_url</code> จะถูกเข้ารหัส URL; <br>กล่าวคือ อักขระ <code>#</code> จะถูกเข้ารหัสเป็น <code>%23</code>"
          }
        },
        "example": [
          {
            "keyword": "vpn",
            "location_code": 2840,
            "language_code": "en",
            "depth": 30
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keyword": "vpn",
      "location_code": 2840,
      "language_code": "en",
      "depth": 30
    }
  ]
}
```

## Responses

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

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

**application/json**

Schema: object | null

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

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AppDataGoogleAppSearchesTaskPostResponseInfo

`#/components/schemas/Response36Afe1097B20_AppDataGoogleAppSearchesTaskPostResponseInfo`

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

### Response36Afe1097B20_AppDataGoogleAppSearchesTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_AppDataGoogleAppSearchesTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>อาร์เรย์ของผลลัพธ์</em><br>ในกรณีนี้ ค่าจะเป็น <code>null</code>"
        }
      }
    }
  ]
}
```

### 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"
    }
  }
}
```
