# Developers
**Source:** https://ko.urlkai.com/id/developers
**Language:** Korean

---

물라이 

오텐티카시 

바타스 타리프 

페낭가난 응답 

###### 아쿤

다파트칸 아쿤 

쿤

###### 도메인 베르메렉

브랜드 도메인 나열 

브랜드 도메인 만들기 

페르바루이 도메인 

도메인 삭제

###### 파일

목록 파일 

파일 업로드

###### 함파란 CTA

CTA 오버레이 나열

###### 캄파녜

캠페인 나열 

부앗 캄파니예 

캠페인에 링크 할당하기 

페르바루이 캄파녜 

캠페인 삭제

###### 코드 QR

QR 코드 나열 

QR 코드 다운로드 

부앗 코데 QR 

QR 코드 업데이트 

하푸스 코드 QR

###### 펨부카 쿠스톰

사용자 지정 스플래시 나열

###### 픽셀

목록 픽셀 

픽셀 만들기 

페르바루이 픽셀 

픽셀 삭제

###### 타우탄

링크 나열 

단일 링크 받기 

페르싱캇 타우탄 

페르바루이 타우탄 

하푸스 타우탄

###### 살루란

채널 나열 

채널 항목 나열 

부앗 살루란 

채널에 항목 할당하기 

페르바루이 살루란 

채널 삭제

#### Referensi API untuk Pengembang

###### 물라이

Kunci API diperlukan 한천 permintaan diproses oleh sistem. Setelah pengguna mendaftar, kunci API secara otomatis dibuat untuk pengguna ini. Kunci API harus dikirim dengan setiap permintaan (lihat contoh lengkap di bawah). Jika kunci API tidak dikirim atau kedaluwarsa, akan terjadi kesalahan. Pastikan untuk merahasiakan kunci API Anda untuk mencegah penyalahgunaan.

###### 오텐티카시

Untuk mengautentikasi dengan sistem API, Anda perlu mengirim kunci API sebagai token otorisasi dengan setiap permintaan. Anda dapat melihat contoh kode di bawah ini.

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/account' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문: ''
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/account"
페이로드 = {}
헤더 = {
  'Authorization': '무기명 YOURAPIKEY',
  '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### 바타스 타리프

API kami memiliki pembatas kecepatan untuk melindungi dari lonjakan permintaan untuk memaksimalkan stabilitasnya. Pembatas tarif kami saat ini dibatasi pada 1 menit당 30 permintaan. 요금은 가입한 플랜에 따라 변경될 수 있습니다.

Beberapa tajuk akan dikirim bersama respons dan ini dapat diperiksa untuk menentukan berbagai informasi tentang permintaan.

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

###### 페낭가난 응답

Semua respons API dikembalikan dalam format JSON secara default. Untuk mengubah ini menjadi data yang dapat digunakan, fungsi yang sesuai perlu digunakan sesuai dengan bahasa. Di PHP, fungsi json\_decode() dapat digunakan untuk mengonversi data menjadi objek (default) atau array (setel parameter kedua ke true). Sangat penting untuk memeriksa kunci kesalahan karena memberikan informasi apakah ada kesaláhan atau tidak. 그리고 헤딩슛을 성공시켰다.

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

---

#### 아쿤 - Open in ChatGPT - Open in Claude

###### 다파트칸 아쿤

가져오기  `https://urlkai.com/api/account`

Untuk mendapatkan informasi tentang akun, Anda dapat mengirim permintaan ke titik akhir ini dan itu akan mengembalikan data pada akun.

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/account' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/account',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/account"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "데이터": {
        "아이디": 1,
        "이메일": " [이메일 보호] ",
        "사용자 이름": "샘플 사용자",
        "avatar": "https:\/\/domain.com/content\/avatar.png",
        "상태": "프로",
        "만료": "2022-11-15 15:00:00",
        "등록됨": "2020-11-10 18:01:43"
    }
}
```

###### 쿤

놓다  `https://urlkai.com/api/account/update`

Untuk memperbarui informasi di akun, Anda dapat mengirim permintaan ke titik akhir ini dan itu akan memperbarui data di akun.

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/account/update' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "이메일": " [이메일 보호] ",
    "비밀번호": "새 비밀번호"
}'
```

```
$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 => 
        '{
	    "이메일": " [이메일 보호] ",
	    "비밀번호": "새 비밀번호"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/account/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "이메일": " [이메일 보호] ",
    "비밀번호": "새 비밀번호"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/account/update"
페이로드 = {
    "이메일": " [이메일 보호] ",
    "비밀번호": "새 비밀번호"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/account/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "이메일": " [이메일 보호] ",
    "비밀번호": "새 비밀번호"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "계정이 성공적으로 업데이트되었습니다."
}
```

---

#### 도메인 베르메렉 - 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 GET 'https://urlkai.com/api/domains?limit=2&page=1' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/domains?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/domains?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "도메인": [
            {
                "아이디": 1,
                "domain": "https:\/\/domain1.com",
                "redirectroot": "https:\/\/rootdomain.com",
                "redirect404": "https:\/\/rootdomain.com\/404"
            },
            {
                "아이디": 2,
                "domain": "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 --POST 'https://urlkai.com/api/domain/add' 요청 \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "domain": "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 => 
        '{
	    "domain": "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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "domain": "https:\/\/domain1.com",
    "redirectroot": "https:\/\/rootdomain.com",
    "redirect404": "https:\/\/rootdomain.com\/404"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/domain/add"
페이로드 = {
    "도메인": "https://domain1.com",
    "리다이렉트루트": "https://rootdomain.com",
    "redirect404": "https://rootdomain.com/404"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("POST", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/domain/add");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "domain": "https:\/\/domain1.com",
    "redirectroot": "https:\/\/rootdomain.com",
    "redirect404": "https:\/\/rootdomain.com\/404"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 1
}
```

###### 페르바루이 도메인

놓다  `https://urlkai.com/api/domain/:id/update`

브랜드 도메인을 업데이트하려면 PUT 요청을 통해 JSON으로 유효한 데이터를 보내야 합니다. 데이터는 아래와 같이 요청의 원시 본문으로 전송되어야 합니다. 아래 예제에서는 보낼 수 있는 모든 매개 변수를 보여 주지만 모두 보낼 필요는 없습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 리다이렉터루트 | (선택 사항) 누군가 도메인을 방문할 때 루트 리디렉션 |
| 리디렉션404 | (선택 사항) 사용자 지정 404 리디렉션 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/domain/:id/update' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "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 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/domain/:id/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "redirectroot": "https:\/\/rootdomain-new.com",
    "redirect404": "https:\/\/rootdomain-new.com\/404"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/domain/:id/update"
페이로드 = {
    "리다이렉트 루트": "https://rootdomain-new.com",
    "redirect404": "https://rootdomain-new.com/404"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/domain/:id/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "redirectroot": "https:\/\/rootdomain-new.com",
    "redirect404": "https:\/\/rootdomain-new.com\/404"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "도메인이 성공적으로 업데이트되었습니다."
}
```

###### 도메인 삭제

삭제하다  `https://urlkai.com/api/domain/:id/delete`

도메인을 삭제하려면 DELETE 요청을 보내야 합니다.

cURL
PHP
Node.js
Python
C#

```
curl --location --request DELETE 'https://urlkai.com/api/domain/:id/delete' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/domain/:id/delete"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("삭제", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/domain/:id/delete");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "도메인이 성공적으로 삭제되었습니다."
}
```

---

#### 파일 - 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());
```

###### Tanggapan 서버

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

###### 파일 업로드

올리기  `https://urlkai.com/api/files/upload/:filename?name=My+File`

파일을 업로드하려면 이진 데이터를 게시물 본문으로 보내세요. URL에 :filename 대신 확장자를 포함한 파일 이름을 보내야 합니다(예: 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());
```

###### Tanggapan 서버

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

---

#### 함파란 CTA - Open in ChatGPT - Open in Claude

###### CTA 오버레이 나열

가져오기  `https://urlkai.com/api/overlay?limit=2&page=1`

API를 통해 cta 오버레이를 가져오려면 이 엔드포인트를 사용할 수 있습니다. 데이터를 필터링할 수도 있습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 한계 | (선택 사항) 페이지별 데이터 결과 |
| 페이지 | (선택 사항) 현재 페이지 요청 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/overlay?limit=2&page=1' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/overlay?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/overlay?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "CTA": [
            {
                "아이디": 1,
                "type": "메시지",
                "name": "제품 1 프로모션",
                "date": "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/campaigns?limit=2&page=1`

API를 통해 캠페인을 가져오려면 이 엔드포인트를 사용할 수 있습니다. 데이터를 필터링할 수도 있습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 한계 | (선택 사항) 페이지별 데이터 결과 |
| 페이지 | (선택 사항) 현재 페이지 요청 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/campaigns?limit=2&page=1' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/campaigns?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/campaigns?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "캠페인": [
            {
                "아이디": 1,
                "name": "샘플 캠페인",
                "공개": 거짓,
                "로테이터": 거짓,
                "list": "https:\/\/domain.com\/u\/admin\/list-1"
            },
            {
                "아이디": 2,
                "domain": "페이스북 캠페인",
                "공개": 사실,
                "rotator": "https:\/\/domain.com\/r\/test",
                "list": "https:\/\/domain.com\/u\/admin\/test-2"
            }
        ]
    }
}
```

###### 부앗 캄파니예

올리기  `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());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "id": 3,
    "도메인": "새로운 캠페인",
    "공공": 참,
    "회전자": "https:\/\/domain.com\/r\/new-campaign",
    "목록": "https:\/\/domain.com\/u\/admin\/new-campaign-3"
}
```

###### 캠페인에 링크 할당하기

올리기  `https://urlkai.com/api/campaign/:campaignid/assign/:linkid`

이 엔드포인트를 사용하여 캠페인에 짧은 링크를 할당할 수 있습니다. 엔드포인트에는 캠페인 ID와 단축 링크 ID가 필요합니다.

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/campaign/:campaignid/assign/:linkid"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("POST", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "링크가 캠페인에 성공적으로 추가되었습니다."
}
```

###### 페르바루이 캄파녜

놓다  `https://urlkai.com/api/campaign/:id/update`

캠페인을 업데이트하려면 PUT 요청을 통해 JSON으로 유효한 데이터를 보내야 합니다. 데이터는 아래와 같이 요청의 원시 본문으로 전송되어야 합니다. 아래 예제에서는 보낼 수 있는 모든 매개 변수를 보여 주지만 모두 보낼 필요는 없습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 이름 | (필수) 캠페인 이름 |
| 민달팽이 | (선택 사항) 로테이터 슬러그 |
| 공공의 | (선택 사항) 접근 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/campaign/:id/update' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "name": "트위터 캠페인",
    "slug": "트위터 캠페인",
    "공개": 참
}'
```

```
$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": "트위터 캠페인",
	    "slug": "트위터 캠페인",
	    "공개": 참
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/campaign/:id/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "name": "트위터 캠페인",
    "slug": "트위터 캠페인",
    "공개": 참
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/campaign/:id/update"
페이로드 = {
    "name": "트위터 캠페인",
    "slug": "트위터 캠페인",
    "공개": 참
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/campaign/:id/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "name": "트위터 캠페인",
    "slug": "트위터 캠페인",
    "공개": 참
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 3,
    "domain": "트위터 캠페인",
    "공개": 사실,
    "rotator": "https:\/\/domain.com\/r\/twitter-campaign",
    "list": "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 DELETE 'https://urlkai.com/api/campaign/:id/delete' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/campaign/:id/delete"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("삭제", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/campaign/:id/delete");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "캠페인이 성공적으로 삭제되었습니다."
}
```

---

#### 코드 QR - Open in ChatGPT - Open in Claude

###### QR 코드 나열

가져오기  `https://urlkai.com/api/qr?limit=2&page=1`

Untuk mendapatkan kode QR Anda melalui API, Anda dapat menggunakan titik akhir ini. Anda juga dapat memfilter data (Lihat tabel untuk info selengkapnya).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 한계 | (선택 사항) 페이지별 데이터 결과 |
| 페이지 | (선택 사항) 현재 페이지 요청 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/qr?limit=2&page=1' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/qr?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/qr?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "qrs": [
            {
                "아이디": 2,
                "link": "https:\/\/urlkai.com\/qr\/a2d5e",
                "스캔": 0,
                "이름": "구글",
                "날짜": "2020-11-10 18:01:43"
            },
            {
                "아이디": 1,
                "link": "https:\/\/urlkai.com\/qr\/b9edfe",
                "스캔": 5,
                "name": "Google 캐나다",
                "date": "2020-11-10 18:00:25"
            }
        ]
    }
}
```

###### QR 코드 다운로드

가져오기  `https://urlkai.com/api/qr/:id`

QR 파일 ID를 사용하여 세부 사항을 확인할 수 있으며, 이 API를 사용하면 이 기능을 사용할 수 있습니다.

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/qr/:id' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/qr/:id',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/qr/:id"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr/:id");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "세부 사항": {
        "아이디": 1,
        "link": "https:\/\/urlkai.com\/qr\/b9edfe",
        "스캔": 5,
        "name": "Google 캐나다",
        "date": "2020-11-10 18:00:25"
    },
    "데이터": {
        "클릭": 1,
        "uniqueClicks": 1,
        "상위 국가": {
            "알 수 없음": "1"
        },
        "상단 리퍼러": {
            "직접, 이메일 및 기타": "1"
        },
        "상단 브라우저": {
            "크롬": "1"
        },
        "탑오스": {
            "윈도우 10": "1"
        },
        "소셜 카운트": {
            "페이스 북": 0,
            "트위터": 0,
            "인스타그램": 0
        }
    }
}
```

###### 부앗 코데 QR

올리기  `https://urlkai.com/api/qr/add`

QR 코드를 생성하려면 POST 요청을 통해 JSON으로 유효한 데이터를 보내야 합니다. 데이터는 아래와 같이 요청의 원시 본문으로 전송되어야 합니다. 아래 예제에서는 보낼 수 있는 모든 매개 변수를 보여 주지만 모두 보낼 필요는 없습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 형 | (필수) text | vCard | 링크 | 이메일 | 전화 | 문자 메시지 | 와이파이 |
| 데이터 | (필수) QR 코드 내부에 삽입될 데이터입니다. 데이터는 유형에 따라 문자열 또는 배열일 수 있습니다 |
| 배경 | (선택 사항) RGB 색상 예 : rgb (255,255,255) |
| 전경 | (선택 사항) RGB 색상 예 : rgb(0,0,0) |
| 로고 | (선택 사항) 로고 경로(png 또는 jpg) |
| 이름 | (선택 사항) QR 코드 이름 |

cURL
PHP
Node.js
Python
C#

```
curl --location --POST 'https://urlkai.com/api/qr/add' 요청 \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "유형": "링크",
    "data": "https:\/\/google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png",
    "이름": "QR 코드 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 => 
        '{
	    "유형": "링크",
	    "data": "https:\/\/google.com",
	    "배경": "rgb(255,255,255)",
	    "전경": "rgb(0,0,0)",
	    "logo": "https:\/\/site.com\/logo.png",
	    "이름": "QR 코드 API"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': '게시',
    'url': 'https://urlkai.com/api/qr/add',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "유형": "링크",
    "data": "https:\/\/google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png",
    "이름": "QR 코드 API"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/qr/add"
페이로드 = {
    "유형": "링크",
    "데이터": "https://google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "로고": "https://site.com/logo.png",
    "이름": "QR 코드 API"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("POST", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/qr/add");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "유형": "링크",
    "data": "https:\/\/google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png",
    "이름": "QR 코드 API"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 3,
    "link": "https:\/\/urlkai.com\/qr\/a58f79"
}
```

###### QR 코드 업데이트

놓다  `https://urlkai.com/api/qr/:id/update`

Untuk memperbarui Kode QR, Anda perlu mengirim data yang valid di JSON melalui permintaan PUT. Data harus dikirim sebagai badan mentah permintaan Anda seperti yang ditunjukkan di bawah ini. Contoh di bawah ini menunjukkan semua parameter yang dapat Anda kirim tetapi Anda tidak diharuskan untuk mengirim semua (Lihat tabel untuk info lebih lanjut).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 데이터 | (필수) QR 코드 내부에 삽입될 데이터입니다. 데이터는 유형에 따라 문자열 또는 배열일 수 있습니다 |
| 배경 | (선택 사항) 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' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "유형": "링크",
    "data": "https:\/\/google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "logo": "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 => 
        '{
	    "유형": "링크",
	    "data": "https:\/\/google.com",
	    "배경": "rgb(255,255,255)",
	    "전경": "rgb(0,0,0)",
	    "logo": "https:\/\/site.com\/logo.png"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/qr/:id/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "유형": "링크",
    "data": "https:\/\/google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/qr/:id/update"
페이로드 = {
    "유형": "링크",
    "데이터": "https://google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "로고": "https://site.com/logo.png"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/qr/:id/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "유형": "링크",
    "data": "https:\/\/google.com",
    "배경": "rgb(255,255,255)",
    "전경": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "QR이 성공적으로 업데이트되었습니다."
}
```

###### 하푸스 코드 QR

삭제하다  `https://urlkai.com/api/qr/:id/delete`

Untuk menghapus kode QR, Anda perlu mengirim permintaan DELETE.

cURL
PHP
Node.js
Python
C#

```
curl --location --request DELETE 'https://urlkai.com/api/qr/:id/delete' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/qr/:id/delete"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("삭제", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/qr/:id/delete");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "QR 코드가 성공적으로 삭제되었습니다."
}
```

---

#### 펨부카 쿠스톰 - Open in ChatGPT - Open in Claude

###### 사용자 지정 스플래시 나열

가져오기  `https://urlkai.com/api/splash?limit=2&page=1`

API를 통해 사용자 지정 시작 페이지를 가져오려면 이 엔드포인트를 사용할 수 있습니다. 데이터를 필터링할 수도 있습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 한계 | (선택 사항) 페이지별 데이터 결과 |
| 페이지 | (선택 사항) 현재 페이지 요청 |

cURL
PHP
Node.js
Python
C#

```
컬 --location --request GET 'https://urlkai.com/api/splash?limit=2&page=1' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/splash?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/splash?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "스플래쉬": [
            {
                "아이디": 1,
                "name": "제품 1 프로모션",
                "date": "2020-11-10 18:00:00"
            },
            {
                "아이디": 2,
                "name": "제품 2 프로모션",
                "날짜": "2020-11-10 18:10:00"
            }
        ]
    }
}
```

---

#### 픽셀 - 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' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/pixels?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/pixels?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "픽셀": [
            {
                "아이디": 1,
                "유형": "GTMpixel",
                "이름": "GTM 픽셀",
                "태그": "GA-123456789",
                "date": "2020-11-10 18:00:00"
            },
            {
                "아이디": 2,
                "유형": "트위터픽셀",
                "name": "트위터 픽셀",
                "태그": "1234567",
                "날짜": "2020-11-10 18:10:00"
            }
        ]
    }
}
```

###### 픽셀 만들기

올리기  `https://urlkai.com/api/pixel/add`

이 엔드포인트를 사용하여 픽셀을 만들 수 있습니다. 픽셀 유형과 태그를 보내야 합니다.

| **매개 변수** | **케테랑간** |
| --- | --- |
| 형 | (필수) gtmpixel | 가픽셀 | FBWipixel | 애드워즈픽셀 | 링크드인픽셀 | 트위터픽셀 | 애드롤픽셀 | 쿠오라픽셀 | 핀터레스트 | 빙 | 스냅챗 | 레딧 | 틱톡 |
| 이름 | (필수) 픽셀의 맞춤 이름 |
| 태그 | (필수) 픽셀의 태그 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/pixel/add' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "유형": "GTMpixel",
    "name": "내 GTM",
    "태그": "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",
	    "태그": "GTM-ABCDE"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': '게시',
    'url': 'https://urlkai.com/api/pixel/add',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "유형": "GTMpixel",
    "name": "내 GTM",
    "태그": "GTM-ABCDE"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/pixel/add"
페이로드 = {
    "유형": "GTMpixel",
    "name": "내 GTM",
    "태그": "GTM-ABCDE"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("POST", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/pixel/add");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "유형": "GTMpixel",
    "name": "내 GTM",
    "태그": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 1
}
```

###### 페르바루이 픽셀

놓다  `https://urlkai.com/api/pixel/:id/update`

픽셀을 업데이트하려면 PUT 요청을 통해 JSON으로 유효한 데이터를 보내야 합니다. 데이터는 아래와 같이 요청의 원시 본문으로 전송되어야 합니다. 아래 예제에서는 보낼 수 있는 모든 매개 변수를 보여 주지만 모두 보낼 필요는 없습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 이름 | (선택 사항) 픽셀의 맞춤 이름 |
| 태그 | (필수) 픽셀의 태그 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/pixel/:id/update' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "name": "내 GTM",
    "태그": "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",
	    "태그": "GTM-ABCDE"
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/pixel/:id/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "name": "내 GTM",
    "태그": "GTM-ABCDE"
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/pixel/:id/update"
페이로드 = {
    "name": "내 GTM",
    "태그": "GTM-ABCDE"
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/pixel/:id/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "name": "내 GTM",
    "태그": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "픽셀이 성공적으로 업데이트되었습니다."
}
```

###### 픽셀 삭제

삭제하다  `https://urlkai.com/api/pixel/:id/delete`

픽셀을 삭제하려면 DELETE 요청을 보내야 합니다.

cURL
PHP
Node.js
Python
C#

```
curl --location --request DELETE 'https://urlkai.com/api/pixel/:id/delete' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/pixel/:id/delete"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("삭제", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/pixel/:id/delete");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "픽셀이 성공적으로 삭제되었습니다."
}
```

---

#### 타우탄 - Open in ChatGPT - Open in Claude

###### 링크 나열

가져오기  `https://urlkai.com/api/urls?limit=2&page=1o=date`

Untuk mendapatkan tautan Anda melalui API, Anda dapat menggunakan titik akhir ini. Anda juga dapat memfilter data (Lihat tabel untuk info selengkapnya).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 한계 | (선택 사항) 페이지별 데이터 결과 |
| 페이지 | (선택 사항) 현재 페이지 요청 |
| 주문 | (선택 사항) 날짜 또는 클릭 사이에 데이터 정렬 |
| 짧은 | (선택 사항) 짧은 URL을 사용하여 검색합니다. short 매개 변수를 사용하면 다른 모든 매개 변수가 무시되고 일치하는 항목이 있으면 단일 링크 응답이 반환됩니다. |
| q | (선택 사항) 키워드를 사용하여 링크 검색 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/urls?limit=2&page=1o=date' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/urls?limit=2&page=1o=date',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/urls?limit=2&page=1o=date"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "urls": [
            {
                "아이디": 2,
                "별칭": "구글",
                "shorturl": "https:\/\/urlkai.com\/구글",
                "longurl": "https:\/\/google.com",
                "클릭": 0,
                "title": "구글",
                "설명": "",
                "날짜": "2020-11-10 18:01:43"
            },
            {
                "아이디": 1,
                "별칭": "구글캐나다",
                "shorturl": "https:\/\/urlkai.com\/googlecanada",
                "longurl": "https:\/\/google.ca",
                "클릭": 0,
                "title": "Google 캐나다",
                "설명": "",
                "date": "2020-11-10 18:00:25"
            }
        ]
    }
}
```

###### 단일 링크 받기

가져오기  `https://urlkai.com/api/url/:id`

Untuk mendapatkan detail untuk satu tautan melalui API, Anda dapat menggunakan titik akhir ini.

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/url/:id' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/url/:id',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/url/:id"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/url/:id");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 1,
    "세부 사항": {
        "아이디": 1,
        "shorturl": "https:\/\/urlkai.com\/googlecanada",
        "longurl": "https:\/\/google.com",
        "title": "구글",
        "설명": "",
        "위치": {
            "canada": "https:\/\/google.ca",
            "United States": "https:\/\/google.us"
        },
        "장치": {
            "아이폰": "https:\/\/google.com",
            "안드로이드": "https:\/\/google.com"
        },
        "만료": null,
        "날짜": "2020-11-10 18:01:43"
    },
    "데이터": {
        "클릭": 0,
        "uniqueClicks": 0,
        "상위 국가": 0,
        "상단 리퍼러": 0,
        "topBrowsers": 0,
        "탑Os": 0,
        "소셜 카운트": {
            "페이스 북": 0,
            "트위터": 0,
            "구글": 0
        }
    }
}
```

###### 페르싱캇 타우탄

올리기  `https://urlkai.com/api/url/add`

Untuk mempersingkat tautan, Anda perlu mengirim data yang valid di JSON melalui permintaan POST. Data harus dikirim sebagai badan mentah permintaan Anda seperti yang ditunjukkan di bawah ini. Contoh di bawah ini menunjukkan semua parameter yang dapat Anda kirim tetapi Anda tidak diharuskan untuk mengirim semua (Lihat tabel untuk info lebih lanjut).

| **매개 변수** | **케테랑간** |
| --- | --- |
| url입니다. | (필수) 짧게 할 긴 URL입니다. |
| 관습 | (선택 사항) 임의 별칭 대신 사용자 지정 별칭. |
| 형 | (선택 사항) 리디렉션 유형[직접, 프레임, 스플래시], 전용 *아이디* 사용자 지정 스플래시 페이지 또는 *오버레이 ID* CTA 페이지의 경우 |
| 암호 | (선택 사항) 비밀번호 보호 |
| 도메인 | (선택 사항) 사용자 지정 도메인 |
| 만료 | (선택 사항) 링크 예제에 대한 만료 2021-09-28 23:11:16 |
| 지역 타겟 | (선택 사항) 지역 타겟팅 데이터 |
| 디바이스 대상 | (선택 사항) 기기 타겟팅 데이터 |
| 언어대상 | (선택 사항) 언어 타겟팅 데이터 |
| 메타타이틀 | (선택 사항) 메타 제목 |
| 메타 설명 | (선택 사항) 메타 설명 |
| 메타이미지 | (선택 사항) jpg 또는 png 이미지에 링크 |
| 묘사 | (선택 사항) 메모 또는 설명 |
| 픽셀 | (선택 사항) 픽셀 ID의 배열 |
| 채널 | (선택 사항) 채널 ID |
| 캠페인 | (선택 사항) 캠페인 ID |
| 딥링크(deeplink) | (선택 사항) 앱 스토어 링크를 포함하는 객체. 이 기능을 사용할 때는 기기 타겟팅도 설정하는 것이 중요합니다. (신규) 이제 매개변수 "auto"를 true로 설정하면 제공된 긴 링크에서 딥 링크를 자동으로 생성할 수 있습니다. |
| 상태 | (선택 사항) *공공의* 또는 *private(기본값)* |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/url/add' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "url": "https:\/\/google.com",
    "상태": "비공개",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "2020-11-11 12:00:00",
    "type": "스플래쉬",
    "metatitle": "구글이 아님",
    "metadescription": "구글 설명이 아님",
    "메타이미지": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
    "description": "페이스북의 경우",
    "픽셀": [
        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": "캐나다",
            "link": "https:\/\/google.ca"
        },
        {
            "location": "미국",
            "link": "https:\/\/google.us"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https:\/\/google.com"
        },
        {
            "device": "안드로이드",
            "link": "https:\/\/google.com"
        }
    ],
    "언어 대상": [
        {
            "언어": "ko",
            "link": "https:\/\/google.com"
        },
        {
            "언어": "fr",
            "link": "https:\/\/google.ca"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "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",
	    "상태": "비공개",
	    "사용자 지정": "구글",
	    "비밀번호": "마이패스",
	    "expiry": "2020-11-11 12:00:00",
	    "type": "스플래쉬",
	    "metatitle": "구글이 아님",
	    "metadescription": "구글 설명이 아님",
	    "메타이미지": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
	    "description": "페이스북의 경우",
	    "픽셀": [
	        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": "캐나다",
	            "link": "https:\/\/google.ca"
	        },
	        {
	            "location": "미국",
	            "link": "https:\/\/google.us"
	        }
	    ],
	    "장치 대상": [
	        {
	            "device": "아이폰",
	            "link": "https:\/\/google.com"
	        },
	        {
	            "device": "안드로이드",
	            "link": "https:\/\/google.com"
	        }
	    ],
	    "언어 대상": [
	        {
	            "언어": "ko",
	            "link": "https:\/\/google.com"
	        },
	        {
	            "언어": "fr",
	            "link": "https:\/\/google.ca"
	        }
	    ],
	    "매개변수": [
	        {
	            "이름": "aff",
	            "값": "3"
	        },
	        {
	            "장치": "gtm_source",
	            "링크": "API"
	        }
	    ]
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': '게시',
    'url': 'https://urlkai.com/api/url/add',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "url": "https:\/\/google.com",
    "상태": "비공개",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "2020-11-11 12:00:00",
    "type": "스플래쉬",
    "metatitle": "구글이 아님",
    "metadescription": "구글 설명이 아님",
    "메타이미지": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
    "description": "페이스북의 경우",
    "픽셀": [
        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": "캐나다",
            "link": "https:\/\/google.ca"
        },
        {
            "location": "미국",
            "link": "https:\/\/google.us"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https:\/\/google.com"
        },
        {
            "device": "안드로이드",
            "link": "https:\/\/google.com"
        }
    ],
    "언어 대상": [
        {
            "언어": "ko",
            "link": "https:\/\/google.com"
        },
        {
            "언어": "fr",
            "link": "https:\/\/google.ca"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "3"
        },
        {
            "장치": "gtm_source",
            "링크": "API"
        }
    ]
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/url/add"
페이로드 = {
    "url": "https://google.com",
    "상태": "비공개",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "2020-11-11 12:00:00",
    "type": "스플래쉬",
    "metatitle": "구글이 아님",
    "metadescription": "구글 설명이 아님",
    "메타이미지": "https://www.mozilla.org/media/protocol/img/logos/firefox/browser/og.4ad05d4125a5.png",
    "description": "페이스북의 경우",
    "픽셀": [
        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"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https://google.com"
        },
        {
            "device": "안드로이드",
            "link": "https://google.com"
        }
    ],
    "언어 대상": [
        {
            "언어": "ko",
            "link": "https://google.com"
        },
        {
            "언어": "fr",
            "link": "https://google.ca"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "3"
        },
        {
            "장치": "gtm_source",
            "링크": "API"
        }
    ]
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("POST", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/url/add");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "url": "https:\/\/google.com",
    "상태": "비공개",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "2020-11-11 12:00:00",
    "type": "스플래쉬",
    "metatitle": "구글이 아님",
    "metadescription": "구글 설명이 아님",
    "메타이미지": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
    "description": "페이스북의 경우",
    "픽셀": [
        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": "캐나다",
            "link": "https:\/\/google.ca"
        },
        {
            "location": "미국",
            "link": "https:\/\/google.us"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https:\/\/google.com"
        },
        {
            "device": "안드로이드",
            "link": "https:\/\/google.com"
        }
    ],
    "언어 대상": [
        {
            "언어": "ko",
            "link": "https:\/\/google.com"
        },
        {
            "언어": "fr",
            "link": "https:\/\/google.ca"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "3"
        },
        {
            "장치": "gtm_source",
            "링크": "API"
        }
    ]
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 3,
    "shorturl": "https:\/\/urlkai.com\/google"
}
```

###### 페르바루이 타우탄

놓다  `https://urlkai.com/api/url/:id/update`

Untuk memperbarui tautan, Anda perlu mengirim data yang valid di JSON melalui permintaan PUT. Data harus dikirim sebagai badan mentah permintaan Anda seperti yang ditunjukkan di bawah ini. Contoh di bawah ini menunjukkan semua parameter yang dapat Anda kirim tetapi Anda tidak diharuskan untuk mengirim semua (Lihat tabel untuk info lebih lanjut).

| **매개 변수** | **케테랑간** |
| --- | --- |
| url입니다. | (필수) 짧게 할 긴 URL입니다. |
| 관습 | (선택 사항) 임의 별칭 대신 사용자 지정 별칭. |
| 형 | (선택 사항) 리디렉션 유형 [direct, frame, splash] |
| 암호 | (선택 사항) 비밀번호 보호 |
| 도메인 | (선택 사항) 사용자 지정 도메인 |
| 만료 | (선택 사항) 링크 예제에 대한 만료 2021-09-28 23:11:16 |
| 지역 타겟 | (선택 사항) 지역 타겟팅 데이터 |
| 디바이스 대상 | (선택 사항) 기기 타겟팅 데이터 |
| 언어대상 | (선택 사항) 언어 타겟팅 데이터 |
| 메타타이틀 | (선택 사항) 메타 제목 |
| 메타 설명 | (선택 사항) 메타 설명 |
| 메타이미지 | (선택 사항) jpg 또는 png 이미지에 링크 |
| 픽셀 | (선택 사항) 픽셀 ID의 배열 |
| 채널 | (선택 사항) 채널 ID |
| 캠페인 | (선택 사항) 캠페인 ID |
| 딥링크(deeplink) | (선택 사항) 앱 스토어 링크를 포함하는 개체입니다. 이 기능을 사용할 때 장치 타겟팅도 설정하는 것이 중요합니다. |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/url/:id/update' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "url": "https:\/\/google.com",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "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": "캐나다",
            "link": "https:\/\/google.ca"
        },
        {
            "location": "미국",
            "link": "https:\/\/google.us"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https:\/\/google.com"
        },
        {
            "device": "안드로이드",
            "link": "https:\/\/google.com"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "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",
	    "사용자 지정": "구글",
	    "비밀번호": "마이패스",
	    "expiry": "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": "캐나다",
	            "link": "https:\/\/google.ca"
	        },
	        {
	            "location": "미국",
	            "link": "https:\/\/google.us"
	        }
	    ],
	    "장치 대상": [
	        {
	            "device": "아이폰",
	            "link": "https:\/\/google.com"
	        },
	        {
	            "device": "안드로이드",
	            "link": "https:\/\/google.com"
	        }
	    ],
	    "매개변수": [
	        {
	            "이름": "aff",
	            "값": "3"
	        },
	        {
	            "장치": "gtm_source",
	            "링크": "API"
	        }
	    ]
	}',
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/url/:id/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "url": "https:\/\/google.com",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "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": "캐나다",
            "link": "https:\/\/google.ca"
        },
        {
            "location": "미국",
            "link": "https:\/\/google.us"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https:\/\/google.com"
        },
        {
            "device": "안드로이드",
            "link": "https:\/\/google.com"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "3"
        },
        {
            "장치": "gtm_source",
            "링크": "API"
        }
    ]
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/url/:id/update"
페이로드 = {
    "url": "https://google.com",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "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"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https://google.com"
        },
        {
            "device": "안드로이드",
            "link": "https://google.com"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "3"
        },
        {
            "장치": "gtm_source",
            "링크": "API"
        }
    ]
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/url/:id/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "url": "https:\/\/google.com",
    "사용자 지정": "구글",
    "비밀번호": "마이패스",
    "expiry": "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": "캐나다",
            "link": "https:\/\/google.ca"
        },
        {
            "location": "미국",
            "link": "https:\/\/google.us"
        }
    ],
    "장치 대상": [
        {
            "device": "아이폰",
            "link": "https:\/\/google.com"
        },
        {
            "device": "안드로이드",
            "link": "https:\/\/google.com"
        }
    ],
    "매개변수": [
        {
            "이름": "aff",
            "값": "3"
        },
        {
            "장치": "gtm_source",
            "링크": "API"
        }
    ]
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "아이디": 3,
    "short": "https:\/\/urlkai.com\/google"
}
```

###### 하푸스 타우탄

삭제하다  `https://urlkai.com/api/url/:id/delete`

Untuk menghapus tautan, Anda perlu mengirim permintaan DELETE.

cURL
PHP
Node.js
Python
C#

```
curl --location --request DELETE 'https://urlkai.com/api/url/:id/delete' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/url/:id/delete"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("삭제", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/url/:id/delete");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 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' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/channels?limit=2&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/channels?limit=2&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "채널": [
            {
                "아이디": 1,
                "name": "채널 1",
                "description": "채널 1에 대한 설명",
                "색상": "#000000",
                "별표 표시": 참
            },
            {
                "아이디": 2,
                "name": "채널 2",
                "description": "채널 2에 대한 설명",
                "색상": "#FF0000",
                "별표 표시": 거짓
            }
        ]
    }
}
```

###### 채널 항목 나열

가져오기  `https://urlkai.com/api/channel/:id?limit=1&page=1`

API를 통해 선택한 채널의 항목을 가져오려면 이 엔드포인트를 사용할 수 있습니다. 데이터를 필터링할 수도 있습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 한계 | (선택 사항) 페이지별 데이터 결과 |
| 페이지 | (선택 사항) 현재 페이지 요청 |

cURL
PHP
Node.js
Python
C#

```
curl --location --request GET 'https://urlkai.com/api/channel/:id?limit=1&page=1' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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 => "GET",
    CURLOPT_HTTPHEADER => [
        "권한 부여: 베어러 YOURAPIKEY",
        "콘텐츠 유형: application/json",
    ],
    
));

$response = curl_exec($curl);

curl_close($curl);
에코 $response;
```

```
var 요청 = require('요청');
var 옵션 = {
    '메서드': 'GET',
    'url': 'https://urlkai.com/api/channel/:id?limit=1&page=1',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/channel/:id?limit=1&page=1"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("GET", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": "0",
    "데이터": {
        "결과": 2,
        "퍼페이지": 2,
        "현재 페이지": 1,
        "다음 페이지": 1,
        "최대 페이지": 1,
        "항목": [
            {
                "type": "링크",
                "아이디": 1,
                "title": "내 샘플 링크",
                "preview": "https:\/\/google.com",
                "link": "https:\/\/urlkai.com\/구글",
                "날짜": "2022-05-12"
            },
            {
                "유형": "바이오",
                "아이디": 1,
                "title": "내 샘플 약력",
                "preview": "https:\/\/urlkai.com\/mybio",
                "link": "https:\/\/urlkai.com\/mybio",
                "날짜": "2022-06-01"
            }
        ]
    }
}
```

###### 부앗 살루란

올리기  `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());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "id": 3,
    "이름": "새 채널",
    "설명": "내 새 채널",
    "color": "#000000",
    "별자리": 진짜
}
```

###### 채널에 항목 할당하기

올리기  `https://urlkai.com/api/channel/:channelid/assign/:type/:itemid`

채널 ID, 항목 유형(링크, 바이오 또는 qr) 및 항목 ID와 함께 요청을 전송하여 모든 채널에 항목을 할당할 수 있습니다.

| **매개 변수** | **케테랑간** |
| --- | --- |
| :채널ID | (필수) 채널 ID |
| :형 | (필수) 링크 또는 약력 또는 QR |
| :항목 ID | (필수) 항목 ID |

cURL
PHP
Node.js
Python
C#

```
curl --location --request POST 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("POST", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new 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 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "아이템이 채널에 성공적으로 추가되었습니다."
}
```

###### 페르바루이 살루란

놓다  `https://urlkai.com/api/channel/:id/update`

채널을 업데이트하려면 PUT 요청을 통해 JSON으로 유효한 데이터를 보내야 합니다. 데이터는 아래와 같이 요청의 원시 본문으로 전송되어야 합니다. 아래 예제에서는 보낼 수 있는 모든 매개 변수를 보여 주지만 모두 보낼 필요는 없습니다(자세한 내용은 표 참조).

| **매개 변수** | **케테랑간** |
| --- | --- |
| 이름 | (선택 사항) 채널 이름 |
| 묘사 | (선택 사항) 채널 설명 |
| 색 | (선택 사항) 채널 배지 색상(HEX) |
| 별표 | (선택 사항) 채널에 별표 표시 여부(참 또는 거짓) |

cURL
PHP
Node.js
Python
C#

```
curl --location --request PUT 'https://urlkai.com/api/channel/:id/update' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: application/json' \
--데이터 원시 '{
    "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 옵션 = {
    '메소드': '풋',
    'url': 'https://urlkai.com/api/channel/:id/update',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    본문 : JSON.stringify ({
    "name": "Acme Corp",
    "description": "Acme Corp의 아이템 채널",
    "색상": "#FFFFFF",
    "별표 표시": 거짓
}),
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/channel/:id/update"
페이로드 = {
    "name": "Acme Corp",
    "description": "Acme Corp의 아이템 채널",
    "색상": "#FFFFFF",
    "별표 표시": 거짓
}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("PUT", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/channel/:id/update");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var 내용 = new StringContent("{
    "name": "Acme Corp",
    "description": "Acme Corp의 아이템 채널",
    "색상": "#FFFFFF",
    "별표 표시": 거짓
}", System.Text.Encoding.UTF8, "응용 프로그램/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "채널이 성공적으로 업데이트되었습니다."
}
```

###### 채널 삭제

삭제하다  `https://urlkai.com/api/channel/:id/delete`

채널을 삭제하려면 DELETE 요청을 보내야 합니다. 모든 항목도 할당되지 않습니다.

cURL
PHP
Node.js
Python
C#

```
curl --location --request DELETE 'https://urlkai.com/api/channel/:id/delete' \
--header '권한 부여: 전달자 YOURAPIKEY' \
--헤더 'Content-Type: 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',
    '헤더': {
        'Authorization': '무기명 YOURAPIKEY',
        '콘텐츠 유형': '애플리케이션/json'
    },
    
};
요청(옵션, 함수(오류, 응답) {
    if (error) throw new Error(error);
    console.log(응답.본문);
});
```

```
가져오기 요청
url = "https://urlkai.com/api/channel/:id/delete"
페이로드 = {}
헤더 = {
    'Authorization': '무기명 YOURAPIKEY',
    '콘텐츠 유형': '애플리케이션/json'
}
응답 = requests.request("삭제", url, headers=headers, json=payload)
인쇄(응답.텍스트)
```

```
var 클라이언트 = 새로운 HttpClient ();
var 요청 = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/channel/:id/delete");
요청. Headers.Add("권한 부여", "전달자 YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
요청. 콘텐츠 = 콘텐츠;
var 응답 = await client. SendAsync (요청);
응답. EnsureSuccessStatusCode();
Console.WriteLine(응답을 기다립니다. Content.ReadAsStringAsync());
```

###### Tanggapan 서버

```
{
    "오류": 0,
    "message": "채널이 성공적으로 삭제되었습니다."
}
```