Trang web
GET https://seo.cochaykhong.com/api/websites/
curl --request GET \
--url 'https://seo.cochaykhong.com/api/websites/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://seo.cochaykhong.com/api/websites/' \
--header 'Authorization: Bearer {api_key}' \
Tham số | Chi tiết | Mô tả |
---|---|---|
page | Tùy chọn Số nguyên | Số trang mà bạn muốn nhận kết quả. Mặc định là 1 . |
results_per_page | Tùy chọn Số nguyên | Bạn muốn bao nhiêu kết quả trên mỗi trang. Các giá trị cho phép là: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Mặc định là 25 . |
{
"data": [
{
"id": 1,
"user_id": 1,
"domain_id": 0,
"scheme": "https",
"host": "example.com",
"score": 100,
"total_audits": 10,
"total_archived_audits": 5,
"total_issues": 0,
"major_issues": 0,
"moderate_issues": 0,
"minor_issues": 0,
"last_audit_datetime": "2024-11-10 02:26:19",
"datetime": "2025-09-11 01:16:12"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://seo.cochaykhong.com/api/websites?&page=1",
"last": "https://seo.cochaykhong.com/api/websites?&page=1",
"next": null,
"prev": null,
"self": "https://seo.cochaykhong.com/api/websites?&page=1"
}
}
GET https://seo.cochaykhong.com/api/websites/{website_id}
curl --request GET \
--url 'https://seo.cochaykhong.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://seo.cochaykhong.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"domain_id": 0,
"scheme": "https",
"host": "example.com",
"score": 100,
"total_audits": 10,
"total_archived_audits": 5,
"total_issues": 0,
"major_issues": 0,
"moderate_issues": 0,
"minor_issues": 0,
"last_audit_datetime": "2024-11-10 02:26:19",
"datetime": "2025-09-11 01:16:12"
}
}
POST https://seo.cochaykhong.com/api/websites/{website_id}
Tham số | Chi tiết | Mô tả |
---|---|---|
domain_id | Tùy chọn Số nguyên | - |
password | Tùy chọn Chuỗi | - |
is_public | Tùy chọn Boolean | - |
audit_check_interval | Tùy chọn Số nguyên | Giá trị cho phép: {empty_string} ,21600 , 43200 , 86400 , 259200 , 432000 , 864000 , 1296000 , 2592000 (giây) |
notifications | Tùy chọn Mảng | ID trình xử lý thông báo |
curl --request POST \
--url 'https://seo.cochaykhong.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_public=1' \
--form 'password=example' \
--url 'https://seo.cochaykhong.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_public=1' \
--form 'password=example' \
{
"data": {
"id": 1
}
}
DELETE https://seo.cochaykhong.com/api/websites/{website_id}
curl --request DELETE \
--url 'https://seo.cochaykhong.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://seo.cochaykhong.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \