Get Facebook group
curl --request GET \
--url https://api.aisa.one/apis/v1/facebook/groups \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/facebook/groups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/facebook/groups', 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/facebook/groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/facebook/groups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/facebook/groups")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/facebook/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"group": {
"activity": {
"newMembersText": "No new members in the last week",
"postsLastDay": 17,
"postsLastMonth": 465
},
"administratorCount": 3,
"administrators": [
{
"id": "pfbid05pxyCbKSYATAqM2c3ZWdKEFWRSQ15sZqraPpQLsbFGXMe1jr88HRL4aCXCmRycxjl",
"name": "Nusrat Jahan",
"profilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-1/297738489_149183324449711_6655284279259187616_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx720x730&ctp=s32x32&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=JaTez5Hhh5IQ7kNvwFXWOPg&_nc_oc=Adqo_IoUEWpraTz_d2ZqTa_N-1pnRHBKywgD2t0oEu-D1f0uXJJqu71Tmjc2ryw7a10&_nc_zt=24&_nc_ht=scontent-bos5-1.xx&_nc_gid=mFEP1inOqSifm67i77gx7A&_nc_ss=7f289&oh=00_AQF0E_qUwIlw35jn18fNnuVdSkqofkJxv2hnSRsh-ZJoMw&oe=6A910E2D",
"url": "https://www.facebook.com/people/Nusrat-Jahan/pfbid05pxyCbKSYATAqM2c3ZWdKEFWRSQ15sZqraPpQLsbFGXMe1jr88HRL4aCXCmRycxjl/"
},
{
"id": "100079525026696",
"name": "Thesoftwarelion",
"profilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-1/242977119_109642788145497_5023972278328162431_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1200x1200&ctp=s32x32&_nc_cat=110&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=mPpheVfRSLUQ7kNvwGRRenb&_nc_oc=AdoHM8fjFiv4AOzgZSFxqp1V4vCFml9RIdQbjasG9bfLVBWftp8wb6HFePVu7_UYeTc&_nc_zt=24&_nc_ht=scontent-bos5-1.xx&_nc_gid=mFEP1inOqSifm67i77gx7A&_nc_ss=7f289&oh=00_AQE4wgqIT7rQ6AQShW1A_oauczy6HX_TOXtbxhtKLShGhg&oe=6A912EF5",
"url": "https://www.facebook.com/thesoftwarelion"
},
{
"id": "pfbid02tY94xx8TAnqtJEJsqte1BWr3nUPBR3HK7LVXkRWMWuQYPBWwrybjoWNwzwT4Q6U9l",
"name": "Jamil Ahmed",
"profilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-1/531963150_23946788638346931_481272259148662381_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx896x892&ctp=s32x32&_nc_cat=109&ccb=1-7&_nc_sid=e99d92&_nc_ohc=32xJtpAioxAQ7kNvwEsF9m9&_nc_oc=AdqHBhHSp8mk5JvFCzZoqN6wBSiWTGMmt9afBiUzawFMVPNJBZuboN98UOS8OBBlSJo&_nc_zt=24&_nc_ht=scontent-bos5-1.xx&_nc_gid=mFEP1inOqSifm67i77gx7A&_nc_ss=7f289&oh=00_AQFvoXp5PO2omPd53NyX6-s3-HOcifdMnwQqXUmSmzUh2w&oe=6A91045D",
"url": "https://www.facebook.com/people/Jamil-Ahmed/pfbid02tY94xx8TAnqtJEJsqte1BWr3nUPBR3HK7LVXkRWMWuQYPBWwrybjoWNwzwT4Q6U9l/"
}
],
"categories": [
{
"id": "242504017103922",
"name": "Software & tech"
},
{
"id": "202183377053878",
"name": "Engineering"
}
],
"createdAt": "2020-10-14T11:05:03.000Z",
"description": "Let's share our knowledge on Python Programming",
"historySummary": "Group created on October 14, 2020. Name last changed on October 16, 2020.",
"id": "366190054572553",
"memberCount": 721497,
"moderatorCount": 0,
"moderators": [],
"name": "Python Programming",
"platform": "facebook",
"privacy": {
"description": "Anyone can see who's in the group and what they post.",
"label": "Public"
},
"rules": [
{
"description": "We're all in this together to create a welcoming environment. Let's treat everyone with respect. Healthy debates are natural, but kindness is required.",
"id": "366191957905696",
"title": "Be Kind and Courteous"
},
{
"description": "Make sure everyone feels safe. Bullying of any kind isn't allowed, and degrading comments about things like race, religion, culture, sexual orientation, gender or identity will not be tolerated.",
"id": "366191961239029",
"title": "No Hate Speech or Bullying"
},
{
"description": "Give more than you take to this group. Self-promotion, spam and irrelevant links aren't allowed.",
"id": "366191964572362",
"title": "No Promotions or Spam"
},
{
"description": "Being part of this group requires mutual trust. Authentic, expressive discussions make groups great, but may also be sensitive and private. What's shared in the group should stay in the group.",
"id": "366191967905695",
"title": "Respect Everyone's Privacy"
}
],
"url": "https://www.facebook.com/groups/366190054572553",
"visibility": {
"description": "Anyone can find this group.",
"label": "Visible"
}
},
"lookupStatus": "found"
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example_facebook_group_found",
"version": "v1"
}
}Facebook
Get Facebook group
Returns a Facebook group. Provide url or groupId.
GET
https://api.aisa.one
/
apis
/
v1
/
facebook
/
groups
Get Facebook group
curl --request GET \
--url https://api.aisa.one/apis/v1/facebook/groups \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/facebook/groups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/facebook/groups', 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/facebook/groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/facebook/groups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/facebook/groups")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/facebook/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"group": {
"activity": {
"newMembersText": "No new members in the last week",
"postsLastDay": 17,
"postsLastMonth": 465
},
"administratorCount": 3,
"administrators": [
{
"id": "pfbid05pxyCbKSYATAqM2c3ZWdKEFWRSQ15sZqraPpQLsbFGXMe1jr88HRL4aCXCmRycxjl",
"name": "Nusrat Jahan",
"profilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-1/297738489_149183324449711_6655284279259187616_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx720x730&ctp=s32x32&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=JaTez5Hhh5IQ7kNvwFXWOPg&_nc_oc=Adqo_IoUEWpraTz_d2ZqTa_N-1pnRHBKywgD2t0oEu-D1f0uXJJqu71Tmjc2ryw7a10&_nc_zt=24&_nc_ht=scontent-bos5-1.xx&_nc_gid=mFEP1inOqSifm67i77gx7A&_nc_ss=7f289&oh=00_AQF0E_qUwIlw35jn18fNnuVdSkqofkJxv2hnSRsh-ZJoMw&oe=6A910E2D",
"url": "https://www.facebook.com/people/Nusrat-Jahan/pfbid05pxyCbKSYATAqM2c3ZWdKEFWRSQ15sZqraPpQLsbFGXMe1jr88HRL4aCXCmRycxjl/"
},
{
"id": "100079525026696",
"name": "Thesoftwarelion",
"profilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-1/242977119_109642788145497_5023972278328162431_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1200x1200&ctp=s32x32&_nc_cat=110&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=mPpheVfRSLUQ7kNvwGRRenb&_nc_oc=AdoHM8fjFiv4AOzgZSFxqp1V4vCFml9RIdQbjasG9bfLVBWftp8wb6HFePVu7_UYeTc&_nc_zt=24&_nc_ht=scontent-bos5-1.xx&_nc_gid=mFEP1inOqSifm67i77gx7A&_nc_ss=7f289&oh=00_AQE4wgqIT7rQ6AQShW1A_oauczy6HX_TOXtbxhtKLShGhg&oe=6A912EF5",
"url": "https://www.facebook.com/thesoftwarelion"
},
{
"id": "pfbid02tY94xx8TAnqtJEJsqte1BWr3nUPBR3HK7LVXkRWMWuQYPBWwrybjoWNwzwT4Q6U9l",
"name": "Jamil Ahmed",
"profilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-1/531963150_23946788638346931_481272259148662381_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx896x892&ctp=s32x32&_nc_cat=109&ccb=1-7&_nc_sid=e99d92&_nc_ohc=32xJtpAioxAQ7kNvwEsF9m9&_nc_oc=AdqHBhHSp8mk5JvFCzZoqN6wBSiWTGMmt9afBiUzawFMVPNJBZuboN98UOS8OBBlSJo&_nc_zt=24&_nc_ht=scontent-bos5-1.xx&_nc_gid=mFEP1inOqSifm67i77gx7A&_nc_ss=7f289&oh=00_AQFvoXp5PO2omPd53NyX6-s3-HOcifdMnwQqXUmSmzUh2w&oe=6A91045D",
"url": "https://www.facebook.com/people/Jamil-Ahmed/pfbid02tY94xx8TAnqtJEJsqte1BWr3nUPBR3HK7LVXkRWMWuQYPBWwrybjoWNwzwT4Q6U9l/"
}
],
"categories": [
{
"id": "242504017103922",
"name": "Software & tech"
},
{
"id": "202183377053878",
"name": "Engineering"
}
],
"createdAt": "2020-10-14T11:05:03.000Z",
"description": "Let's share our knowledge on Python Programming",
"historySummary": "Group created on October 14, 2020. Name last changed on October 16, 2020.",
"id": "366190054572553",
"memberCount": 721497,
"moderatorCount": 0,
"moderators": [],
"name": "Python Programming",
"platform": "facebook",
"privacy": {
"description": "Anyone can see who's in the group and what they post.",
"label": "Public"
},
"rules": [
{
"description": "We're all in this together to create a welcoming environment. Let's treat everyone with respect. Healthy debates are natural, but kindness is required.",
"id": "366191957905696",
"title": "Be Kind and Courteous"
},
{
"description": "Make sure everyone feels safe. Bullying of any kind isn't allowed, and degrading comments about things like race, religion, culture, sexual orientation, gender or identity will not be tolerated.",
"id": "366191961239029",
"title": "No Hate Speech or Bullying"
},
{
"description": "Give more than you take to this group. Self-promotion, spam and irrelevant links aren't allowed.",
"id": "366191964572362",
"title": "No Promotions or Spam"
},
{
"description": "Being part of this group requires mutual trust. Authentic, expressive discussions make groups great, but may also be sensitive and private. What's shared in the group should stay in the group.",
"id": "366191967905695",
"title": "Respect Everyone's Privacy"
}
],
"url": "https://www.facebook.com/groups/366190054572553",
"visibility": {
"description": "Anyone can find this group.",
"label": "Visible"
}
},
"lookupStatus": "found"
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example_facebook_group_found",
"version": "v1"
}
}
请求示例待验证。 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式,请替换为自己的参数。正式调用前,可用免费的报价模式(X-AISA-Cost-Mode: quote)查看预估费用。
请求规范
- 方法与路径: GET /apis/v1/facebook/groups
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/facebook/groups - groupId: query; 可选
- url: query; 可选
{
"operationId": "facebook.groups",
"method": "GET",
"path": "/apis/v1/facebook/groups",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "groupId",
"required": false,
"schema": {
"description": "Numeric Facebook group id when you have it instead of a full URL.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "url",
"required": false,
"schema": {
"description": "Public Facebook group URL.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.014 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。响应时间
- 通常 10 秒内返回。