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);
Git Versioning & Repositories
GET /git/{name}/overview Auth Optional
Обзор Git-репозитория скрипта (ветки, дерево файлов, HEAD SHA, .gitignore, последний коммит).
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Slug репозитория |
| ref | string | No | Ветка или SHA коммита (по умолчанию main) |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/overview?ref=main', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/overview?ref=main"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/git/Script_Name/overview?ref=main"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/overview?ref=main"
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/git/Script_Name/overview?ref=main");
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/git/Script_Name/overview?ref=main", 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/git/Script_Name/overview?ref=main");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /git/{name}/tree Auth Optional
Дерево всех файлов и папок репозитория (`git ls-tree`).
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Slug репозитория |
| ref | string | No | Ветка или коммит |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/tree?ref=main', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/tree?ref=main"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/git/Script_Name/tree?ref=main"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/tree?ref=main"
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/git/Script_Name/tree?ref=main");
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/git/Script_Name/tree?ref=main", 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/git/Script_Name/tree?ref=main");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /git/{name}/blob Auth Optional
Чтение файла из репозитория по ветке или коммиту (`git show`).
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | Yes | Путь к файлу (напр. init.lua, modules/esp.lua) |
| ref | string | No | Ветка или SHA коммита |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/blob?ref=main&path=init.lua', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/blob?ref=main&path=init.lua"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/git/Script_Name/blob?ref=main&path=init.lua"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/blob?ref=main&path=init.lua"
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/git/Script_Name/blob?ref=main&path=init.lua");
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/git/Script_Name/blob?ref=main&path=init.lua", 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/git/Script_Name/blob?ref=main&path=init.lua");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /git/{name}/commit Auth Required
Создать реальный Git-коммит (одиночный или мульти-файловый) с проверкой .gitignore и опциональной обфускацией.
| Parameter | Type | Required | Description |
|---|---|---|---|
| branch | string | No | Целевая ветка |
| message | string | Yes | Сообщение коммита |
| files | object | Yes | Карта файлов { path: content } |
| obfuscate | boolean | No | Авто-обфускация Luau перед коммитом |
| obfuscatePreset | balanced | max | arch34 | light | No | Пресет обфускации |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/commit', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"branch":"main","message":"feat: add ESP module","files":{"init.lua":"print('ESP')"},"obfuscate":true,"obfuscatePreset":"arch34"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/commit"
payload = {"branch":"main","message":"feat: add ESP module","files":{"init.lua":"print('ESP')"},"obfuscate":true,"obfuscatePreset":"arch34"}
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/git/Script_Name/commit"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"branch":"main","message":"feat: add ESP module","files":{"init.lua":"print('ESP')"},"obfuscate":true,"obfuscatePreset":"arch34"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/commit"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"branch\":\"main\",\"message\":\"feat: add ESP module\",\"files\":{\"init.lua\":\"print('ESP')\"},\"obfuscate\":true,\"obfuscatePreset\":\"arch34\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/git/Script_Name/commit");
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, '{"branch":"main","message":"feat: add ESP module","files":{"init.lua":"print('ESP')"},"obfuscate":true,"obfuscatePreset":"arch34"}');
$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/git/Script_Name/commit", bytes.NewBufferString(`{"branch":"main","message":"feat: add ESP module","files":{"init.lua":"print('ESP')"},"obfuscate":true,"obfuscatePreset":"arch34"}`))
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/git/Script_Name/commit");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"branch\":\"main\",\"message\":\"feat: add ESP module\",\"files\":{\"init.lua\":\"print('ESP')\"},\"obfuscate\":true,\"obfuscatePreset\":\"arch34\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /git/{name}/commits Auth Optional
История Git-коммитов с SHA-1 хэшами и статистикой строк (`git log`).
| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | No | Ветка или SHA |
| limit | number | No | Лимит коммитов |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/commits?ref=main&limit=30', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/commits?ref=main&limit=30"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/git/Script_Name/commits?ref=main&limit=30"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/commits?ref=main&limit=30"
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/git/Script_Name/commits?ref=main&limit=30");
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/git/Script_Name/commits?ref=main&limit=30", 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/git/Script_Name/commits?ref=main&limit=30");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /git/{name}/diff Auth Optional
Сравнение веток или просмотр изменений коммита (`git diff`).
| Parameter | Type | Required | Description |
|---|---|---|---|
| base | string | No | Базовая ветка |
| head | string | No | Сравниваемая ветка |
| commit | string | No | SHA конкретного коммита |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/diff?base=main&head=dev', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/diff?base=main&head=dev"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/git/Script_Name/diff?base=main&head=dev"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/diff?base=main&head=dev"
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/git/Script_Name/diff?base=main&head=dev");
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/git/Script_Name/diff?base=main&head=dev", 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/git/Script_Name/diff?base=main&head=dev");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /git/{name}/branches Auth Required
Создать новую ветку в репозитории (`git branch`).
| Parameter | Type | Required | Description |
|---|---|---|---|
| branchName | string | Yes | Имя новой ветки |
| fromRef | string | No | Исходная ветка/SHA |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/branches', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"branchName":"dev","fromRef":"main"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/branches"
payload = {"branchName":"dev","fromRef":"main"}
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/git/Script_Name/branches"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"branchName":"dev","fromRef":"main"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/branches"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"branchName\":\"dev\",\"fromRef\":\"main\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/git/Script_Name/branches");
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, '{"branchName":"dev","fromRef":"main"}');
$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/git/Script_Name/branches", bytes.NewBufferString(`{"branchName":"dev","fromRef":"main"}`))
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/git/Script_Name/branches");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"branchName\":\"dev\",\"fromRef\":\"main\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /git/{name}/merge Auth Required
Слить ветки (`git merge --no-ff`) с поддержкой стратегий разрешения конфликтов.
| Parameter | Type | Required | Description |
|---|---|---|---|
| sourceBranch | string | Yes | Исходная ветка |
| targetBranch | string | Yes | Целевая ветка |
| strategy | ort | ours | theirs | No | Стратегия слияния |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/merge', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"sourceBranch":"dev","targetBranch":"main","strategy":"ort"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/merge"
payload = {"sourceBranch":"dev","targetBranch":"main","strategy":"ort"}
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/git/Script_Name/merge"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sourceBranch":"dev","targetBranch":"main","strategy":"ort"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/merge"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"sourceBranch\":\"dev\",\"targetBranch\":\"main\",\"strategy\":\"ort\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/git/Script_Name/merge");
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, '{"sourceBranch":"dev","targetBranch":"main","strategy":"ort"}');
$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/git/Script_Name/merge", bytes.NewBufferString(`{"sourceBranch":"dev","targetBranch":"main","strategy":"ort"}`))
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/git/Script_Name/merge");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"sourceBranch\":\"dev\",\"targetBranch\":\"main\",\"strategy\":\"ort\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /git/{name}/gitignore Auth Required
Обновить файл .gitignore или применить шаблон (roblox, strict, minimal).
| Parameter | Type | Required | Description |
|---|---|---|---|
| preset | roblox | strict | minimal | No | Шаблон .gitignore |
| content | string | No | Собственный текст .gitignore |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/gitignore', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"preset":"roblox","branch":"main"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/gitignore"
payload = {"preset":"roblox","branch":"main"}
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/git/Script_Name/gitignore"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"preset":"roblox","branch":"main"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/gitignore"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"preset\":\"roblox\",\"branch\":\"main\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/git/Script_Name/gitignore");
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, '{"preset":"roblox","branch":"main"}');
$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/git/Script_Name/gitignore", bytes.NewBufferString(`{"preset":"roblox","branch":"main"}`))
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/git/Script_Name/gitignore");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"preset\":\"roblox\",\"branch\":\"main\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /git/{name}/check-ignore Auth Optional
Проверить пути через реальный `git check-ignore -v`.
| Parameter | Type | Required | Description |
|---|---|---|---|
| paths | string[] | Yes | Массив путей для проверки |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/check-ignore', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"paths":["secrets.lua","init.lua"]})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/check-ignore"
payload = {"paths":["secrets.lua","init.lua"]}
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/git/Script_Name/check-ignore"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"paths":["secrets.lua","init.lua"]}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/check-ignore"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"paths\":[\"secrets.lua\",\"init.lua\"]})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/git/Script_Name/check-ignore");
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, '{"paths":["secrets.lua","init.lua"]}');
$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/git/Script_Name/check-ignore", bytes.NewBufferString(`{"paths":["secrets.lua","init.lua"]}`))
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/git/Script_Name/check-ignore");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"paths\":[\"secrets.lua\",\"init.lua\"]}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /git/{name}/bundle Auth Optional
Собрать мульти-файловый репозиторий в единый исполняемый скрипт для Roblox.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | No | Ветка или коммит |
| obfuscate | 0 | 1 | No | Обфусцировать бандл |
| preset | balanced | max | arch34 | light | No | Пресет обфускации |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34', {
method: 'GET',
headers: { 'Cookie': 'session_token=YOUR_TOKEN' }
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34"
response = requests.get(urlheaders={'Cookie': 'session_token=YOUR_TOKEN'})
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34"
-H "Cookie: session_token=YOUR_TOKEN"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34"
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/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34");
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/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34", 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/git/Script_Name/bundle?ref=main&obfuscate=1&preset=arch34");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /git/{name}/fork Auth Required
Сделать форк (Fork) публичного репозитория в свой аккаунт.
| Parameter | Type | Required | Description |
|---|---|---|---|
| newName | string | Yes | Slug нового форка (5-15 символов) |
Copy
fetch('https://api.earnlnk.xyz/v1/git/Script_Name/fork', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"newName":"my-fork-repo"})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/git/Script_Name/fork"
payload = {"newName":"my-fork-repo"}
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/git/Script_Name/fork"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"newName":"my-fork-repo"}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/git/Script_Name/fork"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"newName\":\"my-fork-repo\"})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/git/Script_Name/fork");
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, '{"newName":"my-fork-repo"}');
$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/git/Script_Name/fork", bytes.NewBufferString(`{"newName":"my-fork-repo"}`))
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/git/Script_Name/fork");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"newName\":\"my-fork-repo\"}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
SDK & MCP (AI Agents)
GET /sdk/earnlink.lua
Официальный Roblox Luau SDK (EarnLink.import, EarnLink.require, EarnLink.checkUpdate).
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/sdk/earnlink.lua', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/sdk/earnlink.lua"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/sdk/earnlink.lua"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/sdk/earnlink.lua"
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/sdk/earnlink.lua");
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/sdk/earnlink.lua", 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/sdk/earnlink.lua");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /sdk/info
Информация о версиях SDK, архитектурах (x64, ARM64, ARM32, x86/32-bit, Arch34) и CLI командах.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/sdk/info', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/sdk/info"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/sdk/info"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/sdk/info"
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/sdk/info");
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/sdk/info", 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/sdk/info");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
POST /mcp Auth Optional
Model Context Protocol (MCP) JSON-RPC 2.0 сервер для ИИ-агентов (Claude, Cursor, Antigravity, Windsurf).
| Parameter | Type | Required | Description |
|---|---|---|---|
| method | initialize | tools/list | tools/call | resources/list | prompts/list | Yes | Метод MCP JSON-RPC 2.0 |
Copy
fetch('https://api.earnlnk.xyz/v1/mcp', {
method: 'POST',
headers: { 'Cookie': 'session_token=YOUR_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}})
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/mcp"
payload = {"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}
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/mcp"
-H "Cookie: session_token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/mcp"
local response = HttpService:RequestAsync({
Url = url,
Method = "POST",
Headers = {
["Cookie"] = "session_token=YOUR_TOKEN",
["Content-Type"] = "application/json"
},
Body = HttpService:JSONEncode({\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\",\"params\":{}})
})
print(response.Body)
Copy
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.earnlnk.xyz/v1/mcp");
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, '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}');
$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/mcp", bytes.NewBufferString(`{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}`))
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/mcp");
request.Headers.Add("Cookie", "session_token=YOUR_TOKEN");
request.Content = new StringContent("{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\",\"params\":{}}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
GET /mcp/manifest.json
Манифест MCP-инструментов и конфигурация подключения для ИИ-агентов.
No parameters required.
Copy
fetch('https://api.earnlnk.xyz/v1/mcp/manifest.json', {
method: 'GET'
})
.then(res => res.json())
.then(console.log);
Copy
import requests
url = "https://api.earnlnk.xyz/v1/mcp/manifest.json"
response = requests.get(url)
print(response.json())
Copy
curl -s -X GET "https://api.earnlnk.xyz/v1/mcp/manifest.json"
Copy
-- Roblox Server / Executor
local HttpService = game:GetService("HttpService")
local url = "https://api.earnlnk.xyz/v1/mcp/manifest.json"
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/mcp/manifest.json");
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/mcp/manifest.json", 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/mcp/manifest.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.