Facebook Profile Photos API
The Facebook Profile Photos API returns the photos a public Facebook profile or Page has posted, newest
first, eight at a time. Each photo carries its id, the link of its own page, the image link with its
width and height, a thumbnail and Facebook's description of the picture. The first page adds a
profile block with the profile's id, name, username, link, picture, followers and cover photo, and
pagination.next_page_token is present while more photos remain. A profile Facebook does not
show publicly, a share link that opens something other than a profile, a profile without public photos
and a next_page_token Facebook no longer accepts answer 200 with an error and
cost a credit.
A photo's link can be passed as url to the
Facebook Post API for its text and reactions, or to the
Facebook Comments API for its comments.
API Parameters
Profile Link
-
- Name
-
url - Required
- Optional
- Description
-
The link of the public Facebook profile or Page to get photos for, e.g.
https://www.facebook.com/NASA.profile.php,people, numeric id andfacebook.com/share/links are accepted, and so is the link of one of the profile's tabs. It is alsopost.author.linkfrom the Facebook Post API andpage.linkfrom the Facebook Business Page API. Required unlessnext_page_tokenis provided.
Pagination
-
- Name
-
next_page_token - Required
- Optional
- Description
-
Parameter defines the cursor for the next page. Take it from
pagination.next_page_tokenin a previous response. The token identifies the profile on its own, sourlmay be omitted with it.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
facebook_profile_photos.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Profile Photos
Pass the link of the profile or Page as url to get its latest photos.
https://www.searchapi.io/api/v1/search?engine=facebook_profile_photos&url=https%3A%2F%2Fwww.facebook.com%2FNASA
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "facebook_profile_photos",
"url": "https://www.facebook.com/NASA"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_MJQGykEzoKXOSnA3aB6bl2NK",
"status": "Success",
"created_at": "2026-11-25T23:52:00Z",
"request_time_taken": 2.69,
"parsing_time_taken": 0.14,
"total_time_taken": 2.83,
"request_url": "https://www.facebook.com/NASA/photos",
"html_url": "https://www.searchapi.io/api/v1/searches/search_MJQGykEzoKXOSnA3aB6bl2NK.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_MJQGykEzoKXOSnA3aB6bl2NK"
},
"search_parameters": {
"engine": "facebook_profile_photos",
"url": "https://www.facebook.com/NASA"
},
"profile": {
"id": "100044561550831",
"name": "NASA - National Aeronautics and Space Administration",
"username": "NASA",
"link": "https://www.facebook.com/NASA",
"avatar": "https://scontent.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=dst-png&cstp=mx800x800&ctp=s480x480&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=9L3SyA6O4hMQ7kNvwEPxDTA&_nc_oc=Ado7Gye-lkvBaDDhCO0TXjYUM4GVQmANeN5gUTL7urcvxrcH2u6hGAH-fPuCZLyLh_U&_nc_zt=24&_nc_ht=scontent.xx&_nc_gid=IRk_sjkP5rI5Psr8VBcDhA&_nc_ss=7b389&oh=00_AQTZJ6hKjKa4R_o0rAQXS4i8AEOqwgSqdkwUdO2amHKI7A&oe=6B0D4015",
"is_verified": true,
"followers": {
"text": "28M followers",
"link": "https://www.facebook.com/NASA/followers/",
"count": 28000000
},
"cover_photo_original": "https://scontent.xx.fbcdn.net/v/t39.99422-6/809146614_4484013928506139_3181913787670602881_n.png?stp=dst-jpg_tt6&cstp=mx2047x1487&ctp=s2047x1487&_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=GVR710ihTyEQ7kNvwHxM7yC&_nc_oc=Adoerh4e0YPmfXOAnpcrbQjCsTvTj3U_6Mv6s_tgBr6gO7na1E0neKUxGa7kyP_LfAU&_nc_zt=14&_nc_ht=scontent.xx&_nc_gid=IRk_sjkP5rI5Psr8VBcDhA&_nc_ss=7b389&oh=00_AQTujzguiUh4f2Opl2NwBqH4MqVLO_DFj5I04JORu0LROw&oe=6B0D43E7",
"cover_photo_link": "https://www.facebook.com/photo/?fbid=1629624498532920&set=a.416660999829282"
},
"photos": [
{
"position": 1,
"id": "1697460148416021",
"link": "https://www.facebook.com/photo.php?fbid=1697460148416021&set=pb.100044561550831.-2207520000&type=3",
"image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/924514337_1697460158416020_6227482654830500974_n.jpg?stp=dst-jpg_tt6&cstp=mx1280x853&ctp=s1280x853&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=127cfc&_nc_ohc=qdkt-qCSuNUQ7kNvwHYPyVh&_nc_oc=AdqsHa8tLa_5PiwHiiiVNnP1VgwIZmBE3SBdprm7sRPW1UBmfnrlqcCnGm0WsGR80LY&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=IRk_sjkP5rI5Psr8VBcDhA&_nc_ss=7b389&oh=00_AQTxZzsNmcVnRhOPIH3Y6ukOkPg_gU-XUtw7nVQa5y5Nkg&oe=6B0D599E",
"width": 1280,
"height": 853,
"accessibility_caption": "The heavily cratered Moon as seen by the Artemis II crew as they traveled around the Moon. The boundary between lunar day and night, or the terminator, is visible at the top of the image. This area is the South Pole-Aitken basin, the largest and oldest basin on the Moon.",
"thumbnail": "https://scontent.xx.fbcdn.net/v/t39.30808-6/924514337_1697460158416020_6227482654830500974_n.jpg?stp=c214.0.853.853a_dst-jpg_tt6&cstp=mx853x853&ctp=s552x414&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=714c7a&_nc_ohc=qdkt-qCSuNUQ7kNvwHYPyVh&_nc_oc=AdqsHa8tLa_5PiwHiiiVNnP1VgwIZmBE3SBdprm7sRPW1UBmfnrlqcCnGm0WsGR80LY&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=IRk_sjkP5rI5Psr8VBcDhA&_nc_ss=7b389&oh=00_AQReHDVNU1Ukp_Y2AwOAe0XQTGTYVU1_2XDiJLobMkvSfQ&oe=6B0D599E"
},
{
"position": 2,
"id": "1690599555768747",
"link": "https://www.facebook.com/photo.php?fbid=1690599555768747&set=pb.100044561550831.-2207520000&type=3",
"image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/916765074_1690599559102080_8008653452099091270_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x2048&ctp=s2048x2048&_nc_cat=105&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=127cfc&_nc_ohc=y06oZdeErRAQ7kNvwGjt6R6&_nc_oc=AdpvqmMRNNLlNUsD_6pGK3p7I6bFoiH3jBwHB44KhsFpQsbbNchmYQBZ_KhKkxGprIU&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=IRk_sjkP5rI5Psr8VBcDhA&_nc_ss=7b389&oh=00_AQQgxP4pRYXRqjZ5YnoqUdip4As803D4YaTka9VOnmZhwQ&oe=6B0D59E2",
"width": 2048,
"height": 2048,
"accessibility_caption": "A supernova remnant looks like colorful paints swirling together set against the darkness of space. At the heart of the image is a light purple cloud and a spiraling, bright yellow tangle. A vibrant red gas cloud surrounds the center; it has trails of red that drift upward and to the right. A faint, dark blue cloud begins at upper left and exits the bottom of the frame. The image combines data from our Chandra X-ray Observatory, NSF's Very Large Array, and the James Clerk Maxwell Telescope.",
"thumbnail": "https://scontent.xx.fbcdn.net/v/t39.30808-6/916765074_1690599559102080_8008653452099091270_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x2048&ctp=s552x414&_nc_cat=105&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=714c7a&_nc_ohc=y06oZdeErRAQ7kNvwGjt6R6&_nc_oc=AdpvqmMRNNLlNUsD_6pGK3p7I6bFoiH3jBwHB44KhsFpQsbbNchmYQBZ_KhKkxGprIU&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=IRk_sjkP5rI5Psr8VBcDhA&_nc_ss=7b389&oh=00_AQQgxP4pRYXRqjZ5YnoqUdip4As803D4YaTka9VOnmZhwQ&oe=6B0D59E2"
},
...
],
"pagination": {
"next_page_token": "eyJ0IjoicGhvdG9zIiwiaSI6InBmYmlkMDdaZWJGcVViZnRoNUc2YWtwRWdhaGlCeXJjWERyZmtFV20xWkYyMmI3ZlRHeWV1b1FKalpOb25Ca2NpM0w0Rk5hV3JZN0FkRENnRHZyWVRGdGlyWGp3RHlpZUUybCIsImMiOiJBUUhUNkRBSFd2dFM5MlltUWJCVHRDanZzaEFUclpwWEhKY3N4ZmRLaDMybFlVSW1RRkdlVTU4WFVJTXlmbXBiemJfNnpGeDRmNU15ZWlac0VWVWY4RWZSLVEiLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwibiI6InU6bmFzYSJ9"
}
}
Paginating Photos
Pass pagination.next_page_token back as next_page_token to fetch the next
eight photos. The token keeps the profile, so url may be omitted. The last page carries no
token.
https://www.searchapi.io/api/v1/search?engine=facebook_profile_photos&next_page_token=eyJ0IjoicGhvdG9zIiwiaSI6InBmYmlkMDNtM3dONEs5OGtqdFkzOFZIZ1k4TnZZcG5zUDNwZVdOUUpNN0tnTGhSQk10ODQ0anBQMlhnaW9nS2FxVGZtUEF1eUwxNlg1MVlydmFQZk1QUzVMVTRWb3JWUEJCbCIsImMiOiJBUUhUMmZDTlB3WEdzWWR3cmt0NnRwSXd5cmVwazBTT3pfR0JlV2JOUEc5YndxOHV2aHZlci1Uam1XSjdZZWpBYkx6cVVjR1VnQlZWZDVyR3VKbXNYc2haTHciLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwibiI6InU6bmFzYSJ9
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "facebook_profile_photos",
"next_page_token": "eyJ0IjoicGhvdG9zIiwiaSI6InBmYmlkMDNtM3dONEs5OGtqdFkzOFZIZ1k4TnZZcG5zUDNwZVdOUUpNN0tnTGhSQk10ODQ0anBQMlhnaW9nS2FxVGZtUEF1eUwxNlg1MVlydmFQZk1QUzVMVTRWb3JWUEJCbCIsImMiOiJBUUhUMmZDTlB3WEdzWWR3cmt0NnRwSXd5cmVwazBTT3pfR0JlV2JOUEc5YndxOHV2aHZlci1Uam1XSjdZZWpBYkx6cVVjR1VnQlZWZDVyR3VKbXNYc2haTHciLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwibiI6InU6bmFzYSJ9"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_0E6M9wDPgb74HXQoRnqybBAj",
"status": "Success",
"created_at": "2026-11-24T14:51:35Z",
"request_time_taken": 1.16,
"parsing_time_taken": 0.0,
"total_time_taken": 1.16,
"request_url": "https://www.facebook.com/profile.php?id=100044561550831&sk=photos",
"html_url": "https://www.searchapi.io/api/v1/searches/search_0E6M9wDPgb74HXQoRnqybBAj.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_0E6M9wDPgb74HXQoRnqybBAj"
},
"search_parameters": {
"engine": "facebook_profile_photos",
"next_page_token": "eyJ0IjoicGhvdG9zIiwiaSI6InBmYmlkMDNtM3dONEs5OGtqdFkzOFZIZ1k4TnZZcG5zUDNwZVdOUUpNN0tnTGhSQk10ODQ0anBQMlhnaW9nS2FxVGZtUEF1eUwxNlg1MVlydmFQZk1QUzVMVTRWb3JWUEJCbCIsImMiOiJBUUhUMmZDTlB3WEdzWWR3cmt0NnRwSXd5cmVwazBTT3pfR0JlV2JOUEc5YndxOHV2aHZlci1Uam1XSjdZZWpBYkx6cVVjR1VnQlZWZDVyR3VKbXNYc2haTHciLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwibiI6InU6bmFzYSJ9"
},
"photos": [
{
"position": 1,
"id": "1682470106581692",
"link": "https://www.facebook.com/photo.php?fbid=1682470106581692&set=pb.100044561550831.-2207520000&type=3",
"image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/900761548_1682470109915025_8260380041729999944_n.jpg?_nc_cat=106&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=127cfc&_nc_ohc=lxqFmNjIK8AQ7kNvwEtdRaD&_nc_oc=AdoU1hJsGuPHN5rKpFjq0zqMMsA-r1Loj9MSzDW4QhRbUFIvMm6WIPSTIcatltH-yIs&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=-mBnft-r6CbJyhUOMsu2Qg&_nc_ss=79389&oh=00_AQSUydunTAOB6lvtf_pCK3PhrckrDzPzt3sKmspxZdJ1EQ&oe=6B0B8C99",
"width": 2048,
"height": 1366,
"accessibility_caption": "A child wearing a green hoodie and virtual-reality goggles holds his right arm out, with the controller in his hand at the very front of the photo. Two adults watch behind him.",
"thumbnail": "https://scontent.xx.fbcdn.net/v/t39.30808-6/900761548_1682470109915025_8260380041729999944_n.jpg?stp=c341.0.1366.1366a_dst-jpg_s552x414_tt6&_nc_cat=106&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=714c7a&_nc_ohc=lxqFmNjIK8AQ7kNvwEtdRaD&_nc_oc=AdoU1hJsGuPHN5rKpFjq0zqMMsA-r1Loj9MSzDW4QhRbUFIvMm6WIPSTIcatltH-yIs&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=-mBnft-r6CbJyhUOMsu2Qg&_nc_ss=79389&oh=00_AQRVY51xX9WWL6scGshkduD0IGORwh2YgIiGnfmshsE65g&oe=6B0B8C99"
},
...
],
"pagination": {
"next_page_token": "eyJ0IjoicGhvdG9zIiwiaSI6InBmYmlkMDNtM3dONEs5OGtqdFkzOFZIZ1k4TnZZcG5zUDNwZVdOUUpNN0tnTGhSQk10ODQ0anBQMlhnaW9nS2FxVGZtUEF1eUwxNlg1MVlydmFQZk1QUzVMVTRWb3JWUEJCbCIsImMiOiJBUUhUbmRnSEpyVXgyaXQ4U2huYkk5TzVkTnF2M1NBMWNNVkNpRHV1UFNNS0FvRGpWNTAyNWRkbjhyNWRodEJNeEprb0VYVkZTa3M4S0VZM2dlczhCX3QxZVEiLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwibiI6InU6bmFzYSJ9"
}
}