API 端点
https://www.onpageseo.top/api/v1/websites
请求示例
curl --location --request GET 'https://www.onpageseo.top/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameters
search
search_by
domain。 默认为:domain。
sort_by
id, 域名 的 domain, 分数 的 reports_avg_score, 报告 的 reports_count。 默认为:id。
sort
desc, 升序 的 asc。 默认为:desc。
per_page
10, 25, 50, 100。 默认为:10。
API 端点
https://www.onpageseo.top/api/v1/websites/{id}
请求示例
curl --location --request GET 'https://www.onpageseo.top/api/v1/websites/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API 端点
https://www.onpageseo.top/api/v1/websites/{id}
请求示例
curl --location --request PUT 'https://www.onpageseo.top/api/v1/websites/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Parameters
privacy
0, 私有 的 1, 密码 的 2。
password
privacy 字段设置为 2 时有效。
API 端点
https://www.onpageseo.top/api/v1/websites/{id}
请求示例
curl --location --request DELETE 'https://www.onpageseo.top/api/v1/websites/{id}' \ --header 'Authorization: Bearer {api_key}'