Facebook Posts Scraper API
With the Facebook Post Scraping API, you scrape any post on Facebook. You just have to pass the internal ID of the account to get the data.
Parameters
Scrapingdog Parameters
Parameter
Description
Search Query
Parameter
Description
Pagination
Parameter
Description
API Example
cURL "https://api.scrapingdog.com/facebook/posts?api_key=APIKEY&id=100044541544829"import requests
api_key = 'APIKEY'
id = '100044541544829'
params = {
'api_key': api_key,
'id': id
}
response = requests.get('https://api.scrapingdog.com/facebook/posts', params=params)
if response.status_code == 200:
# Parse the JSON response using response.json()
response_data = response.json()
# Now you can work with the response_data as a Python dictionary
print(response_data)
else:
print(f'Request failed with status code: {response.status_code}')
API Response
{
"pagination": {
"has_next_page": true,
"next_page_token": "Cg8Ob3JnYW5pY19jdXJzb3IJAAACb0FRSFN0YWNmcU50c3hZbWo3WHZjRUhyR2xiOTlBV29td2E0MDlWanJHMDhrNUZITGg2RUFrQ21FejBIclpBLTRnS0s1bFg4ZlNOYlpkQWs4N1B2eXFaQk5kcDBUZEdWN2NoRV82V2hPYmJSeE91RDUxNHFiMENSZ05nblZETENRaGFwRDZXbmpBdjR0NFptazMzSDJldmZWU0w0cThrM3NPOGd1dDRlbTVHRFNaSVlaOXNQc2Zzb2xYRllWTWdYWFYyNWQtMnN1REcyU1dCci1uaEVJbTYtNlhVbUtod3BUTmZtU1ZGSmI5V1Izdm9GaG8zalZfeC0wYXFTY2VZRjdCN2wxOWgzRGhqNHU0c1dmVmtYcUZwMExJMzBYX3dqSVRFdlVVcG9ZZl9KY0cwcmhLSUxXR3NNa1FER3o3UFA0Vzhxci1NRmR0VlVMV19TbWw0YnFPUmlpemhWYmdtbkpZd3ZSNFZ5VE1Kc1poR1RzQ2tSN1plcHZ0emlzeDdoclJ1SklpSG02X19HUzZ4R1dLOWlza21BOVpwUm1Sc0FMS3Y2bUFUUVh4SWh3eTJUVVZMVDZsRGVNWmFSVFBUUXBxRXg3bnRlTDNzc2tIMWs4VF9aMXN4Zmd0Q0tRY0FZYXdkOThYdXZyUUtzRWx3a2lIVC1SbTlEU25DM3ljalc3TlFCeG5YMkhOZkVCYW1KeXpMTmQ3Q1RKdnpaSEhSQUZfRFU0ZTlFcEVzbVI0Y05YNW1iMzRSYUplRTlReXF5WlJwdWxhS1ZKSnVSM2NpS3hBeDlaSDB3dlA0WE1qcFdZWTRpcGxoT3ZyRUpUYVEwDwlhZF9jdXJzb3IODw9nbG9iYWxfcG9zaXRpb24CAA8Gb2Zmc2V0AgAPEGxhc3RfYWRfcG9zaXRpb24C/wE="
},
"posts_data": [
{
"cache_id": "8051191019963556713",
"post_id": "1393461115481927",
"url": "https://www.facebook.com/reel/2166091230582141/",
"likes": 6071,
"shares": 941,
"comments": 1874,
"timestamp": 1757952119,
"media": [
{
"type": "Video",
"is_playable": false,
"url": "https://www.facebook.com/reel/2166091230582141/",
"image": "https://scontent-lax7-1.cdninstagram.com/v/t51.82787-10/549104239_18565912819020081_2330706867671026439_n.jpg?stp=dst-jpg_p565x565_tt6&_nc_cat=101&ccb=7-5&_nc_sid=c44d43&_nc_ohc=ZAW4lcZWvQIQ7kNvwGJMmay&_nc_oc=Adox_T58V_2KyssrrJv90IOFLV-6w5u3YHolkStQph--01UIaHUgWtQXTGbgPFTsxD4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_gid=HqxEmQM55KBrXMZ3MLc1yw&_nc_ss=7039b&oh=00_Af7dhJ6bG_EA7K_6I2w-IAc1GuP_cvv1tBdFWbn4KeOmSQ&oe=6A1D2FA4",
"viewer_image": null,
"id": "2166091230582141",
"accessibility_caption": null
}
],
"message": "Leave your limits at the surface. #JustDoIt",
"actors": [
{
"profile_picture": {
"uri": "https://scontent-lax3-2.cdninstagram.com/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=cp0_dst-jpg_s50x50_tt6&_nc_cat=1&ccb=7-5&_nc_sid=2d3e12&_nc_ohc=hsrXiQCvxVsQ7kNvwFx9Qc8&_nc_oc=AdqFFZBL_Riq6H2QcioP1UTjB67ooXA3c9vcjoFNSoIImuNBRpP2Y1EvbuOWmPmjDfo&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-2.cdninstagram.com&_nc_gid=HqxEmQM55KBrXMZ3MLc1yw&_nc_ss=7039b&oh=00_Af79r6G7BaeveHDCY5yfS8C_GDu9UtsE5qsUZGX4gpAn_A&oe=6A1D1A70"
},
"__typename": "User",
"id": "100044541544829",
"name": "Nike",
"__isEntity": "User",
"url": "https://www.facebook.com/nike"
}
],
"entities": [
{
"entity": {
"__typename": "Hashtag",
"__isEntity": "Hashtag",
"url": "https://www.facebook.com/hashtag/justdoit",
"mobileUrl": "https://m.facebook.com/hashtag/justdoit",
"__isNode": "Hashtag",
"id": "363339373780672"
},
"entity_is_weak_reference": false,
"length": 9,
"offset": 34
}
]
},
{
"cache_id": "-7914302619487003160",
"post_id": "1392071868954185",
"url": "https://www.facebook.com/reel/752115997659579/",
"likes": 4045,
"shares": 500,
"comments": 585,
"timestamp": 1757807583,
"media": [
{
"type": "Video",
"is_playable": false,
"url": "https://www.facebook.com/reel/752115997659579/",
"image": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-10/548838919_18565615666020081_158902364425729178_n.jpg?stp=dst-jpg_p565x565_tt6&_nc_cat=104&ccb=7-5&_nc_sid=c44d43&_nc_ohc=AjG952bXWDcQ7kNvwGNgDO1&_nc_oc=AdoD_qPHbc0IrHUcxLlZtbzgt6PjW3J-VZaFQ-KAUfm1T45_AxRY-Jwdm-XUB_TLNT4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-lax3-1.cdninstagram.com&_nc_gid=HqxEmQM55KBrXMZ3MLc1yw&_nc_ss=7039b&oh=00_Af7avuRONkcydCLlPd2-YJbngVqGP0wq7wYiesgbGtpZKw&oe=6A1D110D",
"viewer_image": null,
"id": "752115997659579",
"accessibility_caption": null
}
],
"message": "The longest jump is the one you didn’t doubt. #JustDoIt",
"actors": [
{
"profile_picture": {
"uri": "https://scontent-lax3-2.cdninstagram.com/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=cp0_dst-jpg_s50x50_tt6&_nc_cat=1&ccb=7-5&_nc_sid=2d3e12&_nc_ohc=hsrXiQCvxVsQ7kNvwFx9Qc8&_nc_oc=AdqFFZBL_Riq6H2QcioP1UTjB67ooXA3c9vcjoFNSoIImuNBRpP2Y1EvbuOWmPmjDfo&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-2.cdninstagram.com&_nc_gid=HqxEmQM55KBrXMZ3MLc1yw&_nc_ss=7039b&oh=00_Af79r6G7BaeveHDCY5yfS8C_GDu9UtsE5qsUZGX4gpAn_A&oe=6A1D1A70"
},
"__typename": "User",
"id": "100044541544829",
"name": "Nike",
"__isEntity": "User",
"url": "https://www.facebook.com/nike"
}
],
"entities": [
{
"entity": {
"__typename": "Hashtag",
"__isEntity": "Hashtag",
"url": "https://www.facebook.com/hashtag/justdoit",
"mobileUrl": "https://m.facebook.com/hashtag/justdoit",
"__isNode": "Hashtag",
"id": "363339373780672"
},
"entity_is_weak_reference": false,
"length": 9,
"offset": 46
}
]
},
{
"cache_id": "-3786931348888444351",
"post_id": "1388501259311246",
"url": "https://www.facebook.com/reel/1168298751995880/",
"likes": 2891,
"shares": 341,
"comments": 375,
"timestamp": 1757462067,
"media": [
{
"type": "Video",
"is_playable": false,
"url": "https://www.facebook.com/reel/1168298751995880/",
"image": "https://scontent-lax3-2.cdninstagram.com/v/t51.71878-10/544903342_1488127749039210_7715950054603424720_n.jpg?stp=dst-jpg_p565x565_tt6&_nc_cat=111&ccb=7-5&_nc_sid=c44d43&_nc_ohc=hPvBB7oGgdQQ7kNvwFegvfF&_nc_oc=AdpSiRBBMiHHfxFZ8z627AW-NTfVDg4QiE761kn2VQz9lWzXohbdmAScK2p6LZQMetg&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-lax3-2.cdninstagram.com&_nc_gid=HqxEmQM55KBrXMZ3MLc1yw&_nc_ss=7039b&oh=00_Af61Fe2fs60AH4qrH5jHqqgoKqsqRknW7XDHvWiB_K_rkQ&oe=6A1D2A77",
"viewer_image": null,
"id": "1168298751995880",
"accessibility_caption": null
}
],
"message": "Two thoughts, you’re out. #justdoit",
"actors": [
{
"profile_picture": {
"uri": "https://scontent-lax3-2.cdninstagram.com/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=cp0_dst-jpg_s50x50_tt6&_nc_cat=1&ccb=7-5&_nc_sid=2d3e12&_nc_ohc=hsrXiQCvxVsQ7kNvwFx9Qc8&_nc_oc=AdqFFZBL_Riq6H2QcioP1UTjB67ooXA3c9vcjoFNSoIImuNBRpP2Y1EvbuOWmPmjDfo&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-2.cdninstagram.com&_nc_gid=HqxEmQM55KBrXMZ3MLc1yw&_nc_ss=7039b&oh=00_Af79r6G7BaeveHDCY5yfS8C_GDu9UtsE5qsUZGX4gpAn_A&oe=6A1D1A70"
},
"__typename": "User",
"id": "100044541544829",
"name": "Nike",
"__isEntity": "User",
"url": "https://www.facebook.com/nike"
}
],
"entities": [
{
"entity": {
"__typename": "Hashtag",
"__isEntity": "Hashtag",
"url": "https://www.facebook.com/hashtag/justdoit",
"mobileUrl": "https://m.facebook.com/hashtag/justdoit",
"__isNode": "Hashtag",
"id": "363339373780672"
},
"entity_is_weak_reference": false,
"length": 9,
"offset": 26
}
]
}
]
}Last updated