# SERP Google News HTML Langsung

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/google/news/live/html`

**Tags:** DataForSEO

Mengembalikan hasil berita untuk kata kunci di Google, secara sinkron. Sumber halaman mentah alih-alih hasil terurai. Dibungkus dalam envelope DataForSEO: data di `tasks[0].result`, hasil di `tasks[0].status_code` - permintaan yang ditolak tetap mengembalikan HTTP 200.

### Referensi harga

- Metering: Biaya respons yang dilaporkan.
- Estimasi referensi per permintaan: USD 0.02.
- Pengali pelanggan referensi: 1.0. Jangan terapkan lagi pada jumlah pelanggan yang telah diselesaikan.

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

## Related links

- [artikel Pusat Bantuan](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [Harga](<https://dataforseo.com/pricing/serp/google-news-serp-api>)
- [pusat bantuan kami](<https://dataforseo.com/help-center/what-is-max-crawl-pages-and-how-does-it-work>)
- [dapatkan daftar parameter yang tersedia dan detail tambahan di sini](<https://dataforseo.com/what-are-google-search-parameters-and-how-to-use-them-with-serp-api.html>)

## 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": "<p><em>kata kunci</em><p><strong>field wajib</strong><p>Anda dapat menentukan <strong>hingga 700 karakter</strong> di field <code>keyword</code><p>semua %## akan didekode (karakter '+' akan didekode menjadi karakter spasi)<p>jika Anda perlu menggunakan karakter \"%\" untuk <code>keyword</code>, tentukan sebagai \"%25\";<p>jika Anda perlu menggunakan karakter “+” untuk <code>keyword</code>, tentukan sebagai “%2B”;<p>jika field ini berisi parameter seperti <em>'allinanchor:', 'allintext:', 'allintitle:', 'allinurl:', 'define:', 'filetype:', 'id:', 'inanchor:', 'info:', 'intext:', 'intitle:', 'inurl:', 'link:', 'related:', 'site:'</em>, <strong>biaya per tugas akan dikalikan 5</strong><p><strong>Catatan:</strong> kueri yang berisi parameter ‘cache:’ tidak didukung dan akan mengembalikan kesalahan validasi</p><br><p>pelajari lebih lanjut tentang aturan dan batasan field <code>keyword</code> dan <code>keywords</code> di API DataForSEO di artikel Pusat Bantuan ini</p>"
          },
          "location_code": {
            "type": "integer",
            "description": "<p><em>kode lokasi mesin pencari</em><p><strong>field wajib jika Anda tidak menentukan</strong> <code>location_name</code>&nbsp;atau <code>location_coordinate</code><p><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>location_name</code> atau <code>location_coordinate</code></strong><p>Anda dapat menerima daftar lokasi mesin pencari yang tersedia beserta <code>location_code</code> dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/serp/{{low_se_name}}/locations</code><p>contoh:<p><code class=\"long-string\">2840</code></p>"
          },
          "language_code": {
            "type": "string",
            "description": "<p><em>kode bahasa mesin pencari</em><p><strong>field wajib jika Anda tidak menentukan</strong> <code>language_name</code><p><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>language_name</code></strong><p>Anda dapat memperoleh daftar lokasi yang tersedia dari mesin pencari dengan <code>language_code</code>&nbsp;dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages</code><em><p></em>contoh:<em><p></em><code class=\"long-string\">en</code></p>"
          },
          "depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>kedalaman parsing</em><p>field opsional<p>jumlah hasil di SERP<p>nilai default: <code>10</code><p>nilai maksimum: <code>200</code></p><br><strong>Akun Anda akan ditagih per setiap SERP yang berisi hingga 10 hasil;</strong><p>Menetapkan kedalaman di atas 10 dapat mengakibatkan biaya tambahan jika mesin pencari mengembalikan lebih dari 10 hasil;<p>Jika kedalaman yang ditentukan lebih tinggi daripada jumlah hasil dalam respons, selisihnya akan dikembalikan secara otomatis ke saldo akun Anda<p>Biaya dapat dihitung di halaman Harga."
          },
          "location_name": {
            "type": "string",
            "description": "<p><em>nama lengkap lokasi mesin pencari</em><p><strong>field wajib jika Anda tidak menentukan</strong> <code>location_code</code> atau <code>location_coordinate</code><p><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>location_code</code> atau <code>location_coordinate</code></strong><p>Anda dapat memperoleh daftar lokasi yang tersedia dari mesin pencari beserta <code>location_name</code> dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/serp/{{low_se_name}}/locations</code><p>contoh:<p><code class=\"long-string\">London,England,United Kingdom</code></p>"
          },
          "language_name": {
            "type": "string",
            "description": "<p><em>nama lengkap bahasa mesin pencari</em><p><strong>field wajib jika Anda tidak menentukan</strong> <code>language_code</code><p><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>language_code</code></strong><p>Anda dapat memperoleh daftar lokasi yang tersedia dari mesin pencari dengan <code>language_name</code> dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages</code><p>contoh:<p><code class=\"long-string\">English</code></p>"
          },
          "os": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>sistem operasi perangkat</em><p>field opsional<p><strong>perhatikan bahwa API ini hanya menyediakan hasil untuk desktop</strong><p>pilih salah satu nilai berikut: <code>windows</code>, <code>macos</code><p>nilai default: <code>windows</code></p>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>pengenal tugas yang ditentukan pengguna</em><p>field opsional<p><em>batas karakter adalah 255</em><p>Anda dapat menggunakan parameter ini untuk mengidentifikasi tugas dan mencocokkannya dengan hasil<p>Anda akan menemukan nilai <code>tag</code> yang ditentukan di objek <code>data</code> pada respons</p>"
          },
          "max_crawl_pages": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>batas crawl halaman</em><p>field opsional<p>jumlah halaman hasil pencarian untuk di-crawl<p>nilai maksimum: <code>100</code><p><strong>Catatan:</strong> parameter <code>max_crawl_pages</code> dan <code>depth</code> saling melengkapi;<p>pelajari selengkapnya di pusat bantuan kami</p>"
          },
          "search_param": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>parameter tambahan dari kueri pencarian</em><p>field opsional<p>dapatkan daftar parameter yang tersedia dan detail tambahan di sini</p>"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>URL langsung dari kueri pencarian</em><p>field opsional<p>Anda dapat menentukan URL langsung dan kami akan mengurainya menjadi field yang diperlukan. Perhatikan bahwa metode ini paling sulit ditangani oleh API kami dan juga mengharuskan Anda menentukan bahasa dan lokasi dengan benar di URL. Dalam sebagian besar kasus, kami tidak menyarankan metode ini.<p>contoh:<p><code class=\"long-string\">https://www.google.co.uk/search?q=%20rank%20tracker%20api&amp;hl=en&amp;gl=GB&amp;uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS</code></p>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<p><em>koordinat GPS suatu lokasi</em><p><strong>field wajib jika Anda tidak menentukan</strong> <code>location_name</code>&nbsp;atau <code>location_code</code><p><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>location_name</code> atau <code>location_code</code></strong><p>parameter <code>location_coordinate</code> harus ditentukan dalam format <em>\"latitude,longitude,radius\"</em><p>jumlah maksimum digit desimal untuk <em>\"latitude\"</em> dan <em>\"longitude\"</em>: 7<p>nilai minimum untuk <em>\"radius\"</em>: 199.9 (mm)<p>nilai maksimum untuk <em>\"radius\"</em>: 199999 (mm)<p>contoh:<p><code class=\"long-string\">53.476225,-2.243572,200</code></p>"
          },
          "se_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>domain mesin pencari</em><p>field opsional<p>kami memilih domain mesin pencari yang relevan secara otomatis sesuai lokasi dan bahasa yang Anda tentukan<p>namun, Anda dapat menetapkan domain mesin pencari kustom di field ini<p>contoh:<p><code><em>google.co.uk</em></code>, <code><em>google.com.au</em></code>, <code><em>google.de</em></code>, dll.</p>"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "keyword": "albert einstein"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "keyword": "albert einstein"
    }
  ]
}
```

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

### 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_HtmlItemInfo

`#/components/schemas/Response36Afe1097B20_HtmlItemInfo`

```json
{
  "type": "object",
  "properties": {
    "page": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<i>nomor urut halaman HTML yang dikembalikan</i>"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tanggal dan waktu halaman HTML dipindai</em><br>dalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>contoh:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "html": {
      "type": [
        "string",
        "null"
      ],
      "description": "<i>halaman</i> <i>HTML</i>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleNewsLiveHtmlResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleNewsLiveHtmlResponseInfo`

```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_SerpGoogleNewsLiveHtmlTaskInfo"
              }
            ]
          },
          "description": "<em>array tugas</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpGoogleNewsLiveHtmlResultInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleNewsLiveHtmlResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kata kunci yang diterima dalam array POST<br></em><strong>kata kunci dikembalikan dengan %## yang didekode (karakter plus '+' akan didekode menjadi karakter spasi)</strong>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>domain mesin pencari dalam array POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>kode lokasi dalam array POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kode bahasa dalam array POST</em>"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tanggal dan waktu saat hasil diterima</em><br>dalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>misalnya:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>jumlah hasil yang dikembalikan dalam array <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_HtmlItemInfo"
          }
        ]
      },
      "description": "<em>elemen hasil pencarian yang ditemukan di SERP</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleNewsLiveHtmlTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleNewsLiveHtmlTaskInfo`

```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_SerpGoogleNewsLiveHtmlResultInfo"
              }
            ]
          },
          "description": "<em>array hasil</em>"
        }
      }
    }
  ]
}
```
