Search Graph Documents
/v1/graphs/{graph_id}/searchPart of Search.
Shared repositories require a subscription; subscription plan determines search rate limits.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
graph_idrequired | string | Graph Id |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
queryrequired | string | Search query |
entityoptional | string | Filter by ticker, CIK, or entity name |
form_typeoptional | string | Filter by SEC form type (10-K, 10-Q) |
sectionoptional | string | Filter by section ID: an Item (item_1, item_1a, item_7, ...) or, for iXBRL disclosures, the element qname (us-gaap:GoodwillDisclosureTextBlock) |
elementoptional | string | Filter by XBRL element qname (e.g., us-gaap:Goodwill) |
source_typeoptional | string | Filter by source type (xbrl_textblock, narrative_section, ixbrl_disclosure, uploaded_doc, connection_doc) |
fiscal_yearoptional | integer | Filter by fiscal year |
date_fromoptional | string | Filter filings on or after date (YYYY-MM-DD) |
date_tooptional | string | Filter filings on or before date (YYYY-MM-DD) |
semanticoptional | boolean | Enable hybrid semantic search (BM25 + KNN). Default is BM25-only for speed. Default: |
sizeoptional | integer | Max results to return Default: |
offsetoptional | integer | Pagination offset Default: |
snippet_charsoptional | integer | Approximate snippet budget per hit in characters; the default is three highlight fragments of about 200 |
Example request
curl -X POST "https://api.robosystems.ai/v1/graphs/{graph_id}/search" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "string"
}'Responses
200 Successful Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
totalrequired | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hitsrequired | SearchHit[] | A single search result with snippet. A long SEC section (an MD&A, a commitments note) is indexed in parts, each a document of its own: ``part`` of ``part_count``, ``parent_document_id`` shared by the section's parts, ``next_document_id`` to read on. SearchHit fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
queryrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
graph_idrequired | string |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
| 503 | Text search not available |