Skip to main content
GET
/
catalog
/
search
Search catalog
curl --request GET \
  --url https://api.sandbox.mocachain.org/v1/catalog/search
import requests

url = "https://api.sandbox.mocachain.org/v1/catalog/search"

response = requests.get(url)

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

fetch('https://api.sandbox.mocachain.org/v1/catalog/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.sandbox.mocachain.org/v1/catalog/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.sandbox.mocachain.org/v1/catalog/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.sandbox.mocachain.org/v1/catalog/search")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.sandbox.mocachain.org/v1/catalog/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
{
  "code": 80000000,
  "msg": "success",
  "data": {
    "credentials": {
      "items": [
        {
          "credentialId": "c21s70g0i54sn0023172Cv",
          "name": "Age Verification",
          "category": "identity",
          "relevance": 0.95,
          "issuer": {
            "issuerId": "iss_01",
            "name": "Acme Corp"
          }
        }
      ],
      "total": 1
    },
    "issuers": {
      "items": [],
      "total": 0
    },
    "programs": {
      "items": [
        {
          "programId": "prg_01",
          "name": "Age Gate",
          "verificationCount": 85,
          "relevance": 0.88
        }
      ],
      "total": 1
    },
    "meta": {
      "query": "age",
      "totalResults": 2
    }
  },
  "timestamp": 1772530828000
}
Pilot API — Available on Sandbox only at this stage. Endpoint is under active development and may change without notice. Not yet available in production.

Query Parameters

q
string
required

Search query string.

Maximum string length: 200
page
integer
default:1

Page number (starts from 1).

Required range: x >= 1
limit
integer
default:10

Results per group (default 10, max 50).

Required range: 1 <= x <= 50

Response

200 - application/json

Grouped search results.

Standard API response envelope used by all Catalog endpoints.

code
integer

Response code. 80000000 indicates success.

Example:

80000000

msg
string

Human-readable status message.

Example:

"success"

data
any

Response payload. Shape varies per endpoint.

timestamp
integer

UNIX timestamp in milliseconds.

Example:

1772530828000