---
title: Cách Index nhiều URL bằng kết nối Google API như thế nào?
description: "## **1. Cài đặt website** Vào API và Services, Chọn credentials: https://console.cloud.google.com/ ![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-1.jpg) Create credentials --> Service account ![Kết nối API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-2.jpg) Nhập bất kỳ như trên. Sau đó ấn **Create and Continue** ![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-3.jpg) Phần Grant this service…"
url: "https://seoplus.com.vn/faq/cach-index-nhieu-url-bang-ket-noi-google-api-voi-website/"
updated: "2023-05-12"
category: INDEX WEBSITE
---

# Cách Index nhiều URL bằng kết nối Google API như thế nào?

## **1. Cài đặt website**

Vào API và Services, Chọn credentials: https://console.cloud.google.com/

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-1.jpg)

Create credentials --> Service account

![Kết nối API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-2.jpg)

Nhập bất kỳ như trên. Sau đó ấn **Create and Continue**

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-3.jpg)

Phần Grant this service account access to project (optional), chọn OWNER. Phần Grant users access to this service account (optional), bạn chọn DONE.

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-4.jpg)

Sau khi ấn DONE thì nó sẽ ra như sau:

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-5.jpg)

## **2. Tạo API Key (JSON)**

Click vào tài khoản Service Accounts

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-6.jpg)

Sau đó, bạn chuyển qua tab KEY. Bạn chọn nút ADD KEY, nhấn Create new key, chọn mã JSON.

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-7.jpg)

![API Services](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-8.jpg)

Và ta có key:

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-9.jpg)

## **3. Cấp quyền webmaster tools**

Sau khi hoàn thành các bước trên, bước tiếp theo: Cấp quyền quản trị cho Google index API

- Vào WMT chọn Cài đặt:

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-10.jpg)

- Nhấp vào Người dùng và Quyền: Click vào dấu 3 chấm, rồi chọn: Quản lý chủ sở hữu sản phẩm

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-11.jpg)

Sau đó chọn: Thêm chủ sở hữu

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-12.jpg)

Chọn ID này trong Google API ở phần " **Permissions**" và dán vào địa chỉ sở hữu đã được xác minh: Như hình ở trên ==> Sau đó ấn " Tiếp tục "

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-13.jpg)

Kết quả sẽ như sau:

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-14.jpg)

Và trong WMT sẽ có thêm người dùng mới:

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-15.jpg)

## 4. Kết nối API vào website

Bước tiếp theo: Cấu hình instant indexing trong Plugin: Cài plugin: Instant Indexing for Google ==> Sau khi cài đặt plugin xong thì click vào phần cài đặt " Instant indexing" ==> Giao diện sẽ hiện ra và bạn chọn vào tab " Google API Setting ".

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-16.jpg)

Và chèn mã JSON vào trong plugin index như hình trên, mã JSON ở bước bạn tạo API sau khi tạo nó sẽ có 1 file tải về, nó chính là mã JSON. Cài xong ấn “ Lưu thay đổi”. Như vậy là xong.

Bây giờ, nếu các bạn muốn index 1list [url](https://seoplus.com.vn/slug-la-gi/) thì vào tab “ Console” và gắn URL vào “ Instant indexing”. Ở mục Action chọn “ indexNow: Submit URL” à Rồi ấn “ Send to API”.

![google api](https://seoplus.com.vn/wp-content/uploads/2023/05/api-services-17.jpg)

 
