SerpApi Official icon

SerpApi Official

Get live Google Search data and more from SerpApi's official node

Overview

This node enables users to retrieve live data from Facebook profiles using SerpApi's official API. It is particularly useful for scenarios where you want to programmatically access public information about a Facebook profile, such as profile details or posts, without manual browsing. For example, marketers can use it to gather competitor profile insights, researchers can collect public data for analysis, and developers can integrate Facebook profile data into their applications.

Properties

Name Meaning
Profile ID (profile_id) The unique identifier of the Facebook profile to search. This can be the username part of the URL (e.g., "Meta" in https://www.facebook.com/Meta) or the numeric ID (e.g., "100080376596424" in https://facebook.com/profile.php?id=100080376596424). Required.
Additional Fields A collection of optional parameters to customize the search:
- Disable Caching (no_cache): Whether to force fetching fresh results instead of cached ones (true/false). Cached results expire after 1 hour.
- Async (async): Whether to perform the search asynchronously (true/false). If true, results must be retrieved later via Search Archive API.
- ZeroTrace Mode (zero_trace): Enterprise-only option to avoid storing search metadata on servers (true/false).
- Output (output): Format of the output, either JSON (structured data) or html (raw HTML).
- JSON Restrictor (json_restrictor): Limits fields returned in the JSON response, e.g., selecting specific parts of the organic results.

Output

The node outputs the search results in the json field of the output data. By default, this is a structured JSON object containing detailed information about the Facebook profile queried, including profile metadata and other available data depending on the query parameters.

If the output format is set to html, the raw HTML content retrieved from the Facebook profile page is returned instead.

The node does not output binary data.

Dependencies

  • Requires an active SerpApi account with a valid API key credential configured in n8n.
  • Internet access to call SerpApi endpoints.
  • No additional environment variables are needed beyond the API key credential.

Troubleshooting

  • Common issues:

    • Invalid or missing Profile ID will cause the request to fail or return no data.
    • Using both no_cache and async options simultaneously is disallowed and may result in errors.
    • Async mode requires additional handling to retrieve results later; forgetting this step leads to incomplete data.
    • Enterprise-only features like ZeroTrace mode require appropriate account permissions.
  • Error messages:

    • Authentication errors indicate invalid or missing API credentials; verify your API key setup.
    • Rate limit errors suggest exceeding monthly search quotas; consider upgrading your plan or reducing request frequency.
    • Parameter validation errors occur if required fields are missing or invalid; ensure Profile ID is correctly specified.

Links and References

Discussion