链接
GET https://tit.lc/api/links/
curl --request GET \
--url 'https://tit.lc/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tit.lc/api/links/' \
--header 'Authorization: Bearer {api_key}' \
| 参数 | 详情 | 描述 |
|---|---|---|
| page | 可选 整数 | 您想要获取结果的页码。默认为 1。 |
| results_per_page | 可选 整数 | 您希望每页显示多少结果。允许的值为:10 , 25 , 50 , 100 , 250 , 500 , 1000。默认为 25。 |
{
"data": [
{
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-10-25 16:26:28",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://tit.lc/api/links?page=1",
"last": "https://tit.lc/api/links?page=1",
"next": null,
"prev": null,
"self": "https://tit.lc/api/links?page=1"
}
}
GET https://tit.lc/api/links/{link_id}
curl --request GET \
--url 'https://tit.lc/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tit.lc/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-10-25 16:26:28",
}
}
POST https://tit.lc/api/links
| 参数 | 详情 | 描述 |
|---|---|---|
| type | 可选 字符串 | link |
| location_url | 必需 字符串 | 目标 URL。在以下情况下可用:is_bulk = 0 |
| location_urls | 必需 字符串 | 目标 URL。在以下情况下可用:is_bulk = 1 |
| url | 可选 字符串 | 生成链接的 URL 别名。留空则随机生成。在以下情况下可用:is_bulk = 0 |
| is_bulk | 可选 布尔值 | |
| domain_id | 可选 整数 | - |
| project_id | 可选 整数 | - |
| pixels_ids | 可选 数组 整数 | - |
| email_reports | 可选 数组 | 通知处理器 ID |
| schedule | 可选 布尔值 | - |
| start_date | 可选 字符串 | 在以下情况下可用:schedule = true |
| end_date | 可选 字符串 | 在以下情况下可用:schedule = true |
| clicks_limit | 可选 整数 | - |
| expiration_url | 可选 字符串 | - |
| sensitive_content | 可选 布尔值 | - |
| http_status_code | 可选 整数 | 允许的值:301, 302, 307, 308 |
| app_linking_is_enabled | 可选 布尔值 | - |
| cloaking_is_enabled | 可选 布尔值 | - |
| cloaking_title | 可选 字符串 | - |
| cloaking_meta_description | 可选 字符串 | - |
| cloaking_custom_js | 可选 字符串 | - |
| cloaking_favicon | 可选 文件 | - |
| cloaking_opengraph | 可选 文件 | - |
| password | 可选 字符串 | - |
| forward_query_parameters_is_enabled | 可选 布尔值 | - |
| utm_source | 可选 字符串 | - |
| utm_medium | 可选 字符串 | - |
| utm_campaign | 可选 字符串 | - |
| targeting_type | 可选 字符串 | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
| targeting_continent_code_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = continent_code |
| targeting_continent_code_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = continent_code |
| targeting_country_code_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = country_code |
| targeting_country_code_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = country_code |
| targeting_city_name_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = city_name |
| targeting_city_name_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = city_name |
| targeting_device_type_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = device_type |
| targeting_device_type_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = device_type |
| targeting_browser_language_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_language |
| targeting_browser_language_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_language |
| targeting_rotation_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = rotation |
| targeting_rotation_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = rotation |
| targeting_os_name_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = os_name |
| targeting_os_name_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = os_name |
| targeting_browser_name_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_name |
| targeting_browser_name_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_name |
curl --request POST \
--url 'https://tit.lc/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://tit.lc/' \
--url 'https://tit.lc/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://tit.lc/' \
{
"data": {
"id": 1
}
}
POST https://tit.lc/api/links/{link_id}
| 参数 | 详情 | 描述 |
|---|---|---|
| location_url | 可选 字符串 | 目标 URL。 |
| url | 可选 字符串 | 生成链接的 URL 别名。留空则随机生成。 |
| domain_id | 可选 整数 | - |
| project_id | 可选 整数 | - |
| pixels_ids | 可选 数组 整数 | - |
| email_reports | 可选 数组 | 通知处理器 ID |
| schedule | 可选 布尔值 | - |
| start_date | 可选 字符串 | 在以下情况下可用:schedule = true |
| end_date | 可选 字符串 | 在以下情况下可用:schedule = true |
| clicks_limit | 可选 整数 | - |
| expiration_url | 可选 字符串 | - |
| sensitive_content | 可选 布尔值 | - |
| http_status_code | 可选 整数 | 允许的值:301, 302, 307, 308 |
| app_linking_is_enabled | 可选 布尔值 | - |
| cloaking_is_enabled | 可选 布尔值 | - |
| cloaking_title | 可选 字符串 | - |
| cloaking_meta_description | 可选 字符串 | - |
| cloaking_custom_js | 可选 字符串 | - |
| cloaking_favicon | 可选 文件 | - |
| cloaking_opengraph | 可选 文件 | - |
| password | 可选 字符串 | - |
| forward_query_parameters_is_enabled | 可选 布尔值 | - |
| utm_source | 可选 字符串 | - |
| utm_medium | 可选 字符串 | - |
| utm_campaign | 可选 字符串 | - |
| targeting_type | 可选 字符串 | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
| targeting_continent_code_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = continent_code |
| targeting_continent_code_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = continent_code |
| targeting_country_code_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = country_code |
| targeting_country_code_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = country_code |
| targeting_city_name_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = city_name |
| targeting_city_name_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = city_name |
| targeting_device_type_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = device_type |
| targeting_device_type_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = device_type |
| targeting_browser_language_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_language |
| targeting_browser_language_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_language |
| targeting_rotation_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = rotation |
| targeting_rotation_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = rotation |
| targeting_os_name_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = os_name |
| targeting_os_name_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = os_name |
| targeting_browser_name_key[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_name |
| targeting_browser_name_value[index] | 可选 字符串 | 在以下情况下可用:targeting_type = browser_name |
curl --request POST \
--url 'https://tit.lc/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://tit.lc/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://tit.lc/api/links/{link_id}
curl --request DELETE \
--url 'https://tit.lc/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tit.lc/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \