# Developers
**Source:** https://th.urlkai.com/de/developers
**Language:** Thai

---

ไอน์ตีก 

Authentifizierung 

เบเวอร์ตุงส์ลิมิท 

Antwortbehandlung 

###### Benutzerdefinierter Splash

รายการ Custom Splash

###### CTA-ซ้อนทับ

รายการซ้อนทับ CTA

###### แฟ้ม

รายการไฟล์ 

อัปโหลดไฟล์

###### Kampagnen

รายการแคมเปญ 

Erstellen Sie eine Kampagne 

กําหนดลิงก์ไปยังแคมเปญ 

Kampagne aktualisieren 

ลบแคมเปญ

###### คาแนเล

รายการช่อง 

รายการช่อง 

Erstellen Sie einen Kanal 

กําหนดรายการให้กับช่องทาง 

Kanal aktualisieren 

ลบช่อง

###### คอนโต

Konto erhalten 

Account aktualisieren

###### Markendomänen

แสดงรายการโดเมนที่มีตราสินค้า 

สร้างโดเมนที่มีตราสินค้า 

Domäne aktualisieren 

ลบโดเมน

###### พิก เซล

รายการพิกเซล 

สร้างพิกเซล 

Pixel aktualisieren 

ลบพิกเซล

###### รหัส QR

แสดงรายการรหัส QR 

Holen Sie sich einen einzigen QR-Code 

Erstellen Sie einen QR-Code 

อัปเดตรหัส QR 

รหัส QR

###### Verknüpfungen

ลิงค์รายการ 

รับลิงก์เดียว 

Einen Link kürzen 

ลิงค์ aktualisieren 

ลิงค์ löschen

#### API-Referenz für Entwickler

###### ไอน์ตีก

Damit Anfragen vom System verarbeitet werden können, ist ein API-Schlüssel erforderlich. Sobald sich ein Benutzer registriert, wird automatisch ein API-Schlüssel für diesen Benutzer generiert. Der API-Schlüssel muss mit jeder Anfrage gesendet werden (siehe vollständiges Beispiel unten). Wenn der API-Schlüssel nicht gesendet wird oder abgelaufen ist, wird ein Fehler angezeigt. Bitte achten Sie darauf, Ihren API-Schlüssel geheim zu halten, um Missbrauch zu verhindern.

###### Authentifizierung

Um sich beim API-System zu authentifizieren, müssen Sie bei jeder Anfrage Ihren API-Schlüssel als Autorisierungstoken senden. Unten sehen Sie einen Beispielcode.

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/account' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();
curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/account",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
));

$response = curl_exec($curl);
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/account',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    ร่างกาย: ''
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/account"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
  'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
  'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### เบเวอร์ตุงส์ลิมิท

Unsere API verfügt über einen Ratenbegrenzer zum Schutz vor Anfragenspitzen, um ihre Stabilität zu maximieren. Unser Ratenbegrenzer ist derzeit auf 30 Anfragen pro 1 Minute begrenzt. โปรดทราบว่าอัตราอาจเปลี่ยนแปลงได้ตามแผนการสมัครสมาชิก

Neben der Antwort werden mehrere Header gesendet, die untersucht werden können, um verschiedene Informationen über die Anfrage zu ermitteln.

```
X-RateLimit-Limit: 30  
X-RateLimit-Remaining: 29  
X-RateLimit-Reset: TIMESTAMP
```

###### Antwortbehandlung

Alle API-Antworten werden standardmäßig im JSON-Format zurückgegeben. Um diese in verwertbare Daten umzuwandeln, muss je nach Sprache die entsprechende Funktion verwendet werden. In PHP kann die Funktion json\_decode() verwendet werden, um die Daten entweder in ein Objekt (Standard) oder ein Array (den zweiten Parameter auf true zu setzen) zu konvertieren. Es ist sehr wichtig, den Fehlerschlüssel zu überprüfen, da er Auskunft darüber gibt, ob ein Fehler aufgetreten ist oder nicht. Sie können auch den Header-Code überprüfen.

```
{
    "error": 1,
    "message": "An error occurred"
}
```

---

#### Benutzerdefinierter Splash - Open in ChatGPT - Open in Claude

###### รายการ Custom Splash

รับ  `https://urlkai.com/api/splash?limit=2&page=1`

หากต้องการรับหน้าเริ่มต้นแบบกําหนดเองผ่าน API คุณสามารถใช้ปลายทางนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/splash?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/splash?limit=2&page=1",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/splash?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/splash?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/splash?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "สาด": [
            {
                "รหัส": 1,
                "name": "โปรโมชั่นสินค้า 1",
                "วันที่": "2020-11-10 18:00:00"
            },
            {
                "รหัส": 2,
                "name": "โปรโมชั่นสินค้า 2",
                "วันที่": "2020-11-10 18:10:00"
            }
        ]
    }
}
```

---

#### CTA-ซ้อนทับ - Open in ChatGPT - Open in Claude

###### รายการซ้อนทับ CTA

รับ  `https://urlkai.com/api/overlay?limit=2&page=1`

หากต้องการรับการซ้อนทับ cta ผ่าน API คุณสามารถใช้ปลายทางนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/overlay?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/overlay?limit=2&page=1"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/overlay?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/overlay?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/overlay?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "cta": [
            {
                "รหัส": 1,
                "type": "ข้อความ",
                "name": "โปรโมชั่นสินค้า 1",
                "วันที่": "2020-11-10 18:00:00"
            },
            {
                "รหัส": 2,
                "type": "ติดต่อ",
                "name": "หน้าติดต่อ",
                "วันที่": "2020-11-10 18:10:00"
            }
        ]
    }
}
```

---

#### แฟ้ม - Open in ChatGPT - Open in Claude

###### รายการไฟล์

รับ  `https://urlkai.com/api/files?limit=2&page=1`

รับไฟล์ทั้งหมดของคุณ คุณยังสามารถค้นหาตามชื่อ

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (ไม่บังคับ) ค้นหาไฟล์ตามชื่อ |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/files?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => "https://urlkai.com/api/files?limit=2&page=1",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOURAPIKEY",
        "Content-Type: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

```
var request = require('request');
var options = {
    'method': 'GET',
    'url': 'https://urlkai.com/api/files?limit=2&page=1',
    'headers': {
        'Authorization': 'Bearer YOURAPIKEY',
        'Content-Type': 'application/json'
    },
    
};
request(options, function (error, response) {
    if (error) throw new Error(error);
    console.log(response.body);
});
```

```
import requests
url = "https://urlkai.com/api/files?limit=2&page=1"
payload = {}
headers = {
    'Authorization': 'Bearer YOURAPIKEY',
    'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
```

```
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/files?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "error": 0,
    "result": 3,
    "perpage": 15,
    "currentpage": 1,
    "nextpage": null,
    "maxpage": 1,
    "list": [
        {
            "id": 1,
            "name": "My Photo",
            "downloads": 10,
            "shorturl": "https:\/\/urlkai.com\/tppQc",
            "date": "2022-08-09 17:00:00"
        },
        {
            "id": 2,
            "name": "My Documents",
            "downloads": 15,
            "shorturl": "https:\/\/urlkai.com\/PEAFf",
            "date": "2022-08-10 17:01:00"
        },
        {
            "id": 3,
            "name": "My Files",
            "downloads": 5,
            "shorturl": "https:\/\/urlkai.com\/BxkPc",
            "date": "2022-08-11 19:01:00"
        }
    ]
}
```

###### อัปโหลดไฟล์

ประกาศ  `https://urlkai.com/api/files/upload/:filename?name=My+File`

อัปโหลดไฟล์โดยส่งข้อมูลไบนารีเป็นเนื้อหาโพสต์ คุณต้องส่งชื่อไฟล์ที่มีนามสกุลแทน :filename ใน URL (เช่น brandkit.zip) คุณสามารถตั้งค่าตัวเลือกได้โดยส่งพารามิเตอร์ต่อไปนี้

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (ไม่บังคับ) ชื่อไฟล์ |
| ธรรมเนียม | (ไม่บังคับ) นามแฝงที่กําหนดเองแทนนามแฝงแบบสุ่ม |
| อาณาจักร | (ไม่บังคับ) โดเมนที่กําหนดเอง |
| รหัสผ่าน | (ไม่บังคับ) การป้องกันด้วยรหัสผ่าน |
| หมด อายุ | (ไม่บังคับ) การหมดอายุสําหรับตัวอย่างการดาวน์โหลด 2021-09-28 |
| ดาวน์โหลดสูงสุด | (ไม่บังคับ) จํานวนการดาวน์โหลดสูงสุด |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/files/upload/:filename?name=My+File' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '"BINARY DATA"'
```

```
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => "https://urlkai.com/api/files/upload/:filename?name=My+File",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOURAPIKEY",
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '"BINARY DATA"',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

```
var request = require('request');
var options = {
    'method': 'POST',
    'url': 'https://urlkai.com/api/files/upload/:filename?name=My+File',
    'headers': {
        'Authorization': 'Bearer YOURAPIKEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify("BINARY DATA"),
};
request(options, function (error, response) {
    if (error) throw new Error(error);
    console.log(response.body);
});
```

```
import requests
url = "https://urlkai.com/api/files/upload/:filename?name=My+File"
payload = "BINARY DATA"
headers = {
    'Authorization': 'Bearer YOURAPIKEY',
    'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
```

```
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/files/upload/:filename?name=My+File");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent(""BINARY DATA"", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "error": 0,
    "id": 1,
    "shorturl": "https:\/\/urlkai.com\/dmdBZ"
}
```

---

#### Kampagnen - Open in ChatGPT - Open in Claude

###### รายการแคมเปญ

รับ  `https://urlkai.com/api/campaigns?limit=2&page=1`

หากต้องการรับแคมเปญผ่าน API คุณสามารถใช้ตําแหน่งข้อมูลนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request รับ 'https://urlkai.com/api/campaigns?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/campaigns?limit=2&page=1"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/campaigns?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/campaigns?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/campaigns?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "แคมเปญ": [
            {
                "รหัส": 1,
                "name": "แคมเปญตัวอย่าง",
                "สาธารณะ": เท็จ,
                "rotator": เท็จ,
                "รายการ": "https:\/\/domain.com\/u\/admin\/list-1"
            },
            {
                "รหัส": 2,
                "domain": "แคมเปญ Facebook",
                "สาธารณะ": จริง,
                "โรเตเตอร์": "https:\/\/domain.com\/r\/test",
                "รายการ": "https:\/\/domain.com\/u\/admin\/test-2"
            }
        ]
    }
}
```

###### Erstellen Sie eine Kampagne

ประกาศ  `https://urlkai.com/api/campaign/add`

สามารถเพิ่มแคมเปญได้โดยใช้ตําแหน่งข้อมูลนี้

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (ไม่บังคับ) ชื่อแคมเปญ |
| ทาก | (ไม่บังคับ) ทากโรเตเตอร์ |
| สาธารณะ | (ไม่บังคับ) เข้าถึง |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/campaign/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "New Campaign",
    "slug": "new-campaign",
    "public": true
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => "https://urlkai.com/api/campaign/add",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOURAPIKEY",
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "name": "New Campaign",
	    "slug": "new-campaign",
	    "public": true
	}',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

```
var request = require('request');
var options = {
    'method': 'POST',
    'url': 'https://urlkai.com/api/campaign/add',
    'headers': {
        'Authorization': 'Bearer YOURAPIKEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
    "name": "New Campaign",
    "slug": "new-campaign",
    "public": true
}),
};
request(options, function (error, response) {
    if (error) throw new Error(error);
    console.log(response.body);
});
```

```
import requests
url = "https://urlkai.com/api/campaign/add"
payload = {
    "name": "New Campaign",
    "slug": "new-campaign",
    "public": true
}
headers = {
    'Authorization': 'Bearer YOURAPIKEY',
    'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
```

```
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/campaign/add");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
    "name": "New Campaign",
    "slug": "new-campaign",
    "public": true
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 3,
    "domain": "แคมเปญใหม่",
    "สาธารณะ": จริง
    "rotator": "https:\/\/domain.com\/r\/new-campaign",
    "รายการ": "https:\/\/domain.com\/u\/admin\/new-campaign-3"
}
```

###### กําหนดลิงก์ไปยังแคมเปญ

ประกาศ  `https://urlkai.com/api/campaign/:campaignid/assign/:linkid`

สามารถกําหนดลิงก์แบบสั้นให้กับแคมเปญได้โดยใช้ตําแหน่งข้อมูลนี้ ปลายทางต้องใช้รหัสแคมเปญและรหัสลิงก์สั้น

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/campaign/:campaignid/assign/:linkid",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/campaign/:campaignid/assign/:linkid"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/campaign/:campaignid/assign/:linkid");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "เพิ่มลิงก์ลงในแคมเปญเรียบร้อยแล้ว"
}
```

###### Kampagne aktualisieren

วาง  `https://urlkai.com/api/campaign/:id/update`

หากต้องการอัปเดตแคมเปญ คุณต้องส่งข้อมูลที่ถูกต้องในรูปแบบ JSON ผ่านคําขอ PUT ข้อมูลจะต้องถูกส่งเป็นเนื้อหาดิบของคําขอของคุณดังที่แสดงด้านล่าง ตัวอย่างด้านล่างแสดงพารามิเตอร์ทั้งหมดที่คุณสามารถส่งได้ แต่คุณไม่จําเป็นต้องส่งทั้งหมด (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (จําเป็น) ชื่อแคมเปญ |
| ทาก | (ไม่บังคับ) ทากโรเตเตอร์ |
| สาธารณะ | (ไม่บังคับ) เข้าถึง |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/campaign/:id/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "name": "แคมเปญทวิตเตอร์",
    "ทาก": "แคมเปญทวิตเตอร์",
    "สาธารณะ": จริง
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/campaign/:id/update",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "name": "แคมเปญทวิตเตอร์",
	    "ทาก": "แคมเปญทวิตเตอร์",
	    "สาธารณะ": จริง
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/campaign/:id/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "name": "แคมเปญทวิตเตอร์",
    "ทาก": "แคมเปญทวิตเตอร์",
    "สาธารณะ": จริง
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/campaign/:id/update"
น้ําหนักบรรทุก = {
    "name": "แคมเปญทวิตเตอร์",
    "ทาก": "แคมเปญทวิตเตอร์",
    "สาธารณะ": จริง
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/campaign/:id/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "name": "แคมเปญทวิตเตอร์",
    "ทาก": "แคมเปญทวิตเตอร์",
    "สาธารณะ": จริง
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 3,
    "domain": "แคมเปญทวิตเตอร์",
    "สาธารณะ": จริง,
    "rotator": "https:\/\/domain.com\/r\/twitter-campaign",
    "รายการ": "https:\/\/domain.com\/u\/admin\/twitter-campaign-3"
}
```

###### ลบแคมเปญ

ลบ  `https://urlkai.com/api/campaign/:id/delete`

หากต้องการลบแคมเปญ คุณต้องส่งคําขอ DELETE

cURL
PHP
Node.js
Python
C#

```
curl --location --request ลบ 'https://urlkai.com/api/campaign/:id/delete' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/campaign/:id/delete",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ลบ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'ลบ',
    'url': 'https://urlkai.com/api/campaign/:id/delete',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/campaign/:id/delete"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("ลบ", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/campaign/:id/delete");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "ลบแคมเปญเรียบร้อยแล้ว"
}
```

---

#### คาแนเล - Open in ChatGPT - Open in Claude

###### รายการช่อง

รับ  `https://urlkai.com/api/channels?limit=2&page=1`

หากต้องการรับช่องผ่าน API คุณสามารถใช้ปลายทางนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/channels?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/channels?limit=2&page=1",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/channels?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/channels?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/channels?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "ช่อง": [
            {
                "รหัส": 1,
                "name": "ช่อง 1",
                "description": "คําอธิบายของช่อง 1",
                "สี": "#000000",
                "ติดดาว": จริง
            },
            {
                "รหัส": 2,
                "name": "ช่อง 2",
                "description": "คําอธิบายของช่อง 2",
                "color": "#FF0000",
                "ติดดาว": เท็จ
            }
        ]
    }
}
```

###### รายการช่อง

รับ  `https://urlkai.com/api/channel/:id?limit=1&page=1`

หากต้องการรับรายการในช่องทางที่เลือกผ่าน API คุณสามารถใช้ปลายทางนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request รับ 'https://urlkai.com/api/channel/:id?limit=1&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/channel/:id?limit=1&page=1"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/channel/:id?limit=1&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/channel/:id?limit=1&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/channel/:id?limit=1&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "รายการ": [
            {
                "type": "ลิงก์",
                "รหัส": 1,
                "title": "ลิงค์ตัวอย่างของฉัน",
                "preview": "https:\/\/google.com",
                "ลิงค์": "https:\/\/urlkai.com\/google",
                "วันที่": "2022-05-12"
            },
            {
                "ประเภท": "ชีวภาพ",
                "รหัส": 1,
                "title": "ชีวประวัติตัวอย่างของฉัน",
                "preview": "https:\/\/urlkai.com\/mybio",
                "ลิงค์": "https:\/\/urlkai.com\/mybio",
                "วันที่": "2022-06-01"
            }
        ]
    }
}
```

###### Erstellen Sie einen Kanal

ประกาศ  `https://urlkai.com/api/channel/add`

สามารถเพิ่มช่องทางได้โดยใช้ปลายทางนี้

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (จําเป็น) ชื่อช่อง |
| คำอธิบาย | (ไม่บังคับ) คําอธิบายช่อง |
| สี | (ไม่บังคับ) สีป้ายช่อง (HEX) |
| ติดดาว | (ไม่บังคับ) ติดดาวช่องหรือไม่ (จริงหรือเท็จ) |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/channel/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "New Channel",
    "description": "my new channel",
    "color": "#000000",
    "starred": true
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => "https://urlkai.com/api/channel/add",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOURAPIKEY",
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "name": "New Channel",
	    "description": "my new channel",
	    "color": "#000000",
	    "starred": true
	}',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

```
var request = require('request');
var options = {
    'method': 'POST',
    'url': 'https://urlkai.com/api/channel/add',
    'headers': {
        'Authorization': 'Bearer YOURAPIKEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
    "name": "New Channel",
    "description": "my new channel",
    "color": "#000000",
    "starred": true
}),
};
request(options, function (error, response) {
    if (error) throw new Error(error);
    console.log(response.body);
});
```

```
import requests
url = "https://urlkai.com/api/channel/add"
payload = {
    "name": "New Channel",
    "description": "my new channel",
    "color": "#000000",
    "starred": true
}
headers = {
    'Authorization': 'Bearer YOURAPIKEY',
    'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
```

```
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/channel/add");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
    "name": "New Channel",
    "description": "my new channel",
    "color": "#000000",
    "starred": true
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 3,
    "name": "ช่องใหม่",
    "description": "ช่องใหม่ของฉัน",
    "สี": "#000000",
    "ติดดาว": จริง
}
```

###### กําหนดรายการให้กับช่องทาง

ประกาศ  `https://urlkai.com/api/channel/:channelid/assign/:type/:itemid`

สามารถกําหนดรายการให้กับช่องทางใดก็ได้โดยการส่งคําขอพร้อมรหัสช่อง ประเภทรายการ (ลิงก์ ชีวภาพ หรือ qr) และรหัสรายการ

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| :channelid | (จําเป็น) รหัสช่อง |
| :ประเภท | (ต้อง) ลิงก์หรือชีวประวัติหรือ QR |
| :รายการ ID | (จําเป็น) รหัสรายการ |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "เพิ่มรายการลงในช่องเรียบร้อยแล้ว"
}
```

###### Kanal aktualisieren

วาง  `https://urlkai.com/api/channel/:id/update`

หากต้องการอัปเดตช่องทาง คุณต้องส่งข้อมูลที่ถูกต้องในรูปแบบ JSON ผ่านคําขอ PUT ข้อมูลจะต้องถูกส่งเป็นเนื้อหาดิบของคําขอของคุณดังที่แสดงด้านล่าง ตัวอย่างด้านล่างแสดงพารามิเตอร์ทั้งหมดที่คุณสามารถส่งได้ แต่คุณไม่จําเป็นต้องส่งทั้งหมด (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (ไม่บังคับ) ชื่อช่อง |
| คำอธิบาย | (ไม่บังคับ) คําอธิบายช่อง |
| สี | (ไม่บังคับ) สีป้ายช่อง (HEX) |
| ติดดาว | (ไม่บังคับ) ติดดาวช่องหรือไม่ (จริงหรือเท็จ) |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/channel/:id/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "name": "Acme Corp",
    "description": "ช่องสําหรับรายการสําหรับ Acme Corp",
    "สี": "#FFFFFF",
    "ติดดาว": เท็จ
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/channel/:id/update",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "name": "Acme Corp",
	    "description": "ช่องสําหรับรายการสําหรับ Acme Corp",
	    "สี": "#FFFFFF",
	    "ติดดาว": เท็จ
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/channel/:id/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "name": "Acme Corp",
    "description": "ช่องสําหรับรายการสําหรับ Acme Corp",
    "สี": "#FFFFFF",
    "ติดดาว": เท็จ
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/channel/:id/update"
น้ําหนักบรรทุก = {
    "name": "Acme Corp",
    "description": "ช่องสําหรับรายการสําหรับ Acme Corp",
    "สี": "#FFFFFF",
    "ติดดาว": เท็จ
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/channel/:id/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "name": "Acme Corp",
    "description": "ช่องสําหรับรายการสําหรับ Acme Corp",
    "สี": "#FFFFFF",
    "ติดดาว": เท็จ
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "อัปเดตช่องสําเร็จแล้ว"
}
```

###### ลบช่อง

ลบ  `https://urlkai.com/api/channel/:id/delete`

หากต้องการลบช่อง คุณต้องส่งคําขอ DELETE รายการทั้งหมดจะถูกยกเลิกการกําหนดเช่นกัน

cURL
PHP
Node.js
Python
C#

```
curl --location --request ลบ 'https://urlkai.com/api/channel/:id/delete' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/channel/:id/delete"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ลบ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'ลบ',
    'url': 'https://urlkai.com/api/channel/:id/delete',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/channel/:id/delete"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("ลบ", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/channel/:id/delete");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "ลบช่องเรียบร้อยแล้ว"
}
```

---

#### คอนโต - Open in ChatGPT - Open in Claude

###### Konto erhalten

รับ  `https://urlkai.com/api/account`

Um Informationen über das Konto zu erhalten, können Sie eine Anfrage an diesen Endpunkt senden, der Daten über das Konto zurückgibt.

cURL
PHP
Node.js
Python
C#

```
curl --location --request รับ 'https://urlkai.com/api/account' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/account",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/account',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/account"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "ข้อมูล": {
        "รหัส": 1,
        "อีเมล": " [ป้องกันอีเมล] ",
        "ชื่อผู้ใช้": "sampleuser",
        "อวาตาร์": "https:\/\/domain.com\/content\/avatar.png",
        "สถานะ": "โปร",
        "หมดอายุ": "2022-11-15 15:00:00",
        "ลงทะเบียน": "2020-11-10 18:01:43"
    }
}
```

###### Account aktualisieren

วาง  `https://urlkai.com/api/account/update`

Um Informationen zu dem Konto zu aktualisieren, können Sie eine Anfrage an diesen Endpunkt senden und er aktualisiert die Daten zu dem Konto.

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/account/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "อีเมล": " [ป้องกันอีเมล] ",
    "password": "รหัสผ่านใหม่"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/account/update"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "อีเมล": " [ป้องกันอีเมล] ",
	    "password": "รหัสผ่านใหม่"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/account/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "อีเมล": " [ป้องกันอีเมล] ",
    "password": "รหัสผ่านใหม่"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/account/update"
น้ําหนักบรรทุก = {
    "อีเมล": " [ป้องกันอีเมล] ",
    "password": "รหัสผ่านใหม่"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/account/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "อีเมล": " [ป้องกันอีเมล] ",
    "password": "รหัสผ่านใหม่"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "อัปเดตบัญชีสําเร็จแล้ว"
}
```

---

#### Markendomänen - Open in ChatGPT - Open in Claude

###### แสดงรายการโดเมนที่มีตราสินค้า

รับ  `https://urlkai.com/api/domains?limit=2&page=1`

หากต้องการรับโดเมนที่มีตราสินค้าผ่าน API คุณสามารถใช้ตําแหน่งข้อมูลนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request รับ 'https://urlkai.com/api/domains?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/domains?limit=2&page=1"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/domains?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/domains?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/domains?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "โดเมน": [
            {
                "รหัส": 1,
                "โดเมน": "https:\/\/domain1.com",
                "redirectroot": "https:\/\/rootdomain.com",
                "redirect404": "https:\/\/rootdomain.com\/404"
            },
            {
                "รหัส": 2,
                "โดเมน": "https:\/\/domain2.com",
                "redirectroot": "https:\/\/rootdomain2.com",
                "redirect404": "https:\/\/rootdomain2.com\/404"
            }
        ]
    }
}
```

###### สร้างโดเมนที่มีตราสินค้า

ประกาศ  `https://urlkai.com/api/domain/add`

สามารถเพิ่มโดเมนได้โดยใช้ปลายทางนี้ โปรดตรวจสอบให้แน่ใจว่าโดเมนชี้ไปยังเซิร์ฟเวอร์ของเราอย่างถูกต้อง

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| อาณาจักร | (จําเป็น) โดเมนที่มีตราสินค้ารวมถึง http หรือ https |
| เปลี่ยนเส้นทางราก | (ไม่บังคับ) การเปลี่ยนเส้นทางรูทเมื่อมีคนเข้าชมโดเมนของคุณ |
| เปลี่ยนเส้นทาง 404 | (ไม่บังคับ) เปลี่ยนเส้นทาง 404 แบบกําหนดเอง |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/domain/add' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "โดเมน": "https:\/\/domain1.com",
    "redirectroot": "https:\/\/rootdomain.com",
    "redirect404": "https:\/\/rootdomain.com\/404"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/domain/add",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "โดเมน": "https:\/\/domain1.com",
	    "redirectroot": "https:\/\/rootdomain.com",
	    "redirect404": "https:\/\/rootdomain.com\/404"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/domain/add',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "โดเมน": "https:\/\/domain1.com",
    "redirectroot": "https:\/\/rootdomain.com",
    "redirect404": "https:\/\/rootdomain.com\/404"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/domain/add"
น้ําหนักบรรทุก = {
    "โดเมน": "https://domain1.com",
    "redirectroot": "https://rootdomain.com",
    "redirect404": "https://rootdomain.com/404"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/domain/add");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "โดเมน": "https:\/\/domain1.com",
    "redirectroot": "https:\/\/rootdomain.com",
    "redirect404": "https:\/\/rootdomain.com\/404"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 1
}
```

###### Domäne aktualisieren

วาง  `https://urlkai.com/api/domain/:id/update`

หากต้องการอัปเดตโดเมนที่มีตราสินค้า คุณต้องส่งข้อมูลที่ถูกต้องในรูปแบบ JSON ผ่านคําขอ PUT ข้อมูลจะต้องถูกส่งเป็นเนื้อหาดิบของคําขอของคุณดังที่แสดงด้านล่าง ตัวอย่างด้านล่างแสดงพารามิเตอร์ทั้งหมดที่คุณสามารถส่งได้ แต่คุณไม่จําเป็นต้องส่งทั้งหมด (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เปลี่ยนเส้นทางราก | (ไม่บังคับ) การเปลี่ยนเส้นทางรูทเมื่อมีคนเข้าชมโดเมนของคุณ |
| เปลี่ยนเส้นทาง 404 | (ไม่บังคับ) เปลี่ยนเส้นทาง 404 แบบกําหนดเอง |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/domain/:id/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "redirectroot": "https:\/\/rootdomain-new.com",
    "redirect404": "https:\/\/rootdomain-new.com\/404"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/domain/:id/update",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "redirectroot": "https:\/\/rootdomain-new.com",
	    "redirect404": "https:\/\/rootdomain-new.com\/404"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/domain/:id/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "redirectroot": "https:\/\/rootdomain-new.com",
    "redirect404": "https:\/\/rootdomain-new.com\/404"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/domain/:id/update"
น้ําหนักบรรทุก = {
    "redirectroot": "https://rootdomain-new.com",
    "redirect404": "https://rootdomain-new.com/404"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/domain/:id/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "redirectroot": "https:\/\/rootdomain-new.com",
    "redirect404": "https:\/\/rootdomain-new.com\/404"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "อัปเดตโดเมนเรียบร้อยแล้ว"
}
```

###### ลบโดเมน

ลบ  `https://urlkai.com/api/domain/:id/delete`

หากต้องการลบโดเมน คุณต้องส่งคําขอ DELETE

cURL
PHP
Node.js
Python
C#

```
curl --location -request ลบ 'https://urlkai.com/api/domain/:id/delete' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/domain/:id/delete"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ลบ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'ลบ',
    'url': 'https://urlkai.com/api/domain/:id/delete',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/domain/:id/delete"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("ลบ", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/domain/:id/delete");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "ลบโดเมนเรียบร้อยแล้ว"
}
```

---

#### พิก เซล - Open in ChatGPT - Open in Claude

###### รายการพิกเซล

รับ  `https://urlkai.com/api/pixels?limit=2&page=1`

หากต้องการรับรหัสพิกเซลผ่าน API คุณสามารถใช้ปลายทางนี้ได้ คุณยังสามารถกรองข้อมูลได้อีกด้วย (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/pixels?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/pixels?limit=2&page=1",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/pixels?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/pixels?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/pixels?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "พิกเซล": [
            {
                "รหัส": 1,
                "ประเภท": "gtmpixel",
                "name": "พิกเซล GTM",
                "แท็ก": "GA-123456789",
                "วันที่": "2020-11-10 18:00:00"
            },
            {
                "รหัส": 2,
                "type": "twitterpixel",
                "name": "พิกเซลของทวิตเตอร์",
                "แท็ก": "1234567",
                "วันที่": "2020-11-10 18:10:00"
            }
        ]
    }
}
```

###### สร้างพิกเซล

ประกาศ  `https://urlkai.com/api/pixel/add`

สามารถสร้างพิกเซลได้โดยใช้ตําแหน่งข้อมูลนี้ คุณต้องส่งประเภทพิกเซลและแท็ก

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ประเภท | (จําเป็น) gtmpixel | gtmpixel กาพิกเซล | FBPIXEL | FBPIXEL AdWords พิกเซล | AdWordsPixel LinkedInPixel | LinkedIn TwitterPixel | ทวิตเตอร์พิกเซล AdrollPixel | AdrollPixel ควอราพิกเซล | Pinterest | Bing | สแน็ปแชท | Snapchat เรดดิต | ติ๊กต๊อก |
| ชื่อ | (จําเป็น) ชื่อที่กําหนดเองสําหรับพิกเซลของคุณ |
| ฉลาก | (จําเป็น) แท็กสําหรับพิกเซล |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/pixel/add' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "ประเภท": "gtmpixel",
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/pixel/add",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "ประเภท": "gtmpixel",
	    "name": "GTM ของฉัน",
	    "tag": "GTM-ABCDE"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/pixel/add',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "ประเภท": "gtmpixel",
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/pixel/add"
น้ําหนักบรรทุก = {
    "ประเภท": "gtmpixel",
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/pixel/add");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "ประเภท": "gtmpixel",
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 1
}
```

###### Pixel aktualisieren

วาง  `https://urlkai.com/api/pixel/:id/update`

หากต้องการอัปเดตพิกเซล คุณต้องส่งข้อมูลที่ถูกต้องในรูปแบบ JSON ผ่านคําขอ PUT ข้อมูลจะต้องถูกส่งเป็นเนื้อหาดิบของคําขอของคุณดังที่แสดงด้านล่าง ตัวอย่างด้านล่างแสดงพารามิเตอร์ทั้งหมดที่คุณสามารถส่งได้ แต่คุณไม่จําเป็นต้องส่งทั้งหมด (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ชื่อ | (ไม่บังคับ) ชื่อที่กําหนดเองสําหรับพิกเซลของคุณ |
| ฉลาก | (จําเป็น) แท็กสําหรับพิกเซล |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/pixel/:id/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/pixel/:id/update"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "name": "GTM ของฉัน",
	    "tag": "GTM-ABCDE"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/pixel/:id/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/pixel/:id/update"
น้ําหนักบรรทุก = {
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/pixel/:id/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "name": "GTM ของฉัน",
    "tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "อัปเดตพิกเซลเรียบร้อยแล้ว"
}
```

###### ลบพิกเซล

ลบ  `https://urlkai.com/api/pixel/:id/delete`

หากต้องการลบพิกเซล คุณต้องส่งคําขอลบ

cURL
PHP
Node.js
Python
C#

```
curl --location -request ลบ 'https://urlkai.com/api/pixel/:id/delete' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/pixel/:id/delete"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ลบ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'ลบ',
    'url': 'https://urlkai.com/api/pixel/:id/delete',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/pixel/:id/delete"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("ลบ", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/pixel/:id/delete");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "ลบพิกเซลเรียบร้อยแล้ว"
}
```

---

#### รหัส QR - Open in ChatGPT - Open in Claude

###### แสดงรายการรหัส QR

รับ  `https://urlkai.com/api/qr?limit=2&page=1`

Um Ihre QR-Codes über die API abzurufen, können Sie diesen Endpunkt verwenden. Sie können Daten auch filtern (weitere Informationen finden Sie in der Tabelle).

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |

cURL
PHP
Node.js
Python
C#

```
curl --location --request รับ 'https://urlkai.com/api/qr?limit=2&page=1' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/qr?limit=2&page=1"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/qr?limit=2&page=1',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/qr?limit=2&page=1"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr?limit=2&page=1");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "คิวอาร์ส": [
            {
                "รหัส": 2,
                "ลิงค์": "https:\/\/urlkai.com\/QR\/A2D5E",
                "สแกน": 0,
                "name": "Google",
                "วันที่": "2020-11-10 18:01:43"
            },
            {
                "รหัส": 1,
                "ลิงค์": "https:\/\/urlkai.com\/QR\/B9EDFE",
                "สแกน": 5,
                "name": "กูเกิลแคนาดา",
                "วันที่": "2020-11-10 18:00:25"
            }
        ]
    }
}
```

###### Holen Sie sich einen einzigen QR-Code

รับ  `https://urlkai.com/api/qr/:id`

Um Details für einen einzelnen QR-Code über die API abzurufen, können Sie diesen Endpunkt verwenden.

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/qr/:id' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/qr/:id"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/qr/:id',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/qr/:id"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr/:id");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รายละเอียด": {
        "รหัส": 1,
        "ลิงค์": "https:\/\/urlkai.com\/QR\/B9EDFE",
        "สแกน": 5,
        "name": "กูเกิลแคนาดา",
        "วันที่": "2020-11-10 18:00:25"
    },
    "ข้อมูล": {
        "คลิก": 1,
        "คลิกซ้ํา": 1,
        "topCountries": {
            "ไม่ทราบ": "1"
        },
        "top ผู้อ้างอิง": {
            "โดยตรง อีเมล และอื่นๆ": "1"
        },
        "topBrowsers": {
            "โครเมี่ยม": "1"
        },
        "ท็อปออส": {
            "หน้าต่าง 10": "1"
        },
        "โซเชียลนับ": {
            "เฟสบุ๊ค": 0,
            "ทวิตเตอร์": 0,
            "อินสตาแกรม": 0
        }
    }
}
```

###### Erstellen Sie einen QR-Code

ประกาศ  `https://urlkai.com/api/qr/add`

ในการสร้างรหัส QR คุณต้องส่งข้อมูลที่ถูกต้องในรูปแบบ JSON ผ่านคําขอ POST ข้อมูลจะต้องถูกส่งเป็นเนื้อหาดิบของคําขอของคุณดังที่แสดงด้านล่าง ตัวอย่างด้านล่างแสดงพารามิเตอร์ทั้งหมดที่คุณสามารถส่งได้ แต่คุณไม่จําเป็นต้องส่งทั้งหมด (ดูตารางสําหรับข้อมูลเพิ่มเติม)

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ประเภท | ข้อความ (จําเป็น) | วีการ์ด | ลิงค์ | อีเมล | โทรศัพท์ | SMS | อินเตอร์เน็ตไร้สาย |
| ข้อมูล | (จําเป็น) ข้อมูลที่จะฝังไว้ในคิวอาร์โค้ด ข้อมูลสามารถเป็นสตริงหรืออาร์เรย์ขึ้นอยู่กับประเภท |
| พื้นหลัง | (ไม่บังคับ) สี RGB เช่น rgb (255,255,255) |
| เบื้องหน้า | (ไม่บังคับ) สี RGB เช่น rgb(0,0,0) |
| โลโก้ | (ไม่บังคับ) เส้นทางไปยังโลโก้ png หรือ jpg |
| ชื่อ | (ไม่บังคับ) ชื่อคิวอาร์โค้ด |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/qr/add' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "type": "ลิงค์",
    "ข้อมูล": "https:\/\/google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https:\/\/site.com\/logo.png",
    "name": "คิวอาร์โค้ด API"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/qr/add",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "type": "ลิงค์",
	    "ข้อมูล": "https:\/\/google.com",
	    "พื้นหลัง": "rgb(255,255,255)",
	    "เบื้องหน้า": "rgb(0,0,0)",
	    "โลโก้": "https:\/\/site.com\/logo.png",
	    "name": "คิวอาร์โค้ด API"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/qr/add',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "type": "ลิงค์",
    "ข้อมูล": "https:\/\/google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https:\/\/site.com\/logo.png",
    "name": "คิวอาร์โค้ด API"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/qr/add"
น้ําหนักบรรทุก = {
    "type": "ลิงค์",
    "data": "https://google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https://site.com/logo.png",
    "name": "คิวอาร์โค้ด API"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/qr/add");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "type": "ลิงค์",
    "ข้อมูล": "https:\/\/google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https:\/\/site.com\/logo.png",
    "name": "คิวอาร์โค้ด API"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 3,
    "ลิงค์": "https:\/\/urlkai.com\/QR\/A58F79"
}
```

###### อัปเดตรหัส QR

วาง  `https://urlkai.com/api/qr/:id/update`

Um einen QR-Code zu aktualisieren, müssen Sie gültige Daten in JSON über eine PUT-Anforderung senden. Die Daten müssen wie unten gezeigt als Rohtext Ihrer Anfrage gesendet werden. Das folgende Beispiel zeigt alle Parameter, die Sie senden können, aber Sie müssen nicht alle senden (siehe Tabelle für weitere Informationen).

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| ข้อมูล | (จําเป็น) ข้อมูลที่จะฝังไว้ในคิวอาร์โค้ด ข้อมูลสามารถเป็นสตริงหรืออาร์เรย์ขึ้นอยู่กับประเภท |
| พื้นหลัง | (ไม่บังคับ) สี RGB เช่น rgb (255,255,255) |
| เบื้องหน้า | (ไม่บังคับ) สี RGB เช่น rgb(0,0,0) |
| โลโก้ | (ไม่บังคับ) เส้นทางไปยังโลโก้ png หรือ jpg |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/qr/:id/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "type": "ลิงค์",
    "ข้อมูล": "https:\/\/google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https:\/\/site.com\/logo.png"
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/qr/:id/update"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "type": "ลิงค์",
	    "ข้อมูล": "https:\/\/google.com",
	    "พื้นหลัง": "rgb(255,255,255)",
	    "เบื้องหน้า": "rgb(0,0,0)",
	    "โลโก้": "https:\/\/site.com\/logo.png"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/qr/:id/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "type": "ลิงค์",
    "ข้อมูล": "https:\/\/google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https:\/\/site.com\/logo.png"
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/qr/:id/update"
น้ําหนักบรรทุก = {
    "type": "ลิงค์",
    "data": "https://google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "logo": "https://site.com/logo.png"
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/qr/:id/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "type": "ลิงค์",
    "ข้อมูล": "https:\/\/google.com",
    "พื้นหลัง": "rgb(255,255,255)",
    "เบื้องหน้า": "rgb(0,0,0)",
    "โลโก้": "https:\/\/site.com\/logo.png"
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "QR ได้รับการอัปเดตเรียบร้อยแล้ว"
}
```

###### รหัส QR

ลบ  `https://urlkai.com/api/qr/:id/delete`

Um einen QR-Code zu löschen, müssen Sie eine DELETE-Anfrage senden.

cURL
PHP
Node.js
Python
C#

```
curl --location -request ลบ 'https://urlkai.com/api/qr/:id/delete' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/qr/:id/delete"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ลบ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'ลบ',
    'url': 'https://urlkai.com/api/qr/:id/delete',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/qr/:id/delete"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("ลบ", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/qr/:id/delete");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "ลบรหัส QR เรียบร้อยแล้ว"
}
```

---

#### Verknüpfungen - Open in ChatGPT - Open in Claude

###### ลิงค์รายการ

รับ  `https://urlkai.com/api/urls?limit=2&page=1o=date`

Um Ihre Links über die API zu erhalten, können Sie diesen Endpunkt verwenden. Sie können Daten auch filtern (weitere Informationen finden Sie in der Tabelle).

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| เขต | (ไม่บังคับ) ผลลัพธ์ข้อมูลต่อหน้า |
| หน้า | (ไม่บังคับ) คําขอหน้าปัจจุบัน |
| สั่ง | (ไม่บังคับ) จัดเรียงข้อมูลระหว่างวันที่หรือคลิก |
| สั้น | (ไม่บังคับ) ค้นหาโดยใช้ URL แบบสั้น โปรดทราบว่าเมื่อคุณใช้พารามิเตอร์ short พารามิเตอร์อื่น ๆ ทั้งหมดจะถูกละเว้นและหากมีการจับคู่การตอบสนองลิงก์เดียวจะถูกส่งคืน |
| q | (ไม่บังคับ) ค้นหาลิงก์โดยใช้คีย์เวิร์ด |

cURL
PHP
Node.js
Python
C#

```
curl --location --request รับ 'https://urlkai.com/api/urls?limit=2&page=1o=date' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/urls?limit=2&page=1o=date",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/urls?limit=2&page=1o=date',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/urls?limit=2&page=1o=date"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/urls?limit=2&page=1o=date");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": "0",
    "ข้อมูล": {
        "ผลลัพธ์": 2,
        "perpage": 2,
        "หน้าปัจจุบัน": 1,
        "หน้าถัดไป": 1,
        "แม็กซ์เพจ": 1,
        "URL": [
            {
                "รหัส": 2,
                "นามแฝง": "google",
                "shorturl": "https:\/\/urlkai.com\/google",
                "longurl": "https:\/\/google.com",
                "คลิก": 0,
                "title": "Google",
                "คําอธิบาย": "",
                "วันที่": "2020-11-10 18:01:43"
            },
            {
                "รหัส": 1,
                "นามแฝง": "googlecanada",
                "shorturl": "https:\/\/urlkai.com\/googlecanada",
                "longurl": "https:\/\/google.ca",
                "คลิก": 0,
                "title": "กูเกิลแคนาดา",
                "คําอธิบาย": "",
                "วันที่": "2020-11-10 18:00:25"
            }
        ]
    }
}
```

###### รับลิงก์เดียว

รับ  `https://urlkai.com/api/url/:id`

Um Details für einen einzelnen Link über die API abzurufen, können Sie diesen Endpunkt verwenden.

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/url/:id' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/url/:id"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "รับ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'รับ',
    'url': 'https://urlkai.com/api/url/:id',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/url/:id"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/url/:id");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 1,
    "รายละเอียด": {
        "รหัส": 1,
        "shorturl": "https:\/\/urlkai.com\/googlecanada",
        "longurl": "https:\/\/google.com",
        "title": "Google",
        "คําอธิบาย": "",
        "ที่ตั้ง": {
            "แคนาดา": "https:\/\/google.ca",
            "สหรัฐอเมริกา": "https:\/\/google.us"
        },
        "อุปกรณ์": {
            "iphone": "https:\/\/google.com",
            "android": "https:\/\/google.com"
        },
        "หมดอายุ": null,
        "วันที่": "2020-11-10 18:01:43"
    },
    "ข้อมูล": {
        "คลิก": 0,
        "คลิกซ้ํา": 0,
        "topCountries": 0,
        "ผู้อ้างอิงด้านบน": 0,
        "topBrowsers": 0,
        "ท็อปออส": 0,
        "โซเชียลนับ": {
            "เฟสบุ๊ค": 0,
            "ทวิตเตอร์": 0,
            "google": 0
        }
    }
}
```

###### Einen Link kürzen

ประกาศ  `https://urlkai.com/api/url/add`

Um einen Link zu kürzen, müssen Sie gültige Daten in JSON über eine POST-Anforderung senden. Die Daten müssen wie unten gezeigt als Rohtext Ihrer Anfrage gesendet werden. Das folgende Beispiel zeigt alle Parameter, die Sie senden können, aber Sie müssen nicht alle senden (siehe Tabelle für weitere Informationen).

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| URL | (จําเป็น) URL แบบยาวเพื่อย่อ |
| ธรรมเนียม | (ไม่บังคับ) นามแฝงที่กําหนดเองแทนนามแฝงแบบสุ่ม |
| ประเภท | (ไม่บังคับ) ประเภทการเปลี่ยนเส้นทาง [โดยตรง, เฟรม, สาด] เท่านั้น *รหัส* สําหรับหน้าเริ่มต้นแบบกําหนดเองหรือ *รหัสซ้อนทับ* สําหรับหน้า CTA |
| รหัสผ่าน | (ไม่บังคับ) การป้องกันด้วยรหัสผ่าน |
| อาณาจักร | (ไม่บังคับ) โดเมนที่กําหนดเอง |
| หมด อายุ | (ไม่บังคับ) การหมดอายุสําหรับตัวอย่างลิงก์ 2021-09-28 23:11:16 |
| เป้าหมายทางภูมิศาสตร์ | (ไม่บังคับ) ข้อมูลการกําหนดเป้าหมายตามภูมิศาสตร์ |
| devicetarget | (ไม่บังคับ) ข้อมูลการกําหนดเป้าหมายอุปกรณ์ |
| languagetarget | (ไม่บังคับ) ข้อมูลการกําหนดเป้าหมายภาษา |
| เมตาไตเติ้ล | (ไม่บังคับ) ชื่อเมตา |
| เมตาคําอธิบาย | (ไม่บังคับ) คําอธิบายเมตา |
| เมตาอิมเมจ | (ไม่บังคับ) ลิงก์ไปยังรูปภาพ jpg หรือ png |
| คำอธิบาย | (ไม่บังคับ) หมายเหตุหรือคําอธิบาย |
| พิก เซล | (ไม่บังคับ) อาร์เรย์ของรหัสพิกเซล |
| ช่อง | (ไม่บังคับ) รหัสช่อง |
| รณรงค์ | (ไม่บังคับ) รหัสแคมเปญ |
| ดีปลิงค์ | (ไม่บังคับ) ออบเจ็กต์ที่มีลิงก์ App Store เมื่อใช้สิ่งนี้ สิ่งสําคัญคือต้องตั้งค่าการกําหนดเป้าหมายอุปกรณ์ด้วย (ใหม่) ตอนนี้คุณสามารถตั้งค่าพารามิเตอร์ "อัตโนมัติ" เป็น true เพื่อสร้างลิงก์ตรงจากลิงก์แบบยาวที่ให้มาโดยอัตโนมัติ |
| สถานะ | (ไม่บังคับ) *สาธารณะ* หรือ *ส่วนตัว (ค่าเริ่มต้น)* |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/url/add' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "url": "https:\/\/google.com",
    "status": "ส่วนตัว",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "metatitle": "ไม่ใช่ Google",
    "metadescription": "ไม่ใช่คําอธิบายของ Google",
    "เมตาอิมเมจ": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
    "description": "สําหรับ facebook",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "แคมเปญ": 1,
    "ดีปลิงค์": {
        "อัตโนมัติ": จริง,
        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "ลิงค์": "https:\/\/google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "ลิงค์": "https:\/\/google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "ลิงค์": "https:\/\/google.com"
        }
    ],
    "languagetarget": [
        {
            "ภาษา": "th",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "ภาษา": "fr",
            "ลิงค์": "https:\/\/google.ca"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/url/add"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "โพสต์",
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "url": "https:\/\/google.com",
	    "status": "ส่วนตัว",
	    "กําหนดเอง": "google",
	    "รหัสผ่าน": "ไมค์พาส",
	    "หมดอายุ": "2020-11-11 12:00:00",
	    "type": "สาด",
	    "metatitle": "ไม่ใช่ Google",
	    "metadescription": "ไม่ใช่คําอธิบายของ Google",
	    "เมตาอิมเมจ": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
	    "description": "สําหรับ facebook",
	    "พิกเซล": [
	        1,
	        2,
	        3,
	        4
	    ],
	    "ช่อง": 1,
	    "แคมเปญ": 1,
	    "ดีปลิงค์": {
	        "อัตโนมัติ": จริง,
	        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
	        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
	    },
	    "เป้าหมายทางภูมิศาสตร์": [
	        {
	            "location": "แคนาดา",
	            "ลิงค์": "https:\/\/google.ca"
	        },
	        {
	            "location": "สหรัฐอเมริกา",
	            "ลิงค์": "https:\/\/google.us"
	        }
	    ],
	    "devicetarget": [
	        {
	            "อุปกรณ์": "ไอโฟน",
	            "ลิงค์": "https:\/\/google.com"
	        },
	        {
	            "อุปกรณ์": "แอนดรอยด์",
	            "ลิงค์": "https:\/\/google.com"
	        }
	    ],
	    "languagetarget": [
	        {
	            "ภาษา": "th",
	            "ลิงค์": "https:\/\/google.com"
	        },
	        {
	            "ภาษา": "fr",
	            "ลิงค์": "https:\/\/google.ca"
	        }
	    ],
	    "พารามิเตอร์": [
	        {
	            "ชื่อ": "เอฟเอฟ",
	            "ค่า": "3"
	        },
	        {
	            "อุปกรณ์": "gtm_source",
	            "ลิงค์": "API"
	        }
	    ]
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'วิธีการ': 'โพสต์',
    'url': 'https://urlkai.com/api/url/add',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "url": "https:\/\/google.com",
    "status": "ส่วนตัว",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "metatitle": "ไม่ใช่ Google",
    "metadescription": "ไม่ใช่คําอธิบายของ Google",
    "เมตาอิมเมจ": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
    "description": "สําหรับ facebook",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "แคมเปญ": 1,
    "ดีปลิงค์": {
        "อัตโนมัติ": จริง,
        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "ลิงค์": "https:\/\/google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "ลิงค์": "https:\/\/google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "ลิงค์": "https:\/\/google.com"
        }
    ],
    "languagetarget": [
        {
            "ภาษา": "th",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "ภาษา": "fr",
            "ลิงค์": "https:\/\/google.ca"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/url/add"
น้ําหนักบรรทุก = {
    "url": "https://google.com",
    "status": "ส่วนตัว",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "metatitle": "ไม่ใช่ Google",
    "metadescription": "ไม่ใช่คําอธิบายของ Google",
    "เมตาอิมเมจ": "https://www.mozilla.org/media/protocol/img/logos/firefox/browser/og.4ad05d4125a5.png",
    "description": "สําหรับ facebook",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "แคมเปญ": 1,
    "ดีปลิงค์": {
        "อัตโนมัติ": จริง,
        "แอปเปิ้ล": "https://apps.apple.com/us/app/google/id284815942",
        "google": "https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=สหรัฐฯ"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "link": "https://google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "link": "https://google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "link": "https://google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "link": "https://google.com"
        }
    ],
    "languagetarget": [
        {
            "ภาษา": "th",
            "link": "https://google.com"
        },
        {
            "ภาษา": "fr",
            "link": "https://google.ca"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/url/add");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "url": "https:\/\/google.com",
    "status": "ส่วนตัว",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "metatitle": "ไม่ใช่ Google",
    "metadescription": "ไม่ใช่คําอธิบายของ Google",
    "เมตาอิมเมจ": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
    "description": "สําหรับ facebook",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "แคมเปญ": 1,
    "ดีปลิงค์": {
        "อัตโนมัติ": จริง,
        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "ลิงค์": "https:\/\/google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "ลิงค์": "https:\/\/google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "ลิงค์": "https:\/\/google.com"
        }
    ],
    "languagetarget": [
        {
            "ภาษา": "th",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "ภาษา": "fr",
            "ลิงค์": "https:\/\/google.ca"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 3,
    "shorturl": "https:\/\/urlkai.com\/google"
}
```

###### ลิงค์ aktualisieren

วาง  `https://urlkai.com/api/url/:id/update`

Um einen Link zu aktualisieren, müssen Sie gültige Daten in JSON über eine PUT-Anforderung senden. Die Daten müssen wie unten gezeigt als Rohtext Ihrer Anfrage gesendet werden. Das folgende Beispiel zeigt alle Parameter, die Sie senden können, aber Sie müssen nicht alle senden (siehe Tabelle für weitere Informationen).

| **พารามิเตอร์** | **เบชไรบอง** |
| --- | --- |
| URL | (จําเป็น) URL แบบยาวเพื่อย่อ |
| ธรรมเนียม | (ไม่บังคับ) นามแฝงที่กําหนดเองแทนนามแฝงแบบสุ่ม |
| ประเภท | (ไม่บังคับ) ประเภทการเปลี่ยนเส้นทาง [โดยตรง, เฟรม, สาด] |
| รหัสผ่าน | (ไม่บังคับ) การป้องกันด้วยรหัสผ่าน |
| อาณาจักร | (ไม่บังคับ) โดเมนที่กําหนดเอง |
| หมด อายุ | (ไม่บังคับ) การหมดอายุสําหรับตัวอย่างลิงก์ 2021-09-28 23:11:16 |
| เป้าหมายทางภูมิศาสตร์ | (ไม่บังคับ) ข้อมูลการกําหนดเป้าหมายตามภูมิศาสตร์ |
| devicetarget | (ไม่บังคับ) ข้อมูลการกําหนดเป้าหมายอุปกรณ์ |
| languagetarget | (ไม่บังคับ) ข้อมูลการกําหนดเป้าหมายภาษา |
| เมตาไตเติ้ล | (ไม่บังคับ) ชื่อเมตา |
| เมตาคําอธิบาย | (ไม่บังคับ) คําอธิบายเมตา |
| เมตาอิมเมจ | (ไม่บังคับ) ลิงก์ไปยังรูปภาพ jpg หรือ png |
| พิก เซล | (ไม่บังคับ) อาร์เรย์ของรหัสพิกเซล |
| ช่อง | (ไม่บังคับ) รหัสช่อง |
| รณรงค์ | (ไม่บังคับ) รหัสแคมเปญ |
| ดีปลิงค์ | (ไม่บังคับ) ออบเจ็กต์ที่มีลิงก์ App Store เมื่อใช้สิ่งนี้ สิ่งสําคัญคือต้องตั้งค่าการกําหนดเป้าหมายอุปกรณ์ด้วย |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/url/:id/update' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
--data-raw '{
    "url": "https:\/\/google.com",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "ดีปลิงค์": {
        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "ลิงค์": "https:\/\/google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "ลิงค์": "https:\/\/google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "ลิงค์": "https:\/\/google.com"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}'
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/url/:id/update",
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ใส่"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    CURLOPT_POSTFIELDS => 
        '{
	    "url": "https:\/\/google.com",
	    "กําหนดเอง": "google",
	    "รหัสผ่าน": "ไมค์พาส",
	    "หมดอายุ": "2020-11-11 12:00:00",
	    "type": "สาด",
	    "พิกเซล": [
	        1,
	        2,
	        3,
	        4
	    ],
	    "ช่อง": 1,
	    "ดีปลิงค์": {
	        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
	        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
	    },
	    "เป้าหมายทางภูมิศาสตร์": [
	        {
	            "location": "แคนาดา",
	            "ลิงค์": "https:\/\/google.ca"
	        },
	        {
	            "location": "สหรัฐอเมริกา",
	            "ลิงค์": "https:\/\/google.us"
	        }
	    ],
	    "devicetarget": [
	        {
	            "อุปกรณ์": "ไอโฟน",
	            "ลิงค์": "https:\/\/google.com"
	        },
	        {
	            "อุปกรณ์": "แอนดรอยด์",
	            "ลิงค์": "https:\/\/google.com"
	        }
	    ],
	    "พารามิเตอร์": [
	        {
	            "ชื่อ": "เอฟเอฟ",
	            "ค่า": "3"
	        },
	        {
	            "อุปกรณ์": "gtm_source",
	            "ลิงค์": "API"
	        }
	    ]
	}',
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'method': 'ใส่',
    'url': 'https://urlkai.com/api/url/:id/update',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    เนื้อหา: JSON.stringify({
    "url": "https:\/\/google.com",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "ดีปลิงค์": {
        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "ลิงค์": "https:\/\/google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "ลิงค์": "https:\/\/google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "ลิงค์": "https:\/\/google.com"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}),
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/url/:id/update"
น้ําหนักบรรทุก = {
    "url": "https://google.com",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "ดีปลิงค์": {
        "แอปเปิ้ล": "https://apps.apple.com/us/app/google/id284815942",
        "google": "https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=สหรัฐฯ"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "link": "https://google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "link": "https://google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "link": "https://google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "link": "https://google.com"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/url/:id/update");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{
    "url": "https:\/\/google.com",
    "กําหนดเอง": "google",
    "รหัสผ่าน": "ไมค์พาส",
    "หมดอายุ": "2020-11-11 12:00:00",
    "type": "สาด",
    "พิกเซล": [
        1,
        2,
        3,
        4
    ],
    "ช่อง": 1,
    "ดีปลิงค์": {
        "แอปเปิ้ล": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
        "google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
    },
    "เป้าหมายทางภูมิศาสตร์": [
        {
            "location": "แคนาดา",
            "ลิงค์": "https:\/\/google.ca"
        },
        {
            "location": "สหรัฐอเมริกา",
            "ลิงค์": "https:\/\/google.us"
        }
    ],
    "devicetarget": [
        {
            "อุปกรณ์": "ไอโฟน",
            "ลิงค์": "https:\/\/google.com"
        },
        {
            "อุปกรณ์": "แอนดรอยด์",
            "ลิงค์": "https:\/\/google.com"
        }
    ],
    "พารามิเตอร์": [
        {
            "ชื่อ": "เอฟเอฟ",
            "ค่า": "3"
        },
        {
            "อุปกรณ์": "gtm_source",
            "ลิงค์": "API"
        }
    ]
}", System.Text.Encoding.UTF8, "แอปพลิเคชัน/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "รหัส": 3,
    "short": "https:\/\/urlkai.com\/google"
}
```

###### ลิงค์ löschen

ลบ  `https://urlkai.com/api/url/:id/delete`

Um einen Link zu löschen, müssen Sie eine DELETE-Anfrage senden.

cURL
PHP
Node.js
Python
C#

```
curl --location --request ลบ 'https://urlkai.com/api/url/:id/delete' \
--header 'การอนุญาต: ผู้ถือ YOURAPIKEY' \
--header 'ประเภทเนื้อหา: application/json' \
```

```
$curl = curl_init();

curl_setopt_array($curl, อาร์เรย์(
    CURLOPT_URL => "https://urlkai.com/api/url/:id/delete"
    CURLOPT_RETURNTRANSFER =>จริง
    CURLOPT_MAXREDIRS => 2,
    CURLOPT_TIMEOUT => 10
    CURLOPT_FOLLOWLOCATION =>จริง
    CURLOPT_CUSTOMREQUEST => "ลบ"
    CURLOPT_HTTPHEADER => [
        "การอนุญาต: ผู้ถือ YOURAPIKEY",
        "ประเภทเนื้อหา: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
เสียงสะท้อน$response;
```

```
คําขอ var = require('คําขอ');
ตัวเลือก var = {
    'เมธอด': 'ลบ',
    'url': 'https://urlkai.com/api/url/:id/delete',
    'ส่วนหัว': {
        'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
        'ประเภทเนื้อหา': 'application/json'
    },
    
};
request(ตัวเลือก, ฟังก์ชัน (ข้อผิดพลาด, การตอบสนอง) {
    ถ้า (ข้อผิดพลาด) โยน ใหม่ Error(error);
    console.log(ตอบสนอง.ร่างกาย);
});
```

```
คําขอนําเข้า
url = "https://urlkai.com/api/url/:id/delete"
น้ําหนักบรรทุก = {}
ส่วนหัว = {
    'การอนุญาต': 'ผู้ถือ YOURAPIKEY',
    'ประเภทเนื้อหา': 'application/json'
}
response = requests.request("ลบ", url, headers=headers, json=เพย์โหลด)
พิมพ์(response.text)
```

```
var ไคลเอ็นต์ = ใหม่ HttpClient();
คําขอ var = ใหม่ HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/url/:id/delete");
ขอร้อง  Headers.Add("การอนุญาต", "ผู้ถือ YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ขอร้อง  เนื้อหา = เนื้อหา;
การตอบสนอง var = รอไคลเอ็นต์ SendAsync(คําขอ);
การตอบสนอง  EnsureSuccessStatusCode();
Console.WriteLine(รอการตอบกลับ Content.ReadAsStringAsync());
```

###### Antwort des Servers

```
{
    "ข้อผิดพลาด": 0,
    "message": "ลบลิงก์เรียบร้อยแล้ว"
}
```