Script.It Documentations
  • 🌟Introduction
  • 🧠Concepts
  • πŸ› οΈTools
    • ❓TextAI
    • πŸ“”DataOps
    • πŸ“–DocQA
    • πŸ“‘WebAgent
    • πŸ—„οΈFile Explorer
    • πŸ“„DocSum
    • ❔WebQA
    • πŸ•ΈοΈWebOps
    • ℹ️Inputs
    • πŸ€–BrowserAgent
    • 🈺Business Reviews
    • πŸ“°News Search
    • πŸ“‚Upload Files
    • πŸ“ˆImport Data
    • πŸ“ŠPlotting
    • 🌐WebData
    • 🌎WebQA
    • 🌍WebOps
    • πŸ”Google Search
  • ⛓️APIs
    • πŸ’¬Slack
    • πŸ—ƒοΈNotion
    • πŸŒ†Image Generation
    • πŸ—³οΈAirtable
    • πŸ“…Google Calendar
    • πŸ“„Google Docs
    • πŸ“ΆGoogle Sheets
    • πŸ’ Google Slides
    • ☁️Google Drive
    • πŸ”ŠText-to-Speech
    • πŸŽ’eBay Search
    • πŸ“§Gmail
    • βœ–οΈX
    • 🏨CrunchBase
    • πŸ—„οΈSec Filing Retrieval
    • πŸ“ΉVideo Understanding
    • πŸ—£οΈWhisper
    • πŸ”˜Twilio
  • πŸ‘©β€πŸ«Tutorials
    • Creating a Basic Workflow
    • The 2 Run Types
    • The Execution Flow Mode
  • ☝️Tips and Tricks
  • πŸ“šSample Scripts
  • ▢️Use Cases
    • πŸ’΅Sales Prospecting
      • πŸ“ Account Names to Facility Match using PeeringDB
      • πŸ“ [Long list] Account Names to Facility Match using PeeringDB
Powered by GitBook
On this page
  • Examples
  • Processing the outputs
  1. Tools

Google Search

Google Search API

Search for information from Google with some query and retrieve the search result.

Examples

Query suggestions

Search Elon Musk twitter acquisition
Search Elon Musk twitter acquisition on site bbc.com/news

Processing the outputs

The output data has the following structure.

{
    "searchParameters": {
    "q": "NSFOCUS Inc (HKG) site:peeringdb.com/net",
    "gl": "us",
    "hl": "en",
    "num": 10,
    "autocorrect": true,
    "page": 1,
    "type": "search"
  },
  "organic": [
    {
      "title": "NSFOCUS, Inc. - PeeringDB",
      "link": "https://www.peeringdb.com/net/9904",
      "snippet": "NSFOCUS, Inc. Organization. NSFOCUS, Inc. Also Known As. Long Name. Company Website. http://www.nsfocusglobal.com ... Equinix Hong Kong. 8757. Operational.",
      "position": 1
    }
  ]
}

Output processing commands can be specified to extract and process the output data, e.g.

Search NSFOCUS Inc on site peeringdb.com/net. 
If "organic" field has more than one item, then look at the first result. If the first result's title has " - " then return the text before " - ", else look at snippet and return the text before ". ". Otherwise return empty.

Note that, since the organic field might be empty, it is always safe to check if it has more than one item first before accessing it.

PreviousWebOpsNextAPIs

Last updated 1 year ago

πŸ› οΈ
πŸ”