Netflix Code API
API lấy code, link xác minh hộ gia đình, reset password từ email Netflix.
Authentication
Mọi request cần gửi API key trong header Authorization:
Request
Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
API key được cấp bởi admin. Mỗi key gắn với danh sách email và IP whitelist.
Base URL
Request
https://api.muscleeee1612.com
Endpoints
Check Status
GET
/api/status
Kiểm tra API key có hoạt động không. Không cần param email.
Response
{
"status": "ok",
"key_name": "khach_A",
"emails_count": 5
}
Get Code
GET
/api/getcode?email=<EMAIL>
Lấy code đăng nhập (4 số) và code xác minh (6 số). Trả tất cả code tìm được.
Mã xác thực (authentication code) bị chặn tự động, không trả về.
| Parameter | Type | Description |
|---|---|---|
| email required | string | Email Netflix account |
Response
{
"status": "ok",
"email": "xxx@gmail.com",
"results": [
{
"type": "sign_in",
"code": "3130",
"time": "17:02"
},
{
"type": "verification",
"code": "370773",
"time": "17:00"
}
]
}
| Field | Description |
|---|---|
| type | sign_in = Mã đăng nhập (4 số) | verification = Mã xác minh (6 số, hết hạn 15 phút) |
| code | Mã số |
| time | Giờ nhận email (UTC+7) |
Get Temporary Access Link
GET
/api/getfml?email=<EMAIL>
Lấy mã truy cập tạm thời (travel/verify). Link hộ gia đình (update-primary-location) được tự động xác nhận trên TV.
Link xác nhận hộ gia đình (
update-primary-location) được hệ thống tự động xử lý qua Cloudflare Worker. Endpoint này chỉ trả link truy cập tạm thời.| Parameter | Type | Description |
|---|---|---|
| email required | string | Email Netflix account |
Response
{
"status": "ok",
"email": "xxx@gmail.com",
"results": [
{
"type": "temporary_access",
"link": "https://www.netflix.com/account/travel/verify?nftoken=...",
"time": "16:55"
}
]
}
| Field | Description |
|---|---|
| type | temporary_access = Mã truy cập tạm thời |
| link | Link xác minh (hết hạn 15 phút) |
| time | Giờ nhận email (UTC+7) |
Get Reset Password Link
GET
/api/resetpw?email=<EMAIL>
Lấy link đặt lại mật khẩu Netflix.
| Parameter | Type | Description |
|---|---|---|
| email required | string | Email Netflix account |
Response
{
"status": "ok",
"email": "xxx@gmail.com",
"results": [
{
"type": "reset_password",
"link": "https://www.netflix.com/password?g=...&nftoken=...",
"time": "17:02"
}
]
}
Get All Emails
GET
/api/emails?email=<EMAIL>
Lấy TẤT CẢ email Netflix (code + link gộp). Trừ mã xác thực (đã bị chặn).
| Parameter | Type | Description |
|---|---|---|
| email required | string | Email Netflix account |
Response
{
"status": "ok",
"email": "xxx@gmail.com",
"results": [
{ "type": "sign_in", "code": "3130", "time": "17:02" },
{ "type": "verification", "code": "370773", "time": "17:00" },
{ "type": "household", "link": "https://...", "time": "16:55" },
{ "type": "temporary_access", "link": "https://...", "time": "16:50" },
{ "type": "reset_password", "link": "https://...", "time": "16:45" }
]
}
Get Auto-Confirm Status
GET
/api/confirm-status?email=<EMAIL>
Xem kết quả auto-confirm hộ gia đình gần đây cho email.
Hệ thống tự động quét Gmail và xác nhận hộ gia đình (
update-primary-location) qua Cloudflare Worker. Endpoint này trả lịch sử kết quả.| Parameter | Type | Description |
|---|---|---|
| email required | string | Email Netflix account |
Response
{
"status": "ok",
"email": "xxx@gmail.com",
"results": [
{
"email": "xxx@gmail.com",
"time": "2026-08-02 17:30:00",
"status": "success",
"reason": null
},
{
"email": "xxx@gmail.com",
"time": "2026-08-02 16:15:00",
"status": "failed",
"reason": "timeout"
}
]
}
| Field | Description |
|---|---|
| Email đã xử lý | |
| time | Thời gian xử lý (UTC+7) |
| status | success = Xác nhận thành công | failed = Thất bại |
| reason | Lý do thất bại (null nếu thành công) |
Error Responses
401 API key không hợp lệ
Response
{ "status": "error", "message": "API key không hợp lệ" }
403 IP không được phép
Response
{ "status": "error", "message": "IP không được phép" }
403 Email không được phép
Response
{ "status": "error", "message": "Email không được phép" }
429 Rate limit
Response
{ "status": "error", "message": "Quá nhiều request. Thử lại sau." }
Code Examples
cURL
Bash
curl -H "Authorization: Bearer sk-xxx" \
"https://api.muscleeee1612.com/api/getcode?email=acc1@gmail.com"
Python
Python
import requests
API_KEY = "sk-xxx"
BASE_URL = "https://api.muscleeee1612.com"
headers = {"Authorization": f"Bearer {API_KEY}"}
r = requests.get(
f"{BASE_URL}/api/getcode",
params={"email": "acc1@gmail.com"},
headers=headers
)
data = r.json()
if data["status"] == "ok":
for item in data["results"]:
print(f"{item['type']}: {item.get('code', item.get('link'))}")
JavaScript
JavaScript
const API_KEY = "sk-xxx";
const BASE_URL = "https://api.muscleeee1612.com";
async function getCode(email) {
const res = await fetch(
`${BASE_URL}/api/getcode?email=${email}`,
{ headers: { "Authorization": `Bearer ${API_KEY}` } }
);
const data = await res.json();
if (data.status === "ok") {
data.results.forEach(item => {
console.log(`${item.type}: ${item.code || item.link}`);
});
}
}
getCode("acc1@gmail.com");
PHP
PHP
$api_key = "sk-xxx";
$base_url = "https://api.muscleeee1612.com";
$email = "acc1@gmail.com";
$ch = curl_init("{$base_url}/api/getcode?email={$email}");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {$api_key}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
if ($data["status"] === "ok") {
foreach ($data["results"] as $item) {
echo $item["type"] . ": " . ($item["code"] ?? $item["link"]) . "\n";
}
}