网站
GET https://analytics.noiq.us/api/websites/
curl --request GET \
--url 'https://analytics.noiq.us/api/websites/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://analytics.noiq.us/api/websites/' \
--header 'Authorization: Bearer {api_key}' \
| 参数 | 详情 | 描述 |
|---|---|---|
| page | 可选 整数 | 您想要结果的页码。默认为 1。
|
| results_per_page | 可选 整数 | 每页显示多少条结果?允许的值:10 , 25 , 50 , 100 , 250 , 500 , 1000。默认为 25。
|
{
"data": [
{
"id": 1,
"pixel_key": "1234567890123456",
"name": "Localhost",
"scheme": "https://",
"host": "example.com",
"path": "/",
"tracking_type": "normal",
"excluded_ips": "",
"events_children_is_enabled": false,
"sessions_replays_is_enabled": false,
"email_reports_is_enabled": false,
"email_reports_last_date": "2020-06-23 19:01:22",
"bot_exclusion_is_enabled": true,
"query_parameters_tracking_is_enabled": true,
"ip_storage_is_enabled": false,
"public_statistics_is_enabled": false,
"public_statistics_password": false,
"is_enabled": true,
"datetime": "2025-12-09 00:02:09"
"last_datetime": null
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://analytics.noiq.us/api/websites?&page=1",
"last": "https://analytics.noiq.us/api/websites?&page=1",
"next": null,
"prev": null,
"self": "https://analytics.noiq.us/api/websites?&page=1"
}
}
GET https://analytics.noiq.us/api/websites/{website_id}
curl --request GET \
--url 'https://analytics.noiq.us/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://analytics.noiq.us/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"pixel_key": "1234567890123456",
"name": "Localhost",
"scheme": "https://",
"host": "example.com",
"path": "/",
"tracking_type": "normal",
"excluded_ips": "",
"events_children_is_enabled": false,
"sessions_replays_is_enabled": false,
"email_reports_is_enabled": false,
"email_reports_last_date": "2020-06-23 19:01:22",
"bot_exclusion_is_enabled": true,
"query_parameters_tracking_is_enabled": true,
"ip_storage_is_enabled": false,
"public_statistics_is_enabled": false,
"public_statistics_password": false,
"is_enabled": true,
"datetime": "2025-12-09 00:02:09"
"last_datetime": null
}
}
POST https://analytics.noiq.us/api/websites
| 参数 | 详情 | 描述 |
|---|---|---|
| name | 必填 字符串 | - |
| scheme | 可选 字符串 | 允许的值:http://, https://
|
| host | 必填 字符串 | 网站主机和路径。例如:`https://example.com/path`。 |
| tracking_type | 可选 字符串 | 允许的值:lightweight, normal
|
| excluded_ips | 可选 字符串 | 将IP排除在跟踪之外。输入逗号分隔的值。 |
| events_children_is_enabled | 可选 布尔值 | 追踪访客事件(鼠标点击、大小调整、滚动、表单提交)。允许的值为:0 或 1。仅适用于normal追踪类型。
|
| sessions_replays_is_enabled | 可选 布尔值 | 会话回放。允许的值为:0 或 1。仅适用于 normal 追踪类型。
|
| email_reports_is_enabled | 可选 布尔值 | 邮件报告。允许的值为:0 或 1。
|
| ip_storage_is_enabled | 可选 布尔值 | 可用时间:tracking_type = normal |
| query_parameters_tracking_is_enabled | 可选 布尔值 | - |
| bot_exclusion_is_enabled | 可选 布尔值 | - |
| public_statistics_is_enabled | 可选 布尔值 | - |
| public_statistics_password | 可选 字符串 | - |
| is_enabled | 可选 布尔值 | - |
curl --request POST \
--url 'https://analytics.noiq.us/api/websites' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=website.com' \
--form 'name=Example' \
--url 'https://analytics.noiq.us/api/websites' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=website.com' \
--form 'name=Example' \
{
"data": {
"id": 1
}
}
POST https://analytics.noiq.us/api/websites/{website_id}
| 参数 | 详情 | 描述 |
|---|---|---|
| name | 可选 字符串 | - |
| scheme | 可选 字符串 | 允许的值:http://, https://
|
| host | 可选 字符串 | 网站主机和路径。例如:`https://example.com/path`。 |
| excluded_ips | 可选 字符串 | 将IP排除在跟踪之外。输入逗号分隔的值。 |
| events_children_is_enabled | 可选 布尔值 | 追踪访客事件(鼠标点击、大小调整、滚动、表单提交)。允许的值为:0 或 1。仅适用于normal追踪类型。
|
| sessions_replays_is_enabled | 可选 布尔值 | 会话回放。允许的值为:0 或 1。仅适用于 normal 追踪类型。
|
| email_reports_is_enabled | 可选 布尔值 | 邮件报告。允许的值为:0 或 1。
|
| ip_storage_is_enabled | 可选 布尔值 | 可用时间:tracking_type = normal |
| query_parameters_tracking_is_enabled | 可选 布尔值 | - |
| bot_exclusion_is_enabled | 可选 布尔值 | - |
| public_statistics_is_enabled | 可选 布尔值 | - |
| public_statistics_password | 可选 字符串 | - |
| is_enabled | 可选 布尔值 | - |
curl --request POST \
--url 'https://analytics.noiq.us/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'is_enabled=0' \
--url 'https://analytics.noiq.us/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://analytics.noiq.us/api/websites/{website_id}
curl --request DELETE \
--url 'https://analytics.noiq.us/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://analytics.noiq.us/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \