What is Dify?
Open-source LLM application development platform. Build AI workflows with a visual canvas, no code required.
Searching Google SERP Ads with Dify
This integration lets your Dify agent search Google SERP Ads in real time via the Scavio API. The agent gets back structured JSON with top_ads, bottom_ads, ad headlines, destination URLs -- ready for reasoning and decision-making.
Setup
# No installation - configure in Dify's visual editorCode Example
Here is a complete Dify agent that searches Google SERP Ads using Scavio:
# In Dify, add an HTTP Request node with:
# Method: POST
# URL: https://api.scavio.dev/api/v2/google
# Headers:
# Authorization: Bearer {{scavio_api_key}}
# Content-Type: application/json
# Body (raw JSON):
# {"query":"your search query"}
#
# This page has no dedicated endpoint yet, so the sample runs a Google web search.
Full Working Example
A production-ready example with error handling:
# Dify workflow for Google SERP Ads data via Scavio
#
# 1. Create a new Workflow in Dify.
# 2. Add an HTTP Request node:
# - Method: POST
# - URL: https://api.scavio.dev/api/v2/google
# - Headers:
# Authorization: Bearer {{scavio_api_key}}
# Content-Type: application/json
# - Body (raw JSON): {"query":"your search query"}
# 3. Rows arrive under organic_results; parse them in a Code node.
# 4. Feed the parsed rows into an LLM node.
#
# This page has no dedicated endpoint yet, so the sample runs a Google web search.
Pricing
Scavio offers a free tier with 50 credits on signup (1 credit per search). No credit card required. This is enough to build and test your Dify integration. Paid plans start from $24/mo billed yearly for higher volumes.