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 :

chevron-righttoken ,Access Token (Required)hashtag

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

chevron-rightspider_id ,Associated Scraping Tool (Required)hashtag

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_post_by-posts-url

chevron-righturl ,Post URL (Required)hashtag

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#"

chevron-rightRequest Examplehashtag
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

chevron-rightspider_id ,Associated Scraping Tool (Required)hashtag

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_comment_by-comments-url

chevron-righturl ,Post URL (Required)hashtag

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#"

chevron-rightget_all_replies , All Replies (Optional)hashtag

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

Request Example:

"get_all_replies": "True"

chevron-rightlimit_records , Quantity Limit (Optional)hashtag

This parameter specifies the limit of the comment quantity.

Request Example:

"limit_records": "10"

chevron-rightcomments_sort , Sorting (Optional)hashtag

This parameter specifies the sorting criteria for the comments.

Request Example:

"comments_sort": "All comments"

chevron-rightRequest Examplehashtag

Product-Scrape Facebook profile information

Facebook - Scraping profile via URL

chevron-rightspider_id , Associated Scraping Tool (Required)hashtag

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_profile_by-profiles-url

chevron-righturl , Profile URL (Required)hashtag

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#"

chevron-rightRequest Examplehashtag

Product-Scrape Events information

Facebook - Scraping event information via Event List URL

chevron-rightspider_id , Associated Scraping Tool (Required)hashtag

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_event_by-eventlist-url

chevron-righturl , Event List URL (Required)hashtag

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

Request Example:

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

chevron-rightupcoming_events_only , Only Scrape Future Events (Optional)hashtag

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

Request Example:

"upcoming_events_only": "false"

chevron-rightRequest Examplehashtag

Facebook - Scraping event information via Event Search URL

chevron-rightspider_id , Associated Scraping Tool (Required)hashtag

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_event_by-search-url

chevron-righturl , Event Search URL (Required)hashtag

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

Request Example:

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

chevron-rightRequest Examplehashtag

Facebook - Scraping event information via Event URL

chevron-rightspider_id , Associated Scraping Tool (Required)hashtag

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_event_by-events-url

chevron-righturl , Event URL (Required)hashtag

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

Request Example:

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

chevron-rightRequest Examplehashtag

If you need further assistance, please contact us via email at [email protected].

Last updated