Facebook Scraping Parameters

Web Scraper API Facebook Scraping Parameters

Configure Facebook scraping parameters using Thordata's Web Scraper API, including parameters such as keywords, recent posts, year, number of posts, 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-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

Product-Scrape Facebook Post Details:

spider_id ,Associated Scraping Tool (Required)

This parameter defines which scraping tool to use.

Request Example: spider_id=facebook_post_by-keywords

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-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
keyword ,Keyword (Required)

This parameter is used to specify the search keyword to use when crawling Facebook posts.

Request Example:

"keyword": "Dog"

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-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
recent_posts ,Recent Posts (Optional)

This parameter specifies whether to scrape the most recent posts. Parameter values: true false

Request Example:

"recent_posts":"true"

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-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
date ,Year (Optional)

This parameter sets the time range for the scraping results. By default, if no value is provided, it will scrape information from all available time periods. Parameter values: 2025 2024 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004

Request Example:

"date": "2025"

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-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
number ,Number of Posts (Optional)

This parameter sets the maximum number of results to scrape. The actual returned results may be fewer than the specified value, depending on the available data. The maximum supported is 200 posts.

Request Example:

"number": "5"

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-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"5\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

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

Last updated

Was this helpful?