Skip to main content
GET
/
space
/
{space_id}
/
semantic_glob
Python
from acontext import AcontextClient

client = AcontextClient(api_key='sk_project_token')

# Semantic glob search
results = client.spaces.semantic_glob(
    space_id='space-uuid',
    query='authentication and authorization pages',
    limit=10,
    threshold=1.0
)
for block in results:
    print(f"{block.title} - {block.type}")
{
  "code": 123,
  "error": "<string>",
  "msg": "<string>",
  "data": [
    {
      "block_id": "<string>",
      "distance": 123,
      "props": {},
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Path Parameters

space_id
string<uuid>
required

Space ID

Query Parameters

query
string
required

Search query for page/folder titles

limit
integer

Maximum number of results to return (1-50, default 10)

threshold
number

Cosine distance threshold (0=identical, 2=opposite)

Response

200 - application/json

OK

code
integer
error
string
msg
string
data
object[]