SerpApi Official icon

SerpApi Official

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

Overview

This node integrates with SerpApi's official API to retrieve live data from various search engines and platforms. Specifically, the Facebook Profile operation fetches detailed information about a Facebook profile by its profile ID. This is useful for scenarios where you want to programmatically access public Facebook profile data such as profile details, posts, or other metadata without manual browsing.

Practical examples include:

  • Marketing automation workflows that gather competitor or influencer profile data.
  • Social media monitoring tools that track public Facebook profiles.
  • Data enrichment processes that append Facebook profile info to customer records.

Properties

Name Meaning
Profile ID (profile_id) The unique identifier of the Facebook profile to query. It can be the username part in 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 request:
- Disable Caching (no_cache): Boolean to force fetching fresh results instead of cached ones. Default is false.
- Async (async): Boolean to perform the search asynchronously. Default is false.
- ZeroTrace Mode (zero_trace): Boolean to enable privacy mode that skips storing search data on servers. Enterprise only.
- Output (output): Defines output format, either "json" (default) or "html".
- JSON Restrictor (json_restrictor): String to restrict returned JSON fields, e.g., organic_results[0:3].{title,snippet}.

Output

The node outputs a JSON object containing the structured response from SerpApi for the requested Facebook profile. The exact structure depends on the API response but typically includes profile details such as name, bio, posts, images, and other publicly available data.

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

No binary data output is indicated for this operation.

Dependencies

  • Requires an active SerpApi account with a valid API key credential configured in n8n.
  • The node sends HTTP requests to https://serpapi.com/search.json with appropriate query parameters.
  • Network connectivity to SerpApi endpoints is necessary.

Troubleshooting

  • Invalid Profile ID: If the profile ID is incorrect or does not exist, the API may return an error or empty result. Verify the profile ID from the Facebook URL.
  • API Key Issues: Missing or invalid API key will cause authentication errors. Ensure the API key credential is correctly set up.
  • Caching Conflicts: Using both no_cache and async options together is disallowed and may cause errors. Use only one at a time.
  • Async Usage Restrictions: Async mode should not be used if your account has certain speed features enabled; otherwise, results retrieval might fail.
  • ZeroTrace Mode: Enabling ZeroTrace may limit debugging capabilities due to no storage of search metadata.
  • Rate Limits: Exceeding SerpApi usage limits will result in errors; monitor your quota.

Links and References

Discussion