Space Context Search API
The Search API from Space Context — 1 operation(s) for search.
The Search API from Space Context — 1 operation(s) for search.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/spacecontext-app:spacecontext-app-search-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Space Context Search API
version: v1
servers:
- url: https://api.spacecontext.app/v1
tags:
- name: Search
paths:
/search:
get:
operationId: searchSpaces
summary: Search across all your spaces
description: 'Finds the records (items, areas, issues, key locations, instructions, facts, questions and answers) that best match a question in natural language, across every space this key can read, in any of 100+ languages: "where did I see a ladder?". Each result names its space, scan and record, so it can be opened with the other operations. The index holds only screened, redacted content: no result ever contains a sensitive value, whatever the key''s scopes. A space appears once its current scan has been indexed: after a scan completes, or after the deep pass of a space scanned with the app. Test keys search the demo space, without a model. Limits: 20 a minute and, by default, 1000 a day per account.'
security:
- apiKey: []
parameters:
- name: q
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 300
- name: space_id
in: query
required: false
description: Searches one space only.
schema:
type: string
pattern: ^(app|spc)_
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 25
default: 10
responses:
'200':
description: Best matches first
headers:
Cache-Control:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResults'
'400':
$ref: '#/components/responses/ErrorResponse'
'401':
$ref: '#/components/responses/ErrorResponse'
'403':
$ref: '#/components/responses/ErrorResponse'
'404':
$ref: '#/components/responses/ErrorResponse'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/ErrorResponse'
tags:
- Search
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
message:
type: string
request_id:
type: string
retry_after:
type: integer
description: 'On a 429: seconds to wait, as in `Retry-After`.'
daily_limit:
type: integer
description: 'On a 429 for a daily allowance: the allowance (it resets at midnight UTC).'
max_streams:
type: integer
description: 'On a 429 from `GET /scans/{id}/events`: the streams an account may hold open at once.'
max_open_scans:
type: integer
description: 'On a 429 from `POST /spaces/{id}/scans`: the scans an account may hold created and not started.'
additionalProperties: true
SearchResults:
type: object
required:
- object
- query
- data
properties:
object:
type: string
const: search_results
query:
type: string
data:
type: array
maxItems: 25
items:
type: object
required:
- space_id
- space_name
- scan_id
- record_type
- record_id
- title
- area
- text
- score
properties:
space_id:
type: string
space_name:
type: string
scan_id:
type: string
record_type:
type: string
enum:
- area
- item
- issue
- key_location
- instruction
- fact
- qa
record_id:
type: string
title:
type: string
area:
type:
- string
- 'null'
text:
type: string
score:
type: number
description: Relevance; higher is better. Comparable within one response only.
additionalProperties: false
additionalProperties: false
responses:
ErrorResponse:
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Too many requests. Retry after the number of seconds in `Retry-After`.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
apiKey:
type: http
scheme: bearer
bearerFormat: sc_live or sc_test