Facebook Scraping Parameters

Web Scraper API Facebook Scraping Parameters

Use Thordata's Web Scraper API to configure Facebook scraping parameters, including keywords, recent posts, year, number of posts, and more.

Product:

prodect_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_info={\"spider_errors\":true,\"spider_id\":\"facebook_post_by-keywords\",\"spider_parameters\":[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"10\"}]}" \
  -d "spider_name=facebook.com" \
  -d "custom_naming={{TasksID}}"

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_info={\"spider_errors\":true,\"spider_id\":\"facebook_post_by-keywords\",\"spider_parameters\":[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"10\"}]}" \
  -d "spider_name=facebook.com" \
  -d "custom_naming={{TasksID}}"

Keywords:

keyword ,Keyword (Required)

此參數用於指定抓取 Facebook 貼文時使用的搜尋關鍵字。

Request Example:

"keyword": "Dog" -d "spider_info={"spider_errors":true,"spider_id":"facebook_post_by-keywords","spider_parameters":[{,"recent_posts": "true","date": "2025","number": "10"}]}" -d "spider_name=facebook.com" -d "custom_naming={{TasksID}}"

curl -X POST "https://scraperapi.thordata.com/builder" \
  -H "Authorization: Bearer Token-ID" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "spider_info={\"spider_errors\":true,\"spider_id\":\"facebook_post_by-keywords\",\"spider_parameters\":[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"10\"}]}" \
  -d "spider_name=facebook.com" \
  -d "custom_naming={{TasksID}}"

Recent Posts:

recent_posts ,Recent Posts (Optional)

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

Request Example:

"true","date"

curl -X POST "https://scraperapi.thordata.com/builder" \
  -H "Authorization: Bearer Token-ID" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "spider_info={\"spider_errors\":true,\"spider_id\":\"facebook_post_by-keywords\",\"spider_parameters\":[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"10\"}]}" \
  -d "spider_name=facebook.com" \
  -d "custom_naming={{TasksID}}"

Year:

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:

"recent_posts": : "2025"

curl -X POST "https://scraperapi.thordata.com/builder" \
  -H "Authorization: Bearer Token-ID" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "spider_info={\"spider_errors\":true,\"spider_id\":\"facebook_post_by-keywords\",\"spider_parameters\":[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"10\"}]}" \
  -d "spider_name=facebook.com" \
  -d "custom_naming={{TasksID}}"

Number of Posts:

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": "10"

curl -X POST "https://scraperapi.thordata.com/builder" \
  -H "Authorization: Bearer Token-ID" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "spider_info={\"spider_errors\":true,\"spider_id\":\"facebook_post_by-keywords\",\"spider_parameters\":[{\"keyword\": \"Dog\",\"recent_posts\": \"true\",\"date\": \"2025\",\"number\": \"10\"}]}" \
  -d "spider_name=facebook.com" \
  -d "custom_naming={{TasksID}}"

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

Last updated

Was this helpful?