PixHarvest Quickstart

Get your first PixHarvest data in under 5 minutes with RUBY.

1. Free snapshot (no key)

require "net/http"
uri = URI("https://s-shopify.pixharvest.com/v1/snapshot")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer YOUR_KEY"
puts Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }.body

2. Add a key for paid calls

Get one on /pricing — it works across all five APIs.

3. Agents pay via x402

Paid routes return HTTP 402 with a payment challenge; settle USDC on Base and retry. Details →

← All docs · Live demo · Pricing · Auth & payment