querystringआवश्यक
Name to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago).
https://api.sandbase.ai/v1/api/facebook/page-lookupLook up Facebook Pages and profiles by name with Facebook's own quick search. A name lookup that returns basic identity fields only: name, URL, profile image, Facebook id, and verified status. Matches can include personal profiles as well as Pages. For full Page details (category, followers, phone, website), use facebook.search_pages.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
This API looks up Facebook Pages and profiles by name and returns up to 7 matches. It needs one input, query, the name you would type into Facebook's search box. Each match has only basic identity fields.
id of a brand or organization from its name.id or url, then pass it to another Facebook API for deeper data.curl -X POST "https://api.sandbase.ai/v1/api/facebook/page-lookup" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 5, "query": "NASA"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Name to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago). |
limit | integer | No | Maximum number of matches to return (1-7, default 7). Facebook's quick search answers a name with at most 7 matches. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"id": "100044561550831",
"image": "https://scontent-mia5-2.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_384…",
"isVerified": true,
"name": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the lookup returned at least one match. A lookup with no matches returns found: false. |
data.items[] | One match for the name. The list holds at most limit entries, and never more than 7. |
data.items[].name | Display name of the Page or profile, for example NASA - National Aeronautics and Space Administration. |
data.items[].url | Public Facebook URL of the match, for example https://www.facebook.com/NASA. |
data.items[].id | Facebook id of the match, returned as a string of digits. |
data.items[].isVerified | true when the match shows as verified on Facebook. |
data.items[].image | URL of the small profile image for the match. The sample URLs point to 120x120 images. |
name and url before you use a result.limit between 1 and 7. The default is 7, and there is no pagination.Billed at the actual cost of each call, about $0.00975 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/page-lookup" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 5,
"query": "NASA"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
querystringआवश्यकName to look up, as you would type it into Facebook's search box (e.g. NASA or plumber chicago).
limitintegerMaximum number of matches to return (1-7, default 7). Facebook's quick search answers a name with at most 7 matches.
डिफ़ॉल्ट: 7
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Facebook Page Lookupयह API Facebook | $0.00975 प्रति कॉल से | JSON |
Facebook | $0.0012 प्रति कॉल से | JSON |
Facebook | $0.00462 प्रति कॉल से | JSON |
Facebook | $0.0012 प्रति कॉल से | JSON |
Facebook | $0.0011 प्रति कॉल से | JSON |
Facebook | $0.0011 प्रति कॉल से | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/facebook/page-lookup पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00975 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: query (string)। वैकल्पिक: limit (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Facebook Page Lookup SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Facebook API access के लिए आवेदन करने की आवश्यकता नहीं है।