XFREE / API V1

開發者 API

在你的網站使用 X 影片資料。提出申請,審核通過後才會以電郵寄送金鑰。

GET /api/v1/lookup

金鑰只能存放在伺服器,請勿放進瀏覽器程式碼。

接口位址: https://x.get-free.net/api/v1/lookup?url=...

使用 Bearer 金鑰。每個金鑰按分鐘限流;HTTP 429 包含 Retry-After。 Authorization: Bearer xfk_...

curl -G 'https://x.get-free.net/api/v1/lookup' -H 'Authorization: Bearer xfk_YOUR_KEY' --data-urlencode 'url=https://x.com/user/status/1234567890123456789'

JSON 回傳貼文 ID、原文網址、作者、內文、影片和暫時的 MP4 位址。 id, sourceUrl, author, text, videos[], formats[]. invalid_api_key, invalid_url, rate_limited, no_video.

成功查詢會進入 XFree 影片池;熱門頁公開展示仍須審核。

嵌入元件

填入已審核影片的 slug。瀏覽器程式碼不會暴露 API Key。

<script src="https://x.get-free.net/embed.js" defer></script>
<xfree-video slug="example-video-123456789012"></xfree-video>

申請存取

免費申請 · 免費使用條件:在申請網站放置指向 XFree Downloader 的可見連結,並在使用 API 期間保留。

<a href="https://x.get-free.net/">XFree Downloader</a>