Skip to main content

Overview

What it does

SerpApi integration provides programmatic access to search engine results from Google, Bing, and other platforms, enabling AI tools to retrieve real-time search data, images, news, shopping results, and more.Key Features:
  • Google Search results
  • Bing Search results
  • Image Search
  • News Search
  • Shopping results
  • Maps and local search
  • Video search
  • Scholar search

Use Cases

Research & Analysis:
  • Gather competitive intelligence
  • Monitor brand mentions
  • Track product pricing
  • Analyze search trends
Content Discovery:
  • Find relevant news articles
  • Source images for projects
  • Discover related content
  • Research topics and keywords
Data Automation:
  • Build custom search dashboards
  • Create automated alerts
  • Extract structured data
  • Generate market research reports

Quick Start

1

Get Your SerpApi API Key

You’ll need a SerpApi API key to use this integration.
  1. Sign up at SerpApi.com
  2. Navigate to your dashboard
  3. Copy your API key from the account settings
  4. Free tier includes 100 searches/month
SerpApi offers a free plan with 100 searches per month, perfect for testing and small projects.
2

Connect to NimbleBrain Studio

Add SerpApi to your workspace:
  1. Navigate to Connections in the sidebar
  2. Click Browse Catalog
  3. Search for “SerpApi”
  4. Click Install
  5. Enter your API key when prompted
  6. Click Connect to complete setup
Your API key is stored securely and encrypted. SerpApi uses API key authentication for all requests.
3

Verify Connection

Once connected, test the integration:
"Search Google for recent news about artificial intelligence"
Other test prompts:
  • “Find images of mountain landscapes”
  • “Search Bing for Python tutorials”
  • “Get shopping results for wireless headphones”
  • “Search Google Scholar for machine learning papers”

Available Tools

The SerpApi connection provides 10+ tools for accessing different search engines and result types:

Search Engines

Search Parameters

All search tools support advanced filtering:
ParameterDescriptionExample
qSearch query"machine learning"
locationGeographic location"New York, NY"
hlLanguage"en"
glCountry"us"
numNumber of results10
startPagination offset0
tbsTime-based search"qdr:d" (past day)
Time-based search (tbs) values: qdr:h (hour), qdr:d (day), qdr:w (week), qdr:m (month), qdr:y (year)

Example Workflows

Scenario: Monitor competitor mentions and activitiesPrompt:
"Search Google News for articles about [competitor name] from the past week and summarize the key developments"
What happens:
  • Searches Google News with date filter
  • Retrieves recent articles
  • Extracts titles, sources, and snippets
  • Provides structured summary

Authentication

API Key Authentication: This connection uses API key authentication.

How It Works

SerpApi authenticates requests using your API key:
  1. You provide your API key during connection setup
  2. NimbleBrain stores it securely and encrypted
  3. Each request includes your key in the query parameters
  4. SerpApi validates the key and processes the request

API Key Security

Best Practices:
  • Never share your API key publicly
  • Rotate keys periodically
  • Monitor usage in SerpApi dashboard
  • Use different keys for different projects
  • Revoke compromised keys immediately
You can manage your API keys and monitor usage at serpapi.com/account

Rate Limits

SerpApi enforces usage limits based on your plan:
PlanMonthly SearchesRate Limit
Free100 searches5 searches/second
Developer5,000 searches10 searches/second
Production30,000 searches20 searches/second
EnterpriseCustomCustom
Quota Tracking:
  • Each search consumes 1 credit
  • Pagination counts as separate searches
  • Credits reset monthly
  • Overage charges apply on paid plans
Studio automatically handles rate limiting and will queue requests if limits are reached.

Search Optimization

To maximize your quota:
  • Use specific queries to reduce result pagination
  • Cache frequently accessed results
  • Combine multiple data points in single searches
  • Use time filters to narrow results
  • Batch similar searches together

Troubleshooting

Issue: Authentication failed or invalid API key errorSolutions:
  • Verify your API key is correct (no extra spaces)
  • Check if key was revoked in SerpApi dashboard
  • Ensure account is active and not suspended
  • Try generating a new API key
  • Reconnect the integration with fresh credentials
Issue: Too many requests or quota exceededSolutions:
  • Check your monthly quota in SerpApi dashboard
  • Wait for rate limit window to reset
  • Upgrade to higher tier for more searches
  • Optimize queries to use fewer searches
  • Implement caching for repeated searches
Issue: Search returns empty resultsSolutions:
  • Try broader search terms
  • Remove overly specific filters
  • Check spelling and syntax
  • Verify location/language settings
  • Try different search engine (Bing vs Google)
Issue: Request times out or takes too longSolutions:
  • Reduce number of results requested
  • Simplify complex queries
  • Check SerpApi status page for outages
  • Try again with more specific search
  • Contact SerpApi support if persistent
Issue: Expected data not in resultsSolutions:
  • Not all searches return all fields
  • Check SerpApi documentation for field availability
  • Try different search parameters
  • Some data depends on search engine features
  • Verify your query matches the search type
Issue: Location parameter not affecting resultsSolutions:
  • Use full location names (city, state/country)
  • Try canonical location format
  • Verify location is supported by search engine
  • Check spelling of location name
  • Some searches ignore location parameter

Best Practices

Query Optimization

  • Use specific, targeted queries
  • Leverage advanced search operators
  • Filter by date when relevant
  • Specify language and location
  • Request only needed result count

Data Management

  • Cache frequently accessed results
  • Store search data for analysis
  • Track search patterns over time
  • Deduplicate similar searches
  • Archive historical data

Cost Efficiency

  • Monitor quota usage regularly
  • Batch related searches
  • Use pagination wisely
  • Implement result caching
  • Choose appropriate plan tier

Result Quality

  • Validate search results
  • Cross-reference multiple sources
  • Check result freshness
  • Verify URLs are accessible
  • Filter spam or low-quality results

Advanced Features

Search Operators

Google and Bing support advanced search operators:
OperatorDescriptionExample
"exact phrase"Exact match"machine learning"
site:Specific domainsite:github.com python
filetype:File typefiletype:pdf research
intitle:In page titleintitle:tutorial
-Exclude termpython -java
OREither termpython OR javascript

Structured Data

SerpApi returns structured data including:
  • Organic Results: Title, URL, snippet, position
  • Featured Snippets: Direct answers, definitions
  • Knowledge Graph: Entity information, facts
  • People Also Ask: Related questions
  • Related Searches: Similar queries
  • Shopping Results: Products, prices, merchants
  • Local Pack: Business listings, maps
  • Images: URLs, thumbnails, metadata

Need help? Join the NimbleBrain Discord or email [email protected]