Các báo cáo

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
Danh sách

API endpoint:

GET
http://seo.mathtasy.com/api/v1/reports

Request example:

curl --location --request GET 'http://seo.mathtasy.com/api/v1/reports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Tham số
Loại
Mô tả
search
tùy chọn string
Truy vấn tìm kiếm.
search_by
tùy chọn string
Search by. Possible values are: url cho URL. Defaults to: url.
project
tùy chọn string
Tên dự án.
result
tùy chọn string
The report result. Possible values are: good cho Tốt, decent cho Thường, bad cho Xấu.
sort_by
tùy chọn string
Sắp xếp theo. Possible values are: id cho Ngày tạo, generated_at cho Ngày khởi tạo, url cho URL, result cho Kết quả. Defaults to: id.
sort
tùy chọn string
Sắp xếp. Possible values are: desc cho Tăng, asc cho Giảm. Defaults to: desc.
per_page
tùy chọn int
Số kết quả mỗi trang. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Hiện

API endpoint:

GET
http://seo.mathtasy.com/api/v1/reports/{id}

Request example:

curl --location --request GET 'http://seo.mathtasy.com/api/v1/reports/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
http://seo.mathtasy.com/api/v1/reports

Request example:

curl --location --request POST 'http://seo.mathtasy.com/api/v1/reports' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Tham số
Loại
Mô tả
url
bắt buộc string
The webpage's URL.
privacy
tùy chọn integer
Report page privacy. Possible values are: 0 cho Công khai, 1 cho Riêng tư, 2 cho Password. Defaults to: 1.
password
tùy chọn string
The password for the report page. Only works with privacy set to 2.
Cập nhật

API endpoint:

PUT PATCH
http://seo.mathtasy.com/api/v1/reports/{id}

Request example:

curl --location --request PUT 'http://seo.mathtasy.com/api/v1/reports/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Tham số
Loại
Mô tả
privacy
tùy chọn integer
Report page privacy. Possible values are: 0 cho Công khai, 1 cho Riêng tư, 2 cho Password.
password
tùy chọn string
The password for the report page. Only works with privacy set to 2.
results
tùy chọn integer
Update the report results. Possible values are: 0 cho Không, 1 cho . Defaults to: 0.
Xóa

API endpoint:

DELETE
http://seo.mathtasy.com/api/v1/reports/{id}

Request example:

curl --location --request DELETE 'http://seo.mathtasy.com/api/v1/reports/{id}' \
--header 'Authorization: Bearer {api_key}'