---
title: "Facebook วิดีโอของโปรไฟล์ API (V1)"
description: "ดึงวิดีโอที่อัปโหลดจากโปรไฟล์ Facebook ตาม ID และแบ่งหน้าด้วยเคอร์เซอร์ ใช้ดูประวัติวิดีโอของครีเอเตอร์"
lastUpdated: false
aiUsagePrompt: true
---

# Facebook วิดีโอของโปรไฟล์ API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/facebook/get-profile-videos/v1\"")'
  :summary='JSON.parse("\"วิดีโอของโปรไฟล์ (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/facebook/get-profile-videos-v1-th.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"โทเค็นความปลอดภัยของผู้ใช้สำหรับยืนยันตัวตนเพื่อเข้าถึง API\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"profileId\",\"in\":\"query\",\"description\":\"ID โปรไฟล์ Facebook\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"ค่า end_cursor จากการตอบกลับครั้งก่อนที่ data.data.node.uploaded_videos.page_info เว้นว่างเมื่อขอหน้าแรก\",\"required\":false,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"วิดีโอสาธารณะที่อัปโหลดโดยโปรไฟล์ Facebook พร้อมการแสดงผลแบบเลื่อนกรอบ\",\"properties\":{\"data\":{\"type\":\"object\",\"properties\":{\"node\":{\"type\":\"object\",\"description\":\"โปรไฟล์ที่ต้องการและคอลเลกชันวิดีโอที่อัปโหลดของโปรไฟล์นั้น\",\"properties\":{\"__typename\":{\"type\":\"string\"},\"id\":{\"type\":\"string\",\"description\":\"ID โปรไฟล์ Facebook\"},\"uploaded_videos\":{\"type\":\"object\",\"description\":\"คอลเลกชันวิดีโอที่อัปโหลดของโปรไฟล์\",\"properties\":{\"count\":{\"type\":\"integer\",\"description\":\"จำนวนวิดีโอที่อัปโหลดโดยโปรไฟล์ที่รายงาน\"},\"nodes\":{\"type\":\"array\",\"description\":\"วิดีโอที่อัปโหลดบนหน้านี้.\",\"items\":{\"type\":\"object\",\"description\":\"วิดีโอที่อัปโหลดโดยโปรไฟล์ Facebook.\",\"properties\":{\"__typename\":{\"type\":\"string\"},\"id\":{\"type\":\"string\",\"description\":\"ID วิดีโอของ Facebook.\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของวิดีโอในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของวิดีโอในพิกเซล\"},\"playable_duration_in_ms\":{\"type\":\"integer\",\"description\":\"ระยะเวลาการเล่นที่รายงานในมิลลิวินาที.\"},\"is_playable\":{\"type\":\"boolean\",\"description\":\"ว่าการตอบกลับระบุวิดีโอนี้ว่าเล่นได้หรือไม่.\"},\"playable_url\":{\"type\":\"string\",\"description\":\"URL ของสื่อที่ใช้สำหรับการเล่น.\"},\"image\":{\"type\":\"object\",\"description\":\"ภาพที่เกี่ยวข้องกับวิดีโอ.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพ\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"}}},\"imageThumbnail\":{\"type\":\"object\",\"description\":\"ภาพขนาดย่อที่เกี่ยวข้องกับวิดีโอ.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพ\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"}}},\"creation_story\":{\"type\":\"object\",\"description\":\"โพสต์ Facebook ที่เกี่ยวข้องกับวิดีโอที่อัปโหลด.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ของบันทึกโพสต์ Facebook ที่เกี่ยวข้อง.\"},\"creation_time\":{\"type\":\"integer\",\"description\":\"เวลาการสร้างโพสต์ตามเวลายูนิกซ์ในหน่วยวินาที.\"},\"actors\":{\"type\":\"array\",\"description\":\"ผู้ที่เกี่ยวข้องกับโพสต์.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID Facebook ของผู้ที่เกี่ยวข้อง.\"},\"name\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงของผู้แสดง.\"},\"is_verified\":{\"type\":\"boolean\",\"description\":\"ว่าฟีดแบ็กก์ต์ของ Facebook จะถือว่าเป็นผู้ที่ได้รับการยืนยันหรือไม่.\"}}}},\"attachments\":{\"type\":\"array\",\"description\":\"รายการแนบที่เกี่ยวข้องกับโพสต์ที่ถูกอัปโหลด.\",\"items\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงของรายการแนบ ซึ่งอาจว่างเปล่าได้.\"},\"url\":{\"type\":[\"string\",\"null\"],\"description\":\"URL ของรายการแนบ หากมี.\"},\"media\":{\"type\":[\"object\",\"null\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ของสื่อบน Facebook\"},\"image\":{\"type\":\"object\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพ\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"}}}}}}}},\"feedback\":{\"type\":\"object\",\"description\":\"ความคิดเห็นและการแสดงออกถึงการมีส่วนร่วมสำหรับบันทึกนี้.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID การตอบกลับของ Facebook\"},\"legacy_api_post_id\":{\"type\":\"string\",\"description\":\"ID ของโพสต์ใน Facebook แบบเก่าที่ถูกส่งมาในข้อมูลความคิดเห็น.\"},\"reactors\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"integer\",\"description\":\"จำนวนการแสดงความคิดเห็นที่รายงานไว้\"}}},\"top_level_comments\":{\"type\":\"object\",\"description\":\"จำนวนครั้งที่รายงานสำหรับความคิดเห็นระดับสูงสุด.\",\"properties\":{\"count\":{\"type\":\"integer\"},\"total_count\":{\"type\":\"integer\"}}},\"reshares\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"integer\",\"description\":\"จำนวนการแชร์ซ้ำที่รายงาน\"}}}}}}},\"feedback\":{\"type\":\"object\",\"description\":\"ความคิดเห็นและการแสดงออกถึงการมีส่วนร่วมสำหรับบันทึกนี้.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID การตอบกลับของ Facebook\"},\"legacy_api_post_id\":{\"type\":\"string\",\"description\":\"ID ของโพสต์ใน Facebook แบบเก่าที่ถูกส่งมาในข้อมูลความคิดเห็น.\"},\"reactors\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"integer\",\"description\":\"จำนวนการแสดงความคิดเห็นที่รายงานไว้\"}}},\"top_level_comments\":{\"type\":\"object\",\"description\":\"จำนวนครั้งที่รายงานสำหรับความคิดเห็นระดับสูงสุด.\",\"properties\":{\"count\":{\"type\":\"integer\"},\"total_count\":{\"type\":\"integer\"}}}}}}}},\"page_info\":{\"type\":\"object\",\"description\":\"ข้อมูลการแสดงผลแบบเคอร์เซอร์\",\"properties\":{\"end_cursor\":{\"type\":\"string\",\"description\":\"ส่งค่านี้เป็นคอร์เซอร์เพื่อขอหน้าแสดงต่อไป.\"},\"start_cursor\":{\"type\":\"string\",\"description\":\"คอร์เซอร์ที่อยู่ตอนต้นของหน้านี้.\"},\"has_next_page\":{\"type\":\"boolean\",\"description\":\"ว่าหน้าแสดงต่อนี้มีตามมาหรือไม่.\"},\"has_previous_page\":{\"type\":\"boolean\",\"description\":\"ว่าหน้าแสดงก่อนหน้านี้มีตามมาหรือไม่.\"}}}}}}}}},\"extensions\":{\"type\":\"object\",\"properties\":{\"is_final\":{\"type\":\"boolean\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"พารามิเตอร์หรือเนื้อหาของคำขอที่ไม่ถูกต้อง\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"ท่อนำข้อมูลหรือ access token ที่ไม่ถูกต้องหรือไม่มีการใช้งาน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"การอนุญาตถูกปฏิเสธ\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"อัตราการขอหรือจำนวนคำสั่งที่จำกัดในแต่ละวันถูกเกิน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"ความผิดพลาดของเซิร์ฟเวอร์ภายใน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"บริการไม่สามารถใช้งานได้ในขณะนี้\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API สำหรับการผลิตทั่วโลก (ค่าเริ่มต้น)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/facebook/get-profile-videos/v1\"")' />

<p>ดึงวิดีโอที่อัปโหลดจากโปรไฟล์ Facebook ตาม ID และแบ่งหน้าด้วยเคอร์เซอร์ ใช้ดูประวัติวิดีโอของครีเอเตอร์</p>

## พารามิเตอร์

<div class="api-doc-table api-doc-table--params">

| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | ใช่ | - | โทเค็นความปลอดภัยของผู้ใช้สำหรับยืนยันตัวตนเพื่อเข้าถึง API |
| <code>profileId</code> | query | <code>string</code> | ใช่ | - | ID โปรไฟล์ Facebook |
| <code>cursor</code> | query | <code>string</code> | ไม่ใช่ | - | ค่า end_cursor จากการตอบกลับครั้งก่อนที่ data.data.node.uploaded_videos.page_info เว้นว่างเมื่อขอหน้าแรก |

</div>

## ตัวอย่างโค้ด

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE'
```

```text [🤖 คำแนะนำสำหรับ AI]
ฉันต้องการใช้ API "วิดีโอของโปรไฟล์ (V1)" จาก JustOneAPI.
URL หลัก: https://api.justoneapi.com.
เส้นทาง API: /api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE
เอนด์พอยต์ API: BASE_URL + /api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE
เมธอด HTTP: GET
การยืนยันตัวตน: เพิ่มพารามิเตอร์ "token" เข้าไปใน URL.
คำนิยาม OpenAPI: https://docs.justoneapi.com/openapi/facebook/get-profile-videos-v1-th.json

พารามิเตอร์:
- token (query): โทเค็นความปลอดภัยของผู้ใช้สำหรับยืนยันตัวตนเพื่อเข้าถึง API (จำเป็น)
- profileId (query): ID โปรไฟล์ Facebook (จำเป็น)
- cursor (query): ค่า end_cursor จากการตอบกลับครั้งก่อนที่ data.data.node.uploaded_videos.page_info เว้นว่างเมื่อขอหน้าแรก

รูปแบบที่ส่งกลับ: จัดการ JSON หรือข้อความอย่างปลอดภัยตามค่า Content-Type ที่ได้รับจริง

การจัดการผลตอบกลับและรหัสข้อผิดพลาด:
1. ตรวจสอบผลการทำงานจากฟิลด์ "code" ในผลตอบกลับ (รหัส 0 หมายถึงสำเร็จ)
2. แนะนำให้ตั้งระยะเวลารอ 120 วินาที หาก 120 วินาทีนานเกินไป ให้ตั้งอย่างน้อย 60 วินาที แต่คำขอบางรายการอาจหมดเวลาก่อนได้รับผลลัพธ์
3. รหัสผลลัพธ์:
   - 0: สำเร็จ
   - 100: โทเคนไม่ถูกต้องหรือถูกปิดใช้งาน
   - 301: ดึงข้อมูลไม่สำเร็จ โปรดลองอีกครั้ง
   - 302: เกินขีดจำกัดอัตราการเรียก
   - 303: ใช้โควตารายวันครบแล้ว
   - 400: พารามิเตอร์ไม่ถูกต้อง
   - 500: ข้อผิดพลาดภายในเซิร์ฟเวอร์
   - 600: ไม่มีสิทธิ์เข้าถึง
   - 601: ยอดเงินคงเหลือไม่เพียงพอ
   - 602: ถึงวงเงินของโทเคนแล้ว
4. รหัส 601 หมายถึงยอดเงินที่ใช้ร่วมกันของบัญชีไม่เพียงพอ รหัส 602 หมายถึงโทเคน API ถึงวงเงินสะสมของตนเองแล้ว การกำหนดวงเงินโทเคนจะไม่โอนเงินออกจากยอดเงินที่ใช้ร่วมกันของบัญชี

กรุณาช่วยเขียนสคริปต์ในภาษาโปรแกรมที่ฉันชื่นชอบเพื่อเรียกใช้ API และจัดการการตอบกลับ.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # ให้โดยเซิร์ฟเวอร์ OpenAPI

url = BASE_URL + "/api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
const url = BASE_URL + "/api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
        final String url = BASE_URL + "/api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // ให้โดยเซิร์ฟเวอร์ OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // ให้โดยเซิร์ฟเวอร์ OpenAPI
$url = $BASE_URL . '/api/facebook/get-profile-videos/v1?token=YOUR_API_KEY&profileId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/facebook/get-profile-videos-v1-th.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[คำนิยาม OpenAPI (JSON)]</a>
</div>

## ฟิลด์ที่ได้รับการตอบกลับ

ฟิลด์สำคัญในผลการตอบกลับที่สำเร็จ (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| เส้นทางฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | วิดีโอสาธารณะที่อัปโหลดโดยโปรไฟล์ Facebook พร้อมการแสดงผลแบบเลื่อนกรอบ |
| <code>data.data</code> | <code>object</code> | - |
| <code>data.data.node</code> | <code>object</code> | โปรไฟล์ที่ต้องการและคอลเลกชันวิดีโอที่อัปโหลดของโปรไฟล์นั้น |
| <code>data.data.node.__typename</code> | <code>string</code> | - |
| <code>data.data.node.id</code> | <code>string</code> | ID โปรไฟล์ Facebook |
| <code>data.data.node.uploaded_videos</code> | <code>object</code> | คอลเลกชันวิดีโอที่อัปโหลดของโปรไฟล์ |
| <code>data.data.node.uploaded_videos.count</code> | <code>integer</code> | จำนวนวิดีโอที่อัปโหลดโดยโปรไฟล์ที่รายงาน |
| <code>data.data.node.uploaded_videos.nodes</code> | <code>array</code> | วิดีโอที่อัปโหลดบนหน้านี้. |
| <code>data.data.node.uploaded_videos.nodes[]</code> | <code>object</code> | วิดีโอที่อัปโหลดโดยโปรไฟล์ Facebook. |
| <code>data.data.node.uploaded_videos.nodes[].__typename</code> | <code>string</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].id</code> | <code>string</code> | ID วิดีโอของ Facebook. |
| <code>data.data.node.uploaded_videos.nodes[].width</code> | <code>integer</code> | ความกว้างของวิดีโอในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].height</code> | <code>integer</code> | ความสูงของวิดีโอในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].playable_duration_in_ms</code> | <code>integer</code> | ระยะเวลาการเล่นที่รายงานในมิลลิวินาที. |
| <code>data.data.node.uploaded_videos.nodes[].is_playable</code> | <code>boolean</code> | ว่าการตอบกลับระบุวิดีโอนี้ว่าเล่นได้หรือไม่. |
| <code>data.data.node.uploaded_videos.nodes[].playable_url</code> | <code>string</code> | URL ของสื่อที่ใช้สำหรับการเล่น. |
| <code>data.data.node.uploaded_videos.nodes[].image</code> | <code>object</code> | ภาพที่เกี่ยวข้องกับวิดีโอ. |
| <code>data.data.node.uploaded_videos.nodes[].image.uri</code> | <code>string</code> | URL ของรูปภาพ |
| <code>data.data.node.uploaded_videos.nodes[].image.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].image.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].imageThumbnail</code> | <code>object</code> | ภาพขนาดย่อที่เกี่ยวข้องกับวิดีโอ. |
| <code>data.data.node.uploaded_videos.nodes[].imageThumbnail.uri</code> | <code>string</code> | URL ของรูปภาพ |
| <code>data.data.node.uploaded_videos.nodes[].imageThumbnail.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].imageThumbnail.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].creation_story</code> | <code>object</code> | โพสต์ Facebook ที่เกี่ยวข้องกับวิดีโอที่อัปโหลด. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.id</code> | <code>string</code> | ID ของบันทึกโพสต์ Facebook ที่เกี่ยวข้อง. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.creation_time</code> | <code>integer</code> | เวลาการสร้างโพสต์ตามเวลายูนิกซ์ในหน่วยวินาที. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.actors</code> | <code>array</code> | ผู้ที่เกี่ยวข้องกับโพสต์. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.actors[]</code> | <code>object</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.actors[].id</code> | <code>string</code> | ID Facebook ของผู้ที่เกี่ยวข้อง. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.actors[].name</code> | <code>string</code> | ชื่อที่แสดงของผู้แสดง. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.actors[].is_verified</code> | <code>boolean</code> | ว่าฟีดแบ็กก์ต์ของ Facebook จะถือว่าเป็นผู้ที่ได้รับการยืนยันหรือไม่. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments</code> | <code>array</code> | รายการแนบที่เกี่ยวข้องกับโพสต์ที่ถูกอัปโหลด. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[]</code> | <code>object</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].title</code> | <code>string</code> | ชื่อที่แสดงของรายการแนบ ซึ่งอาจว่างเปล่าได้. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].url</code> | <code>string &#124; null</code> | URL ของรายการแนบ หากมี. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].media</code> | <code>object &#124; null</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].media.id</code> | <code>string</code> | ID ของสื่อบน Facebook |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].media.image</code> | <code>object</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].media.image.uri</code> | <code>string</code> | URL ของรูปภาพ |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].media.image.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.attachments[].media.image.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback</code> | <code>object</code> | ความคิดเห็นและการแสดงออกถึงการมีส่วนร่วมสำหรับบันทึกนี้. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.id</code> | <code>string</code> | ID การตอบกลับของ Facebook |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.legacy_api_post_id</code> | <code>string</code> | ID ของโพสต์ใน Facebook แบบเก่าที่ถูกส่งมาในข้อมูลความคิดเห็น. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.reactors</code> | <code>object</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.reactors.count</code> | <code>integer</code> | จำนวนการแสดงความคิดเห็นที่รายงานไว้ |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.top_level_comments</code> | <code>object</code> | จำนวนครั้งที่รายงานสำหรับความคิดเห็นระดับสูงสุด. |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.top_level_comments.count</code> | <code>integer</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.top_level_comments.total_count</code> | <code>integer</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.reshares</code> | <code>object</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].creation_story.feedback.reshares.count</code> | <code>integer</code> | จำนวนการแชร์ซ้ำที่รายงาน |
| <code>data.data.node.uploaded_videos.nodes[].feedback</code> | <code>object</code> | ความคิดเห็นและการแสดงออกถึงการมีส่วนร่วมสำหรับบันทึกนี้. |
| <code>data.data.node.uploaded_videos.nodes[].feedback.id</code> | <code>string</code> | ID การตอบกลับของ Facebook |
| <code>data.data.node.uploaded_videos.nodes[].feedback.legacy_api_post_id</code> | <code>string</code> | ID ของโพสต์ใน Facebook แบบเก่าที่ถูกส่งมาในข้อมูลความคิดเห็น. |
| <code>data.data.node.uploaded_videos.nodes[].feedback.reactors</code> | <code>object</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].feedback.reactors.count</code> | <code>integer</code> | จำนวนการแสดงความคิดเห็นที่รายงานไว้ |
| <code>data.data.node.uploaded_videos.nodes[].feedback.top_level_comments</code> | <code>object</code> | จำนวนครั้งที่รายงานสำหรับความคิดเห็นระดับสูงสุด. |
| <code>data.data.node.uploaded_videos.nodes[].feedback.top_level_comments.count</code> | <code>integer</code> | - |
| <code>data.data.node.uploaded_videos.nodes[].feedback.top_level_comments.total_count</code> | <code>integer</code> | - |
| <code>data.data.node.uploaded_videos.page_info</code> | <code>object</code> | ข้อมูลการแสดงผลแบบเคอร์เซอร์ |
| <code>data.data.node.uploaded_videos.page_info.end_cursor</code> | <code>string</code> | ส่งค่านี้เป็นคอร์เซอร์เพื่อขอหน้าแสดงต่อไป. |
| <code>data.data.node.uploaded_videos.page_info.start_cursor</code> | <code>string</code> | คอร์เซอร์ที่อยู่ตอนต้นของหน้านี้. |
| <code>data.data.node.uploaded_videos.page_info.has_next_page</code> | <code>boolean</code> | ว่าหน้าแสดงต่อนี้มีตามมาหรือไม่. |
| <code>data.data.node.uploaded_videos.page_info.has_previous_page</code> | <code>boolean</code> | ว่าหน้าแสดงก่อนหน้านี้มีตามมาหรือไม่. |
| <code>data.extensions</code> | <code>object</code> | - |
| <code>data.extensions.is_final</code> | <code>boolean</code> | - |

</div>

## ตัวอย่างผลการตอบกลับ

<ApiExampleSection :api='JSON.parse("\"/api/facebook/get-profile-videos/v1\"")' />

