What is Dify?
Open-source LLM application development platform. Build AI workflows with a visual canvas, no code required.
Searching Reddit Comments Tree with Dify
This integration lets your Dify agent search Reddit Comments Tree in real time via the Scavio API. The agent gets back structured JSON with comment text, authors, scores, depth -- ready for reasoning and decision-making.
Setup
# No installation - configure in Dify's visual editorCode Example
Here is a complete Dify agent that searches Reddit Comments Tree using Scavio:
# In Dify, add an HTTP Request node with:
# Method: POST
# URL: https://api.scavio.dev/api/v1/reddit/post/comments
# Headers:
# Authorization: Bearer {{scavio_api_key}}
# Content-Type: application/json
# Body (raw JSON):
# {"post_id":"your search query","sort":"TOP"}
#
# Comments are fetched per post: get a post_id from POST /api/v1/reddit/search, or resolve a URL with POST /api/v1/reddit/post. Deeper replies come from POST /api/v1/reddit/post/comments/replies using a row's reply_cursor.
Full Working Example
A production-ready example with error handling:
# Dify workflow for Reddit Comments Tree data via Scavio
#
# 1. Create a new Workflow in Dify.
# 2. Add an HTTP Request node:
# - Method: POST
# - URL: https://api.scavio.dev/api/v1/reddit/post/comments
# - Headers:
# Authorization: Bearer {{scavio_api_key}}
# Content-Type: application/json
# - Body (raw JSON): {"post_id":"your search query","sort":"TOP"}
# 3. Rows arrive under data.comments; parse them in a Code node.
# 4. Feed the parsed rows into an LLM node.
#
# Comments are fetched per post: get a post_id from POST /api/v1/reddit/search, or resolve a URL with POST /api/v1/reddit/post. Deeper replies come from POST /api/v1/reddit/post/comments/replies using a row's reply_cursor.
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 at $30/month for higher volumes.