Skip to main content
GET
/
agent
/
search
Agent Search
curl --request GET \
  --url https://api.zinc.com/agent/search
import requests

url = "https://api.zinc.com/agent/search"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.zinc.com/agent/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zinc.com/agent/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.zinc.com/agent/search"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.zinc.com/agent/search")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.zinc.com/agent/search")

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

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "status": "<string>",
  "query": "<string>",
  "results": []
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
Beta — the response shape may change without notice while this endpoint is in active development.
GET /agent/search is the agent-native counterpart to Cross-Retailer Search. It returns a single ranked list of buyable products across every supported retailer, and each result’s url can be passed straight to Create MPP Order — no opaque sku id, the URL is the contract. No Zinc account is required. Like the other /agent/* data endpoints, this call is paid per request via the Machine Payments Protocol (MPP): if no valid payment credential is provided, the API returns 402 Payment Required with a WWW-Authenticate challenge for each configured payment method.

Pricing

Price$0.01 per call (fixed)
PaymentMPP (HTTP 402 challenge-credential flow)
AccountNot required
Use /agent/search to discover orderable URLs, then feed the chosen url directly into POST /agent/orders to buy it — no account, no API key.

402 Payment Required

If no valid payment credential is provided, the API returns 402 Payment Required with one WWW-Authenticate header per payable method (per RFC 9110 §11.6.1). Your MPP client uses these to complete payment and resubmit the request. See the MPP guide for a full walkthrough.

Headers

authorization
string | null

Query Parameters

q
string
required

Search term

Response

Successful Response

Response from the cross-retailer search endpoint.

status
string
required
query
string
required
results
Sku · object[]