Skip to main content
POST
cURL
curl --request POST \
  --url https://api.ceramic.ai/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "query",
  "params": {
    "query": "California rental laws"
  },
  "id": 1
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "results": [
      {
        "title": "California Tenant Rights Guide",
        "url": "https://example.com/california-tenant-rights",
        "description": "Comprehensive guide to California rental laws...",
        "score": 14.523
      }
    ],
    "totalResults": 10,
    "searchMetadata": {
      "executionTime": 0.097
    }
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key as a Bearer token.

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC version. Must be "2.0".

Available options:
2.0
method
enum<string>
default:query
required

The method to call. Use "query" for search.

Available options:
query
params
object
required
id
integer
default:1
required

A unique identifier for the request.

Example:

1

Response

Successful search response

jsonrpc
string

JSON-RPC version. Always "2.0".

id
integer

The request ID you provided.

result
object