Search items
curl --request GET \
--url https://api.example.com/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/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.example.com/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.example.com/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"item": {
"id": "<string>",
"type": "<string>",
"properties": {},
"state": "active",
"version": 123,
"schema_version": 123,
"source": "<string>",
"timestamp": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"tier": "library",
"tenant_id": "<string>",
"source_id": "<string>",
"device": "<string>",
"capture_latitude": 123,
"capture_longitude": 123,
"edges": {},
"extensions": {}
},
"metadata": {
"item_id": "<string>",
"tags": [
"<string>"
],
"extensions": {}
},
"relevance_score": 123,
"snippet_html": "<string>",
"snippet": "<string>"
}
]
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Search
Search items
Full-text search across the tenant’s items. Indexes textual properties (body, title, description, name, and other string-typed fields not flagged searchable: false) plus tags. Ranking is by relevance with a configurable recency boost.
Accepts the same filter parameters as GET /items — narrow by type, state, tier, tags, source, edge / backref clauses — so the search query and the filter set compose. tags is comma-separated with AND semantics.
Uses limit / offset pagination rather than cursors. Result ordering is stable for the query’s lifetime; absolute score values are not guaranteed across index rebuilds. See Search and query.
GET
/
search
Search items
curl --request GET \
--url https://api.example.com/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/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.example.com/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.example.com/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/search")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"item": {
"id": "<string>",
"type": "<string>",
"properties": {},
"state": "active",
"version": 123,
"schema_version": 123,
"source": "<string>",
"timestamp": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"tier": "library",
"tenant_id": "<string>",
"source_id": "<string>",
"device": "<string>",
"capture_latitude": 123,
"capture_longitude": 123,
"edges": {},
"extensions": {}
},
"metadata": {
"item_id": "<string>",
"tags": [
"<string>"
],
"extensions": {}
},
"relevance_score": 123,
"snippet_html": "<string>",
"snippet": "<string>"
}
]
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Authorizations
Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)
Query Parameters
Minimum string length:
1Available options:
active, archived, trashed, revoked Available options:
library, feed, all Required range:
1 <= x <= 100Required range:
0 <= x <= 10000Response
Search results
Show child attributes
Show child attributes