What is Dify?
Open-source LLM application development platform. Build AI workflows with a visual canvas, no code required.
Searching X (Twitter) with Dify
This integration lets your Dify agent search X (Twitter) in real time via the Scavio API. The agent gets back structured JSON with post snippets, author handles, timestamps, engagement signals — ready for reasoning and decision-making.
Setup
# No installation — configure in Dify's visual editorCode Example
Here is a complete Dify agent that searches X (Twitter) using Scavio:
# In Dify, add an HTTP Request node with:
# Method: POST
# URL: https://api.scavio.dev/api/v1/search
# Headers:
# x-api-key: {{scavio_api_key}}
# Content-Type: application/json
# Body:
# {"query": "{{user_query}}"}Full Working Example
A production-ready example with error handling:
# Dify Workflow Configuration for X (Twitter) Search
#
# 1. Create a new Workflow in Dify
# 2. Add an HTTP Request node:
# - Method: POST
# - URL: https://api.scavio.dev/api/v1/search
# - Headers:
# x-api-key: {{scavio_api_key}}
# Content-Type: application/json
# - Body: {"query": "{{user_query}}"}
# 3. Connect the output to an LLM node for processing
# 4. The LLM node receives structured JSON from ScavioPricing
Scavio offers a free tier with 500 credits/month (1 credit per search). No credit card required. This is enough to build and test your Dify integration. Paid plans start at $30/month for higher volumes.