API Reference
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu tham khảo API này được sắp xếp theo loại tài nguyên. Mỗi loại tài nguyên có một hoặc nhiều cách biểu diễn dữ liệu và một hoặc nhiều phương thức.
Pagespeedapi
Để biết chi tiết về Tài nguyên Pagespeedapi, hãy xem trang trình bày về tài nguyên.
Phương thức |
Yêu cầu HTTP |
Nội dung mô tả |
Các URI tương ứng so với https://www.googleapis.com/pagespeedonline/v4 hoặc https://www.googleapis.cn/pagespeedonline/v4 cho người dùng ở Trung Quốc. |
runpagespeed (Tốc độ trang chạy)
|
GET /runPagespeed
|
Chạy phân tích PageSpeed trên trang tại URL đã chỉ định và trả về điểm PageSpeed, danh sách các đề xuất để giúp trang đó hoạt động nhanh hơn và các thông tin khác.
Tham số truy vấn bắt buộc:
url |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["The API reference is structured by resource type, with each type having various data representations and methods."],["Pagespeedapi resource details are available on a dedicated resource representation page."],["The `runpagespeed` method allows analysis of a web page's performance via the `GET` request, providing scores, suggestions, and other relevant data, requiring the `url` as a query parameter."],["The API can be accessed through specific URIs for global users and separate ones for users in China."]]],["The document outlines the PageSpeed API, structured by resource type, each with data representations and methods. The primary method is `runpagespeed`, accessed via a `GET` request to `/runPagespeed`. This method analyzes a specified URL's page speed, returning scores, suggestions for improvement, and related data. The `url` is the only required query parameter for this method. Base URIs are also provided for different geographic locations.\n"]]