链接
API 端点
https://clck.plus/api/v1/links
请求示例
curl --location --request GET 'https://clck.plus/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
search
search_by
title, 别名 为 alias, 网址 为 url。 默认值:title。
status
0, 有效 为 1, 已过期 为 2, 已禁用 为 3。 默认值:0。
space_id
domain_id
pixel_id
sort_by
id, 点击量 为 clicks, 标题 为 title, 别名 为 alias, 网址 为 url。 默认值:id。
sort
desc, 升序 为 asc。 默认值:desc。
per_page
10, 25, 50, 100。 默认值:50。
API 端点
https://clck.plus/api/v1/links/{id}
请求示例
curl --location --request GET 'https://clck.plus/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API 端点
https://clck.plus/api/v1/links
请求示例
curl --location --request POST 'https://clck.plus/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
参数
url
domain_id
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0, 是 为 1。 默认值:0。
privacy
0, 私密 为 1, 密码 为 2。 默认值:0。
password
privacy 设置为 2 时有效。
active_period_start_at
Y-m-dTH:i:s。
active_period_end_at
Y-m-dTH:i:s。
clicks_limit
expiration_url
targets_type
continents, Countries 为 countries, Operating systems 为 operating_systems, Browsers 为 browsers, Languages 为 languages, Devices 为 devices, Rotations 为 rotations。
targets[index][key]
targets_type=country 的值必须采用 ISO 3166-1 alpha-2 格式。
targets_type=operating_systems 的可选值:iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS。
targets_type=browsers 的可选值:Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho。
targets_type=devices 的可选值:Desktop, Mobile, Tablet, Watch, Television。
targets_type=languages 的值必须采用 ISO 639-1 alpha-2 格式。
targets_type=continents 的可选值:Africa 为 AF, Antarctica 为 AN, Asia 为 AS, Europe 为 EU, North America 为 NA, Oceania 为 OC, South America 为 SA。
targets[index][value]
API 端点
https://clck.plus/api/v1/links/{id}
请求示例
curl --location --request PUT 'https://clck.plus/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
参数
url
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0, 是 为 1。
privacy
0, 私密 为 1, 密码 为 2。
password
privacy 设置为 2 时有效。
active_period_start_at
Y-m-dTH:i:s。
active_period_end_at
Y-m-dTH:i:s。
clicks_limit
expiration_url
targets_type
continents, Countries 为 countries, Operating systems 为 operating_systems, Browsers 为 browsers, Languages 为 languages, Devices 为 devices, Rotations 为 rotations。
targets[index][key]
targets_type=country 的值必须采用 ISO 3166-1 alpha-2 格式。
targets_type=operating_systems 的可选值:iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS。
targets_type=browsers 的可选值:Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho。
targets_type=devices 的可选值:Desktop, Mobile, Tablet, Watch, Television。
targets_type=languages 的值必须采用 ISO 639-1 alpha-2 格式。
targets_type=continents 的可选值:Africa 为 AF, Antarctica 为 AN, Asia 为 AS, Europe 为 EU, North America 为 NA, Oceania 为 OC, South America 为 SA。
targets[index][value]
API 端点
https://clck.plus/api/v1/links/{id}
请求示例
curl --location --request DELETE 'https://clck.plus/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'