pagestringจำเป็น
Facebook Page URL or page ID to look up (e.g. https://www.facebook.com/nasa).
https://api.sandbase.ai/v1/api/facebook/page-contactLook up a Facebook Page's public contact details (email, phone, website, and address) by page URL or ID.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API returns the public contact details of a Facebook Page, including email, phone, website, and address. It also returns basic page facts such as category, follower count, and ad status. You send a Page URL or a page ID in page.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/page-contact" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"page": "https://www.facebook.com/joesstonecrab"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
page | string | Yes | Facebook Page URL or page ID to look up (e.g. https://www.facebook.com/nasa). |
language | string | No | Locale code for the returned data (e.g. en-US). |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example createdUtc or adStatus, and it is served only by a source that ret |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"about": "For more than 100 years, no visit to Miami has been complete without stopping he…",
"adLibraryPageId": "404077308008",
"adStatus": "This Page isn't currently running ads.",
"address": "11 Washington Ave, Miami Beach, FL, United States, 33139",
"category": "Seafood Restaurant",
"coverPhotoUrl": "https://scontent-msp1-1.xx.fbcdn.net/v/t39.30808-6/626797260_1324209616413613_36…",
"createdUtc": 1268006400,
"email": "[email protected]",
"followers": 44732,
"id": "100064737608769",
"image": "https://scontent-msp1-1.xx.fbcdn.net/v/t39.30808-1/626760115_1324209663080275_79…",
"links": [
"https://www.instagram.com/joesstonecrab"
]
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].email / phone / website | Public contact details the Page lists. A Page that does not list one of these may omit it. |
data.items[].address | Street address of the business as one text string. |
data.items[].title | Display name of the Page. |
data.items[].category | Business category of the Page, such as Seafood Restaurant. |
data.items[].followers | Number of followers the Page has. |
data.items[].createdUtc | Page creation time as a Unix timestamp in seconds. |
data.items[].adStatus | Text that says whether the Page is currently running ads. |
data.items[].adLibraryPageId | ID of the Page in the Facebook Ad Library. |
data.items[].id | Numeric Facebook ID of the Page. |
data.items[].links | List of other profile URLs the Page links to, such as Instagram. |
page to a full Page URL such as https://www.facebook.com/joesstonecrab or to a numeric page ID.data.items. When nothing matches, the response has found: false.requireFields with adStatus, createdUtc, or followers to make sure the answering source returns those fields. This can change the price of the call.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/facebook/page-contact" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": "https://www.facebook.com/joesstonecrab",
"language": "en-US"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
pagestringจำเป็นFacebook Page URL or page ID to look up (e.g. https://www.facebook.com/nasa).
languagestringLocale code for the returned data (e.g. en-US).
ค่าเริ่มต้น: "en-US"
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `createdUtc` or `adStatus`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a page that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Facebook Page Contact InfoAPI นี้ Facebook | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.00462 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/facebook/page-contact โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0012 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: page (string). ตัวเลือก: language (string) และ requireFields (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Facebook Page Contact Info ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Facebook API แยกต่างหาก