Ruby

Search API for Ruby Developers

Search Google, Amazon, YouTube, Walmart, and Reddit from Ruby using net/http. Structured JSON responses. Free tier included.

Scavio provides a REST API that you can call from any Ruby application. Send a POST request with your query, get structured JSON back. Here is how to use every platform.

Google Search

Web search with knowledge graph, PAA, and AI overviews.

require "net/http"
require "json"

api_key = "your_scavio_api_key"
uri = URI("https://api.scavio.dev/api/v1/search")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request["x-api-key"] = api_key
request["Content-Type"] = "application/json"
request.body = { query: query }.to_json

response = http.request(request)
data = JSON.parse(response.body)
puts JSON.pretty_generate(data)

Amazon Search

Product search with prices, ratings, and reviews.

require "net/http"
require "json"

api_key = "your_scavio_api_key"
uri = URI("https://api.scavio.dev/api/v1/amazon/search")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request["x-api-key"] = api_key
request["Content-Type"] = "application/json"
request.body = { query: query, marketplace: "us" }.to_json

response = http.request(request)
data = JSON.parse(response.body)
puts JSON.pretty_generate(data)

Reddit Search

Community, posts & threaded comments from any subreddit.

require "net/http"
require "json"

api_key = "your_scavio_api_key"
uri = URI("https://api.scavio.dev/api/v1/reddit/search")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request["x-api-key"] = api_key
request["Content-Type"] = "application/json"
request.body = { query: query, sort: "new" }.to_json

response = http.request(request)
data = JSON.parse(response.body)
puts JSON.pretty_generate(data)

YouTube Search

Video search with transcripts and metadata.

require "net/http"
require "json"

api_key = "your_scavio_api_key"
uri = URI("https://api.scavio.dev/api/v1/youtube/search")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request["x-api-key"] = api_key
request["Content-Type"] = "application/json"
request.body = { query: query }.to_json

response = http.request(request)
data = JSON.parse(response.body)
puts JSON.pretty_generate(data)

Walmart Search

Product search with pricing and fulfillment data.

require "net/http"
require "json"

api_key = "your_scavio_api_key"
uri = URI("https://api.scavio.dev/api/v1/walmart/search")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request["x-api-key"] = api_key
request["Content-Type"] = "application/json"
request.body = { query: query }.to_json

response = http.request(request)
data = JSON.parse(response.body)
puts JSON.pretty_generate(data)

Error Handling

The API returns standard HTTP status codes. Check for 200 (success), 401 (invalid API key), 429 (rate limit), and 500 (server error). The response body always includes a descriptive error message.

Next Steps

Frequently Asked Questions

Send a POST request to the Scavio API endpoint using net/http. Include your API key in the x-api-key header and your search query in the JSON body. The API returns structured JSON that you can parse directly.

Yes, install net/http with: gem install json. After that, you can make API calls to Scavio.

Scavio supports Google (web, news, images, shopping, maps), Amazon (12 marketplaces), YouTube (search, transcripts, metadata), and Walmart. All platforms use the same authentication and return structured JSON.

Scavio uses a simple REST API that works with any HTTP client. No framework-specific SDK is needed — use net/http to make POST requests and parse the JSON response.

Check the HTTP status code: 200 means success, 401 means invalid API key, 429 means rate limit exceeded, and 500 means a server error. The response body includes an error message with details. See the error handling example above.

Start Building with Ruby

Get your free Scavio API key and search Google, Amazon, YouTube, Walmart, and Reddit from Ruby. 500 free credits/month.