Get Facebook profile information
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/get-facebook-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profile_id": "Meta"
}
'import requests
url = "https://api.aisa.one/apis/v1/serpapi/get-facebook-profile"
payload = { "profile_id": "Meta" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({profile_id: 'Meta'})
};
fetch('https://api.aisa.one/apis/v1/serpapi/get-facebook-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/serpapi/get-facebook-profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profile_id' => 'Meta'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/get-facebook-profile"
payload := strings.NewReader("{\n \"profile_id\": \"Meta\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/serpapi/get-facebook-profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"profile_id\": \"Meta\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/get-facebook-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_id\": \"Meta\"\n}"
response = http.request(request)
puts response.read_body{
"profile_results": {
"about_details": [
{
"items": [
{
"duration": "<string>",
"facebook_link": "<string>",
"icon": "<string>",
"location": "<string>",
"name": "<string>",
"title": "<string>"
}
],
"section_type": "<string>",
"title": "<string>"
}
],
"address": "<string>",
"alternate_name": "<string>",
"business_hours": "<string>",
"category": "<string>",
"cover_photo": "<string>",
"current_city": "<string>",
"educations": [
{
"facebook_link": "<string>",
"name": "<string>",
"title": "<string>"
}
],
"email": "<string>",
"followers": "<string>",
"following": "<string>",
"gender": "<string>",
"has_stories": true,
"hometown": "<string>",
"id": "<string>",
"likes": "<string>",
"links": [
{
"icon": "<string>",
"link": "<string>",
"title": "<string>"
}
],
"managed_by": "<string>",
"name": "<string>",
"phone": "<string>",
"photos": [
{
"link": "<string>",
"owner": {
"id": "<string>",
"type": "<string>"
}
}
],
"price_range": "<string>",
"private": true,
"profile_intro_text": "<string>",
"profile_picture": "<string>",
"profile_type": "<string>",
"rating": "<string>",
"relationship": "<string>",
"reviews": 123,
"url": "<string>",
"verified": true,
"works": [
{
"facebook_link": "<string>",
"link": "<string>",
"name": "<string>",
"title": "<string>"
}
]
},
"search_metadata": {
"created_at": "<string>",
"facebook_profile_url": "<string>",
"id": "<string>",
"json_endpoint": "<string>",
"processed_at": "<string>",
"raw_html_file": "<string>",
"status": "<string>",
"total_time_taken": 123
},
"search_parameters": {
"engine": "<string>",
"profile_id": "<string>"
}
}SerpApi
Get Facebook profile information
Get Facebook profile information
POST
https://api.aisa.one
/
apis
/
v1
/
serpapi
/
get-facebook-profile
Get Facebook profile information
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/get-facebook-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profile_id": "Meta"
}
'import requests
url = "https://api.aisa.one/apis/v1/serpapi/get-facebook-profile"
payload = { "profile_id": "Meta" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({profile_id: 'Meta'})
};
fetch('https://api.aisa.one/apis/v1/serpapi/get-facebook-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/serpapi/get-facebook-profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profile_id' => 'Meta'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/get-facebook-profile"
payload := strings.NewReader("{\n \"profile_id\": \"Meta\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/serpapi/get-facebook-profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"profile_id\": \"Meta\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/get-facebook-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_id\": \"Meta\"\n}"
response = http.request(request)
puts response.read_body{
"profile_results": {
"about_details": [
{
"items": [
{
"duration": "<string>",
"facebook_link": "<string>",
"icon": "<string>",
"location": "<string>",
"name": "<string>",
"title": "<string>"
}
],
"section_type": "<string>",
"title": "<string>"
}
],
"address": "<string>",
"alternate_name": "<string>",
"business_hours": "<string>",
"category": "<string>",
"cover_photo": "<string>",
"current_city": "<string>",
"educations": [
{
"facebook_link": "<string>",
"name": "<string>",
"title": "<string>"
}
],
"email": "<string>",
"followers": "<string>",
"following": "<string>",
"gender": "<string>",
"has_stories": true,
"hometown": "<string>",
"id": "<string>",
"likes": "<string>",
"links": [
{
"icon": "<string>",
"link": "<string>",
"title": "<string>"
}
],
"managed_by": "<string>",
"name": "<string>",
"phone": "<string>",
"photos": [
{
"link": "<string>",
"owner": {
"id": "<string>",
"type": "<string>"
}
}
],
"price_range": "<string>",
"private": true,
"profile_intro_text": "<string>",
"profile_picture": "<string>",
"profile_type": "<string>",
"rating": "<string>",
"relationship": "<string>",
"reviews": 123,
"url": "<string>",
"verified": true,
"works": [
{
"facebook_link": "<string>",
"link": "<string>",
"name": "<string>",
"title": "<string>"
}
]
},
"search_metadata": {
"created_at": "<string>",
"facebook_profile_url": "<string>",
"id": "<string>",
"json_endpoint": "<string>",
"processed_at": "<string>",
"raw_html_file": "<string>",
"status": "<string>",
"total_time_taken": 123
},
"search_parameters": {
"engine": "<string>",
"profile_id": "<string>"
}
}Request contract
- Method and path: POST /apis/v1/serpapi/get-facebook-profile
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/serpapi/get-facebook-profile
{
"operationId": "serpapi.get-facebook-profile",
"method": "POST",
"path": "/apis/v1/serpapi/get-facebook-profile",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"no_cache": {
"description": "Force SerpAPI to fetch fresh results instead of returning cached data. Set to true to bypass cache and get the most up-to-date information.",
"type": "boolean"
},
"profile_id": {
"description": "Facebook Profile ID or username to retrieve information for. Can be a numeric ID (e.g., '100080376596424') or a username (e.g., 'Meta'). This is the unique identifier for the Facebook profile or page.",
"examples": [
"Meta",
"100080376596424",
"zuck"
],
"type": "string"
}
},
"required": [
"profile_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0253 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json