Google Search API icon

Google Search API

Integrate with Google Search API (Serper.dev API) for search functionalities. Powered by CloudFly

Actions7

Overview

This node integrates with the Serper.dev Google Search API to perform various types of searches, including scholarly article searches under the "Scholar" resource with the "Scholar Search" operation. It enables users to query Google Scholar for academic papers and related scholarly content programmatically within n8n workflows.

Typical use cases include:

  • Automating literature reviews by retrieving scholarly articles on specific topics.
  • Gathering academic references or citations for research projects.
  • Monitoring new publications in a particular field or by certain authors.

For example, a user can input a search query like "machine learning optimization" and receive a list of relevant scholarly articles, including metadata such as titles, authors, and publication details.

Properties

Name Meaning
Page Page number for paginated results (e.g., 1, 2, 3...)
Query The search query string to find scholarly articles (required)
Results Number of results to return; options: 10, 20, 40, 60, 80, 100
Country Country code to localize the search (e.g., "us" for United States, "de" for Germany)
Language Language code for the search interface and results (e.g., "en" for English, "fr" for French)
Autocorrect Boolean flag to enable or disable autocorrect on the query

Output

The node outputs an array of JSON objects representing the search results from Google Scholar. Each item corresponds to one scholarly article or result returned by the API. The exact structure depends on the Serper.dev API response but typically includes fields such as:

  • Title of the article
  • Authors
  • Publication source
  • Year of publication
  • Snippet or abstract
  • URL or link to the article

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the Serper.dev Google Search API.
  • The node uses HTTP POST requests to the Serper.dev endpoint https://google.serper.dev/schollar.
  • Proper configuration of the API key credential in n8n is necessary for authentication.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication errors.
    • Exceeding API rate limits may result in request failures.
    • Incorrect country or language codes might affect the relevance or availability of results.
    • Empty or malformed queries will likely return no results or errors.
  • Error messages:

    • Errors from the API are caught and returned as error objects if "Continue On Fail" is enabled.
    • Typical error messages include authentication failures, invalid parameters, or network issues.
  • Resolution tips:

    • Verify that the API key credential is correctly set up and active.
    • Check the query string for correctness and completeness.
    • Adjust pagination and number of results to stay within API usage limits.
    • Use supported country and language codes as per the provided options.

Links and References

Discussion