The Complete API Reference
Integrate scripts, run intelligent searches, interact with user accounts, and obfuscate Luau directly through our high-performance REST API. Everything you need is natively documented below.
Base URL: https://api.earnlnk.xyz/v1
Search & Discovery
GET /search
Глобальный поиск по скриптам и пользователям.
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | No | Поисковой запрос |
| type | scripts | accounts | No | Тип сущности |
| page | number | No | Страница пагинации |
Copy
fetch('https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/search?q=Aimbot&type=scripts");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /suggest
Получение поисковых подсказок (через прокси Google).
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | No | Начало запроса |
Copy
fetch('https://api.earnlnk.xyz/v1/suggest?q=Aim', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/suggest?q=Aim"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/suggest?q=Aim"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/suggest?q=Aim"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/suggest?q=Aim");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/suggest?q=Aim", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/suggest?q=Aim");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /ai-search
ИИ-помощник EarnLink Ghost для генерации ответов, когда скрипт не найден.
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Вопрос или запрос для ИИ |
Copy
fetch('https://api.earnlnk.xyz/v1/ai-search', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"q":"How to make esp?"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/ai-search"
payload = {"q":"How to make esp?"}
response = requests.post(url, json=payload)
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/ai-search" \
-H "Content-Type: application/json" \
-d '{"q":"How to make esp?"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/ai-search"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"q\":\"How to make esp?\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/ai-search");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"q":"How to make esp?"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/ai-search", bytes.NewBufferString(`{"q":"How to make esp?"}`))
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/ai-search");
request.Content = new StringContent("{\"q\":\"How to make esp?\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /scripts/trending
Топ-10 самых популярных скриптов платформы.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/scripts/trending', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/scripts/trending"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/scripts/trending"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/scripts/trending"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/scripts/trending");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/scripts/trending", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/scripts/trending");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /home/feed
Лента главной страницы.
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | verified | top | new | Yes | Тип сортировки ленты |
| page | number | No | Пагинация |
Copy
fetch('https://api.earnlnk.xyz/v1/home/feed?type=new&page=1', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/home/feed?type=new&page=1"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/home/feed?type=new&page=1"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/home/feed?type=new&page=1"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/home/feed?type=new&page=1");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/home/feed?type=new&page=1", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/home/feed?type=new&page=1");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
Scripts & Content
GET /script/{name}
Получить публичную информацию о скрипте.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Имя или ID скрипта |
Copy
fetch('https://api.earnlnk.xyz/v1/script/Script_Name', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/script/Script_Name"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/script/Script_Name"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/script/Script_Name"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/script/Script_Name");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/script/Script_Name", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/script/Script_Name");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /scripts/raw/{code} Auth Optional
Получить RAW код скрипта (Luau/Lua).
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | ID скрипта |
| key | string | No | Ключ, если скрипт приватный |
Copy
fetch('https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY", nil)
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/scripts/raw/Script_ID?key=YOUR_KEY");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /scripts/{code}/cover.png
Получить обложку скрипта.
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | ID скрипта |
Copy
fetch('https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/scripts/Script_ID/cover.png");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /obfuscate
Обфускация Lua скрипта через Prometheus AST.
| Parameter | Type | Required | Description |
|---|---|---|---|
| script | string | Yes | Исходный Lua код |
Copy
fetch('https://api.earnlnk.xyz/v1/obfuscate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"script":"print('Hello')"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/obfuscate"
payload = {"script":"print('Hello')"}
response = requests.post(url, json=payload)
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/obfuscate" \
-H "Content-Type: application/json" \
-d '{"script":"print('Hello')"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/obfuscate"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"script\":\"print('Hello')\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/obfuscate");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"script":"print('Hello')"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/obfuscate", bytes.NewBufferString(`{"script":"print('Hello')"}`))
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/obfuscate");
request.Content = new StringContent("{\"script\":\"print('Hello')\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
Users & Social
GET /user/{id}
Получить публичный профиль и статистику пользователя.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Telegram ID пользователя |
Copy
fetch('https://api.earnlnk.xyz/v1/user/123456', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/user/123456"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/user/123456"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/user/123456"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/user/123456");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/user/123456", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/user/123456");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /user/{id}/scripts
Получить список публичных скриптов пользователя.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Telegram ID |
Copy
fetch('https://api.earnlnk.xyz/v1/user/123456/scripts', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/user/123456/scripts"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/user/123456/scripts"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/user/123456/scripts"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/user/123456/scripts");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/user/123456/scripts", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/user/123456/scripts");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /user/{id}/subscribers
Список подписчиков пользователя.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Telegram ID |
Copy
fetch('https://api.earnlnk.xyz/v1/user/123456/subscribers', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/user/123456/subscribers"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/user/123456/subscribers"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/user/123456/subscribers"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/user/123456/subscribers");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/user/123456/subscribers", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/user/123456/subscribers");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /user/{id}/following
Список подписок пользователя.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Telegram ID |
Copy
fetch('https://api.earnlnk.xyz/v1/user/123456/following', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/user/123456/following"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/user/123456/following"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/user/123456/following"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/user/123456/following");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/user/123456/following", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/user/123456/following");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /users/{id}/pfp.png
Аватар профиля.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Telegram ID |
Copy
fetch('https://api.earnlnk.xyz/v1/users/123456/pfp.png', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/users/123456/pfp.png"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/users/123456/pfp.png"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/users/123456/pfp.png"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/users/123456/pfp.png");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/users/123456/pfp.png", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/users/123456/pfp.png");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
Interactive (Requires Auth)
POST /script/{id}/interact Auth Required
Поставить лайк или дизлайк.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID скрипта |
| type | like | dislike | Yes | Действие |
Copy
fetch('https://api.earnlnk.xyz/v1/script/123456/interact', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"type":"like"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/script/123456/interact"
payload = {"type":"like"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/script/123456/interact"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"like"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/script/123456/interact"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"type\":\"like\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/script/123456/interact");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"type":"like"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/script/123456/interact", bytes.NewBufferString(`{"type":"like"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/script/123456/interact");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"type\":\"like\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /script/{id}/comment Auth Required
Написать комментарий.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID скрипта |
| text | string | No | Текст комментария (до 2170 симв.) |
| imageStr | string | No | Base64 картинка |
Copy
fetch('https://api.earnlnk.xyz/v1/script/123456/comment', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"text":"Nice script!","imageStr":""})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/script/123456/comment"
payload = {"text":"Nice script!","imageStr":""}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/script/123456/comment"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text":"Nice script!","imageStr":""}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/script/123456/comment"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"text\":\"Nice script!\",\"imageStr\":\"\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/script/123456/comment");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"text":"Nice script!","imageStr":""}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/script/123456/comment", bytes.NewBufferString(`{"text":"Nice script!","imageStr":""}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/script/123456/comment");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"text\":\"Nice script!\",\"imageStr\":\"\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
PUT /comment/{id} Auth Required
Изменить комментарий.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID комментария |
| text | string | Yes | Новый текст |
Copy
fetch('https://api.earnlnk.xyz/v1/comment/123456', {
method: 'PUT',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"text":"Edited text"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/comment/123456"
payload = {"text":"Edited text"}
response = requests.put(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X PUT "https://api.earnlnk.xyz/v1/comment/123456"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text":"Edited text"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/comment/123456"
local response = HttpService:RequestAsync({
Url = url,
Method = "PUT",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"text\":\"Edited text\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/comment/123456");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"text":"Edited text"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("PUT", "https://api.earnlnk.xyz/v1/comment/123456", bytes.NewBufferString(`{"text":"Edited text"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api.earnlnk.xyz/v1/comment/123456");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"text\":\"Edited text\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
DELETE /comment/{id} Auth Required
Удалить свой комментарий.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID комментария |
Copy
fetch('https://api.earnlnk.xyz/v1/comment/123456', {
method: 'DELETE',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/comment/123456"
response = requests.delete(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X DELETE "https://api.earnlnk.xyz/v1/comment/123456"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/comment/123456"
local response = HttpService:RequestAsync({
Url = url,
Method = "DELETE",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/comment/123456");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://api.earnlnk.xyz/v1/comment/123456", nil)
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.earnlnk.xyz/v1/comment/123456");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
DELETE /script/{id} Auth Required
Удалить свой скрипт.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID скрипта |
Copy
fetch('https://api.earnlnk.xyz/v1/script/123456', {
method: 'DELETE',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/script/123456"
response = requests.delete(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X DELETE "https://api.earnlnk.xyz/v1/script/123456"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/script/123456"
local response = HttpService:RequestAsync({
Url = url,
Method = "DELETE",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/script/123456");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://api.earnlnk.xyz/v1/script/123456", nil)
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.earnlnk.xyz/v1/script/123456");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /user/{id}/subscribe Auth Required
Подписаться или отписаться.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID целевого пользователя |
Copy
fetch('https://api.earnlnk.xyz/v1/user/123456/subscribe', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/user/123456/subscribe"
response = requests.post(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/user/123456/subscribe"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/user/123456/subscribe"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/user/123456/subscribe");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/user/123456/subscribe", nil)
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/user/123456/subscribe");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /report Auth Required
Отправить жалобу на контент.
| Parameter | Type | Required | Description |
|---|---|---|---|
| reported_id | string | Yes | ID нарушителя |
| target_type | string | Yes | Тип |
| target_link | string | Yes | Ссылка на контент |
| message | string | Yes | Причина |
Copy
fetch('https://api.earnlnk.xyz/v1/report', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"reported_id":"123","target_type":"Script","target_link":"/scripts/Name","message":"Malware"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/report"
payload = {"reported_id":"123","target_type":"Script","target_link":"/scripts/Name","message":"Malware"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/report"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reported_id":"123","target_type":"Script","target_link":"/scripts/Name","message":"Malware"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/report"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"reported_id\":\"123\",\"target_type\":\"Script\",\"target_link\":\"/scripts/Name\",\"message\":\"Malware\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/report");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"reported_id":"123","target_type":"Script","target_link":"/scripts/Name","message":"Malware"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/report", bytes.NewBufferString(`{"reported_id":"123","target_type":"Script","target_link":"/scripts/Name","message":"Malware"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/report");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"reported_id\":\"123\",\"target_type\":\"Script\",\"target_link\":\"/scripts/Name\",\"message\":\"Malware\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
Authentication
POST /auth/init
Начать сессию по ключу из Telegram бота.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Ключ от бота |
Copy
fetch('https://api.earnlnk.xyz/v1/auth/init', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"key":"BOT_KEY_123"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/auth/init"
payload = {"key":"BOT_KEY_123"}
response = requests.post(url, json=payload)
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/auth/init" \
-H "Content-Type: application/json" \
-d '{"key":"BOT_KEY_123"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/auth/init"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"key\":\"BOT_KEY_123\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/auth/init");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"key":"BOT_KEY_123"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/auth/init", bytes.NewBufferString(`{"key":"BOT_KEY_123"}`))
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/auth/init");
request.Content = new StringContent("{\"key\":\"BOT_KEY_123\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /auth/poll/{id}
Проверка статуса подтверждения входа.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | ID сессии из /auth/init |
Copy
fetch('https://api.earnlnk.xyz/v1/auth/poll/123456', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/auth/poll/123456"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/auth/poll/123456"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/auth/poll/123456"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/auth/poll/123456");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/auth/poll/123456", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/auth/poll/123456");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /auth/check
Проверка текущей авторизации.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/auth/check', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/auth/check"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/auth/check"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/auth/check"
local response = HttpService:RequestAsync({
Url = url,
Method = "GET",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/auth/check");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.earnlnk.xyz/v1/auth/check", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.earnlnk.xyz/v1/auth/check");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /auth/logout
Выход и удаление сессии.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/auth/logout', {
method: 'POST'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/auth/logout"
response = requests.post(url)
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/auth/logout"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/auth/logout"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
}
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/auth/logout");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/auth/logout", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/auth/logout");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
Admin Control
POST /admin/moderate Admin Only
Модерация комментария.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/admin/moderate', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"id":"1","action":"delete","reason":"NSFW"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/admin/moderate"
payload = {"id":"1","action":"delete","reason":"NSFW"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/admin/moderate"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"1","action":"delete","reason":"NSFW"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/admin/moderate"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"id\":\"1\",\"action\":\"delete\",\"reason\":\"NSFW\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/admin/moderate");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":"1","action":"delete","reason":"NSFW"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/admin/moderate", bytes.NewBufferString(`{"id":"1","action":"delete","reason":"NSFW"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/admin/moderate");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"id\":\"1\",\"action\":\"delete\",\"reason\":\"NSFW\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /admin/transfer Admin Only
Передача прав на аккаунт.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/admin/transfer', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"fromId":"1","toId":"2"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/admin/transfer"
payload = {"fromId":"1","toId":"2"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/admin/transfer"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"fromId":"1","toId":"2"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/admin/transfer"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"fromId\":\"1\",\"toId\":\"2\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/admin/transfer");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"fromId":"1","toId":"2"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/admin/transfer", bytes.NewBufferString(`{"fromId":"1","toId":"2"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/admin/transfer");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"fromId\":\"1\",\"toId\":\"2\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /admin/execute Admin Only
Выполнение серверных команд.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/admin/execute', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"pwd":"...","cmd":"ls"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/admin/execute"
payload = {"pwd":"...","cmd":"ls"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/admin/execute"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"pwd":"...","cmd":"ls"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/admin/execute"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"pwd\":\"...\",\"cmd\":\"ls\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/admin/execute");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"pwd":"...","cmd":"ls"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/admin/execute", bytes.NewBufferString(`{"pwd":"...","cmd":"ls"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/admin/execute");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"pwd\":\"...\",\"cmd\":\"ls\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /admin/broadcast Admin Only
Массовая рассылка уведомлений.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/admin/broadcast', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"target":"","text":"Msg"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/admin/broadcast"
payload = {"target":"","text":"Msg"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/admin/broadcast"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"target":"","text":"Msg"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/admin/broadcast"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"target\":\"\",\"text\":\"Msg\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/admin/broadcast");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"target":"","text":"Msg"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/admin/broadcast", bytes.NewBufferString(`{"target":"","text":"Msg"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/admin/broadcast");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"target\":\"\",\"text\":\"Msg\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /admin/ban Admin Only
Бан пользователя.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/admin/ban', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"id":"123","reason":"Scam"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/admin/ban"
payload = {"id":"123","reason":"Scam"}
response = requests.post(url, json=payload, headers={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X POST "https://api.earnlnk.xyz/v1/admin/ban"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"123","reason":"Scam"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/admin/ban"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"id\":\"123\",\"reason\":\"Scam\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/admin/ban");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = ["Cookie: session_token=YOUR_TOKEN", "Content-Type: application/json"];
if(!empty($headers)) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":"123","reason":"Scam"}');
$res = curl_exec($ch);
print_r(json_decode($res, true));
?>
Copy
package main
import (
"fmt"
"net/http"
"io"
"bytes"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.earnlnk.xyz/v1/admin/ban", bytes.NewBufferString(`{"id":"123","reason":"Scam"}`))
req.Header.Add("Cookie", "session_token=YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Copy
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.earnlnk.xyz/v1/admin/ban");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"id\":\"123\",\"reason\":\"Scam\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
Need session tokens or keys? Use /auth in our Telegram Bot.