API端点:
https://kdwz.cn/api/v1/links
请求示例:
curl --location --request GET 'https://kdwz.cn/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_bytitle, 短链的alias, URL的url。 默认值为titles。status0, 激活的1, 已到期的2, 禁用的3。 默认值为0s。space_iddomain_idpixel_idsort_byid, 点击次数的clicks, 标题的title, 短链的alias, URL的url。 默认值为ids。sortdesc, 上升的asc。 默认值为descs。per_page10, 25, 50, 100。 默认值为25s。API端点:
https://kdwz.cn/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://kdwz.cn/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://kdwz.cn/api/v1/links
请求示例:
curl --location --request POST 'https://kdwz.cn/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
urldomain_idaliasspace_idpixel_ids[]redirect_passwordsensitive_content0, 是的的1。 默认值为0s。privacy0, 私人的1, 密码的2。 默认值为0s。passwordprivacy field set to 2.active_period_start_atY-m-d H:i format.active_period_end_atY-m-d H:i format.clicks_limitexpiration_urltargets_typecontinents, Countries的countries, Operating systems的operating_systems, Browsers的browsers, Languages的languages, Devices的devices, Rotations的rotations。targets[index][key]targets_type=country, the value must be in ISO 3166-1 alpha-2 format.targets_type=operating_systems, the possible values are iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.targets_type=browsers, the possible values are: 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, the possible values are: Desktop, Mobile, Tablet, Watch, Television.targets_type=languages, the value must be in ISO 639-1 alpha-2 format.targets_type=continents, the possible values are: Africa的AF, Antarctica的AN, Asia的AS, Europe的EU, North America的NA, Oceania的OC, South America的SA.targets[index][value]API端点:
https://kdwz.cn/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://kdwz.cn/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
urlaliasspace_idpixel_ids[]redirect_passwordsensitive_content0, 是的的1。privacy0, 私人的1, 密码的2。passwordprivacy field set to 2.active_period_start_atY-m-d H:i format.active_period_end_atY-m-d H:i format.clicks_limitexpiration_urltargets_typecontinents, Countries的countries, Operating systems的operating_systems, Browsers的browsers, Languages的languages, Devices的devices, Rotations的rotations。targets[index][key]targets_type=country, the value must be in ISO 3166-1 alpha-2 format.targets_type=operating_systems, the possible values are iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.targets_type=browsers, the possible values are: 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, the possible values are: Desktop, Mobile, Tablet, Watch, Television.targets_type=languages, the value must be in ISO 639-1 alpha-2 format.targets_type=continents, the possible values are: Africa的AF, Antarctica的AN, Asia的AS, Europe的EU, North America的NA, Oceania的OC, South America的SA.targets[index][value]API端点:
https://kdwz.cn/api/v1/links/{id}
请求示例:
curl --location --request DELETE 'https://kdwz.cn/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'