For the complete documentation index, see llms.txt. This page is also available as Markdown.

Facebook Scraping Parameters

Web Scraper API Facebook Scraping Parameters

Configure Facebook scraping parameters using Thordata's Web Scraper API, including parameters such as post URL, event URL, profile URL and more.

Unique :

token ,Access Token (Required)

This parameter is used to verify the legitimacy of the scraping request via an API access token.

Request Example: "Authorization: Bearer ********************************"

curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=facebook.com" ^
  -d "spider_id=facebook_post_by-posts-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.facebook.com/permalink.php?story_fbid=pfbid0gNjZBhqCxSqj9xJS5aygNwqFqNEM2fYbTFKKbsvvGdEfTgFyAYWSckvkEHPqAE7gl%26id=61574926580533%26rdid=86oaujwNGCCdPLfj#\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

Product-Scrape Facebook Post Details

Facebook - Scraping post details via URL

spider_id ,Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_post_by-posts-url

url ,Post URL (Required)

This parameter is used to specify the post URL to use when crawling Facebook posts.

Request Example:

"url": "https://www.facebook.com/permalink.php?story_fbid=pfbid0gNjZBhqCxSqj9xJS5aygNwqFqNEM2fYbTFKKbsvvGdEfTgFyAYWSckvkEHPqAE7gl%26id=61574926580533%26rdid=86oaujwNGCCdPLfj#"

Request Example
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=facebook.com" ^
  -d "spider_id=facebook_post_by-posts-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.facebook.com/permalink.php?story_fbid=pfbid0gNjZBhqCxSqj9xJS5aygNwqFqNEM2fYbTFKKbsvvGdEfTgFyAYWSckvkEHPqAE7gl%26id=61574926580533%26rdid=86oaujwNGCCdPLfj#\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

Product-Scrape Facebook Post Comments

Facebook - Scraping post comments via URL

spider_id ,Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_comment_by-comments-url

url ,Post URL (Required)

This parameter is used to specify the post URL to use when crawling Facebook posts.

Request Example:

"url": "https://www.facebook.com/permalink.php?story_fbid=pfbid0gNjZBhqCxSqj9xJS5aygNwqFqNEM2fYbTFKKbsvvGdEfTgFyAYWSckvkEHPqAE7gl%26id=61574926580533%26rdid=86oaujwNGCCdPLfj#"

get_all_replies , All Replies (Optional)

This parameter specifies whether to fetch all replies when retrieving comments.

Request Example:

"get_all_replies": "True"

limit_records , Quantity Limit (Optional)

This parameter specifies the limit of the comment quantity.

Request Example:

"limit_records": "10"

comments_sort , Sorting (Optional)

This parameter specifies the sorting criteria for the comments.

Request Example:

"comments_sort": "All comments"

Request Example

Product-Scrape Facebook profile information

Facebook - Scraping profile via URL

spider_id , Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_profile_by-profiles-url

url , Profile URL (Required)

This parameter is used to specify the profile URL to scrape.

Request Example:

"url": "https://www.facebook.com/permalink.php?story_fbid=pfbid0gNjZBhqCxSqj9xJS5aygNwqFqNEM2fYbTFKKbsvvGdEfTgFyAYWSckvkEHPqAE7gl%26id=61574926580533%26rdid=86oaujwNGCCdPLfj#"

Request Example

Product-Scrape Events information

Facebook - Scraping event information via Event List URL

spider_id , Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_event_by-eventlist-url

url , Event List URL (Required)

This parameter is used to specify the Event List URL to scrape.

Request Example:

"url": "https://www.facebook.com/nohoclub/events"

upcoming_events_only , Only Scrape Future Events (Optional)

This parameter is used to specify whether to only scrape future events..

Request Example:

"upcoming_events_only": "false"

Request Example

Facebook - Scraping event information via Event Search URL

spider_id , Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_event_by-search-url

url , Event Search URL (Required)

This parameter is used to specify the Event Search URL to scrape.

Request Example:

"url": "https://www.facebook.com/events/explore/us-atlanta/107991659233606"

Request Example

Facebook - Scraping event information via Event URL

spider_id , Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_event_by-events-url

url , Event URL (Required)

This parameter is used to specify the Event URL to scrape.

Request Example:

"https://www.facebook.com/events/1546764716269782"

Request Example

If you need further assistance, please contact us via email at support@thordata.com.

Last updated