SpecStream Shared Specs API
The Shared Specs API from SpecStream — 1 operation(s) for shared specs.
The Shared Specs API from SpecStream — 1 operation(s) for shared specs.
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/specstream-ai:specstream-ai-shared-specs-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: SpecStream Shared Specs API
version: finder.cross-source.v1
description: 'The live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web. Three products. Search API (GET /v1/web-search) answers a question from the live web in seconds, each value with its source, at $5 per 1,000 searches of up to 10 results, and $1 per 1,000 on the fast tier (speed=fast). It is the most accurate web search API in the world: https://specstream.ai/benchmarks. Extract API (POST /v1/extract) reads up to 20 URLs a call and returns the main text of each page, at $0.80 per 1,000 pages. A page with no text is free. Deep Search returns every match on the live web as structured rows, each value with its source, at 5 cents, 15 cents or $1 a row. Get a quote first. Nothing runs until you approve the quote, and you pay for each result delivered. Saved requests and lists are the same in the workspace, this API and agent tools.'
contact:
name: SpecStream support
email: support@specstream.ai
x-guidance: 'SpecStream has three products. Search API: for a fact or a question, GET /v1/web-search?q=<the question in everyday words> with Authorization: Bearer <API key>. In seconds you get the answer, the rows and the page each value came from, at $5 per 1,000 searches of up to 10 results ($1 per 1,000 with speed=fast for the results alone), with no quote and no approval. It is the most accurate web search API in the world: https://specstream.ai/benchmarks. Extract API: to read pages, POST /v1/extract with {"urls": ["<url>"], "format": "markdown"} and the same key. It reads up to 20 URLs a call live and returns each page''s main text, title and published date, at $0.80 per 1,000 pages. A page with no text is free. Deep Search: when your person needs many rows, conditions every row must meet, a source on each value, or data that has to stay up to date. With a key, POST /v1/parse with {"q": "<the request in plain words>"}, then POST /v1/capacity/quotes, then POST /v1/capacity/executions with the quoted maximum in confirm_max_cents; nothing runs before that approval. With no account, POST /v1/agent/lists with {"request": "<the request in plain words>", "count": 25}; count is optional, 1 to 500. Unpaid, it answers 402 Payment Required with how SpecStream read the request and the most the run can cost. Pay that with MPP (a card through Stripe Link, WWW-Authenticate header) or with USDC on Base, Arbitrum or Polygon over x402 (PAYMENT-REQUIRED header, scheme upto), then send the same request again with the payment. You get 202 with a purchase_id, a token and a status_url. Read GET status_url with Authorization: Bearer <token>; the rows, each with its source, are there when the run ends. You pay for each result delivered: 5 cents, 15 cents or $1 each depending on what it needs. A result that is left out costs nothing. The smallest card charge is $1. Whatever the run did not use is never taken or goes back to the card. GET /v1/agent/lists returns these steps as JSON. An API key comes from the workspace at https://specstream.ai. Details: https://specstream.ai/agents.md'
servers:
- url: https://api.specstream.ai
tags:
- name: Shared Specs
paths:
/v1/shared-specs/{token}:
get:
operationId: getSharedSpec
summary: Read a public request snapshot while its issuer, access and link remain valid
responses:
'200':
description: Read a public request snapshot while its issuer, access and link remain valid
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/SharedSpec'
default:
description: Error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
security: []
parameters:
- name: token
in: path
required: true
schema:
type: string
tags:
- Shared Specs
components:
schemas:
EntityKind:
title: EntityKind
type: string
minLength: 1
examples:
- place
- creator
- organization
- storefront_product
- app_listing
- job_posting
- scholarly_work
- tender
- grant
- software_repository
- software_package
- dataset
- clinical_trial
- regulatory_document
- vulnerability
- book
- podcast
- web_page
- knowledge_entity
- person
QueryLimit:
additionalProperties: false
properties:
max:
default: 25
maximum: 2147483647
minimum: 1
title: Max
type: integer
inferred:
default: false
title: Inferred
type: boolean
whole_set:
default: false
title: Whole Set
type: boolean
title: QueryLimit
type: object
WordedOutput:
additionalProperties: false
description: A detail to return that no output field expresses, read from each result's pages.
properties:
detail_id:
pattern: ^d[0-9]+$
title: Detail Id
type: string
words:
maxLength: 300
minLength: 1
title: Words
type: string
description:
maxLength: 300
minLength: 1
title: Description
type: string
value_type:
default: text
enum:
- text
- number
- date
- url
- email
- phone
- yes_no
- place
title: Value Type
type: string
required:
default: false
title: Required
type: boolean
row_name:
default: false
title: Row Name
type: boolean
required:
- detail_id
- words
- description
title: WordedOutput
type: object
SortKey:
additionalProperties: false
properties:
field_id:
minLength: 1
title: Field Id
type: string
direction:
$ref: '#/components/schemas/SortDirection'
required:
- field_id
- direction
title: SortKey
type: object
GeoSource:
enum:
- gazetteer
- catalog
- alias
- well_formed
title: GeoSource
type: string
PredicateOp:
enum:
- count_matches
- contains
- not_contains
- has_any
- has_all
- has_none
- before
- after
- on_or_before
- on_or_after
- gt
- lt
- ne
- not_in
- gte
- lte
- eq
- exists
- class_in
- in
title: PredicateOp
type: string
Geo:
additionalProperties: false
properties:
kind:
$ref: '#/components/schemas/GeoKind'
query_label:
minLength: 1
title: Query Label
type: string
country_code:
anyOf:
- pattern: ^[A-Z]{2}$
type: string
- type: 'null'
default: null
title: Country Code
admin1_code:
anyOf:
- type: string
- type: 'null'
title: Admin1 Code
locality:
anyOf:
- type: string
- type: 'null'
title: Locality
postal_code:
anyOf:
- type: string
- type: 'null'
title: Postal Code
status:
$ref: '#/components/schemas/GeoStatus'
source:
$ref: '#/components/schemas/GeoSource'
geoname_id:
anyOf:
- minimum: 1
type: integer
- type: 'null'
default: null
title: Geoname Id
near:
anyOf:
- $ref: '#/components/schemas/Near'
- type: 'null'
default: null
required:
- kind
- query_label
- admin1_code
- locality
- postal_code
- status
- source
title: Geo
type: object
allOf:
- if:
properties:
status:
const: qualified
required:
- status
then:
properties:
country_code:
type: string
pattern: ^[A-Z]{2}$
Predicate:
additionalProperties: false
properties:
field_id:
minLength: 1
title: Field Id
type: string
op:
$ref: '#/components/schemas/PredicateOp'
value:
anyOf:
- type: boolean
- type: integer
- type: number
- type: string
- items:
type: string
type: array
- $ref: '#/components/schemas/CountMatches'
- type: 'null'
title: Value
required:
- field_id
- op
- value
title: Predicate
type: object
allOf:
- if:
properties:
op:
enum:
- contains
- not_contains
- before
- after
- on_or_before
- on_or_after
required:
- op
then:
properties:
value:
type: string
- if:
properties:
op:
enum:
- exists
required:
- op
then:
properties:
value:
enum:
- true
- false
- null
- if:
properties:
op:
enum:
- gt
- lt
- gte
- lte
required:
- op
then:
properties:
value:
type: number
- if:
properties:
op:
enum:
- in
- not_in
- class_in
- has_any
- has_all
- has_none
required:
- op
then:
properties:
value:
type: array
items:
type: string
- if:
properties:
op:
const: count_matches
required:
- op
then:
properties:
value:
$ref: '#/components/schemas/CountMatches'
else:
properties:
value:
not:
type: object
ErrorCode:
enum:
- unsupported_query
- unsupported_predicate
- unsupported_entity_family
- ambiguous_geo
- capability_pending
- source_blocked
- challenge_page
- unquoted_plan
- missing_api_key
- owner_only
- compiler_unavailable
- parse_failed
- payments_not_live
- card_required
- terms_changed
- tax_id_refused
- capacity
- kill_switch
- internal_failure
- plan_required
- invalid_token
- insufficient_balance
- not_found
- bad_request
- payment_required
- in_progress
- unavailable
- rate_limited
- idempotency_conflict
- concurrency_limit
- session_ended
- already_connected
- unknown_field
title: ErrorCode
type: string
CountMatches:
additionalProperties: false
properties:
condition:
anyOf:
- $ref: '#/components/schemas/MemberExpression'
- $ref: '#/components/schemas/MemberPredicate'
- type: 'null'
default: null
title: Condition
count:
$ref: '#/components/schemas/CountComparison'
required:
- count
title: CountMatches
type: object
ErrorEnvelope:
additionalProperties: false
properties:
error:
$ref: '#/components/schemas/ErrorBody'
required:
- error
title: ErrorEnvelope
type: object
EntityType:
title: EntityType
type: string
minLength: 1
examples:
- local_business
- creator
- organization
- storefront_product
- app_listing
- job_posting
- scholarly_work
- tender
- grant
- software_repository
- software_package
- dataset
- clinical_trial
- regulatory_document
- vulnerability
- book
- podcast
- web_page
- knowledge_entity
- person
Discovery:
additionalProperties: false
properties:
geography_scope:
anyOf:
- const: worldwide.v1
type: string
- type: 'null'
default: null
title: Geography Scope
term:
maxLength: 2000
minLength: 1
title: Term
type: string
platforms:
items:
pattern: ^[a-z][a-z0-9_]{0,47}$
type: string
maxItems: 16
title: Platforms
type: array
uniqueItems: true
searches:
items:
maxLength: 120
minLength: 1
type: string
maxItems: 16
title: Searches
type: array
role_phrases:
items:
maxLength: 60
minLength: 1
type: string
maxItems: 8
title: Role Phrases
type: array
record_words:
items:
maxLength: 2000
minLength: 1
type: string
maxItems: 2
title: Record Words
type: array
examples:
items:
maxLength: 200
minLength: 1
type: string
maxItems: 50
title: Examples
type: array
seed_identifiers:
additionalProperties:
type: string
maxProperties: 8
title: Seed Identifiers
type: object
propertyNames:
enum:
- instagram_handle
- tiktok_handle
- youtube_channel
- website
- domain
- creator_url
required:
- term
title: Discovery
type: object
MemberExpression:
additionalProperties: false
properties:
op:
enum:
- all
- any
- not
title: Op
type: string
clauses:
items:
anyOf:
- $ref: '#/components/schemas/MemberPredicate'
- description: A nested MemberExpression, with the same shape as MemberExpression.
maxItems: 32
minItems: 1
title: Clauses
type: array
required:
- op
- clauses
title: MemberExpression
type: object
allOf:
- if:
properties:
op:
const: not
required:
- op
then:
properties:
clauses:
maxItems: 1
QueryAst:
additionalProperties: false
properties:
target_requirement:
anyOf:
- $ref: '#/components/schemas/TargetRequirement'
- type: 'null'
default: null
semantic_binding:
anyOf:
- $ref: '#/components/schemas/SemanticBinding'
- type: 'null'
default: null
spec_version:
const: query_ast.v1
default: query_ast.v1
title: Spec Version
type: string
entity_type:
$ref: '#/components/schemas/EntityType'
limit:
$ref: '#/components/schemas/QueryLimit'
discovery:
$ref: '#/components/schemas/Discovery'
geo:
anyOf:
- $ref: '#/components/schemas/Geo'
- type: 'null'
default: null
where:
items:
$ref: '#/components/schemas/Predicate'
maxItems: 128
title: Where
type: array
match_expression:
anyOf:
- $ref: '#/components/schemas/MatchExpression'
- type: 'null'
default: null
output_fields:
items:
$ref: '#/components/schemas/OutputField'
maxItems: 24
title: Output Fields
type: array
worded_conditions:
items:
$ref: '#/components/schemas/WordedCondition'
title: Worded Conditions
type: array
worded_outputs:
items:
$ref: '#/components/schemas/WordedOutput'
title: Worded Outputs
type: array
contact_off:
items:
enum:
- email
- phone
type: string
maxItems: 2
title: Contact Off
type: array
record_fields:
items:
type: string
title: Record Fields
type: array
each_location:
default: false
title: Each Location
type: boolean
sort:
items:
$ref: '#/components/schemas/SortKey'
title: Sort
type: array
locale:
pattern: ^[a-z]{2}-[A-Z]{2}$
title: Locale
type: string
inferred:
items:
$ref: '#/components/schemas/InferredClause'
title: Inferred
type: array
unsupported:
items:
$ref: '#/components/schemas/UnsupportedClause'
title: Unsupported
type: array
required:
- entity_type
- limit
- discovery
- where
- sort
- locale
- inferred
- unsupported
title: query_ast.v1
type: object
allOf:
- if:
properties:
entity_type:
const: local_business
required:
- entity_type
then:
required:
- geo
properties:
geo:
$ref: '#/components/schemas/Geo'
ErrorBody:
additionalProperties: false
properties:
code:
$ref: '#/components/schemas/ErrorCode'
message:
minLength: 1
title: Message
type: string
details:
additionalProperties: true
title: Details
type: object
required:
- code
- message
title: ErrorBody
type: object
GeoStatus:
enum:
- qualified
- ambiguous
- unqualified
title: GeoStatus
type: string
GeoKind:
enum:
- country
- locality
- admin1
title: GeoKind
type: string
MemberPredicate:
additionalProperties: false
properties:
field_id:
pattern: ^[a-z][a-z0-9_]{0,63}$
title: Field Id
type: string
op:
$ref: '#/components/schemas/PredicateOp'
not:
const: count_matches
value:
anyOf:
- type: boolean
- type: integer
- type: number
- type: string
- items:
type: string
type: array
- type: 'null'
title: Value
required:
- field_id
- op
- value
title: MemberPredicate
type: object
allOf:
- if:
properties:
op:
enum:
- contains
- not_contains
- before
- after
- on_or_before
- on_or_after
required:
- op
then:
properties:
value:
type: string
- if:
properties:
op:
enum:
- exists
required:
- op
then:
properties:
value:
enum:
- true
- false
- null
- if:
properties:
op:
enum:
- gt
- lt
- gte
- lte
required:
- op
then:
properties:
value:
type: number
- if:
properties:
op:
enum:
- in
- not_in
- class_in
- has_any
- has_all
- has_none
required:
- op
then:
properties:
value:
type: array
items:
type: string
SortDirection:
enum:
- asc
- desc
title: SortDirection
type: string
OutputField:
additionalProperties: false
description: A fact selected for delivery, independent from result-set membership.
properties:
field_id:
minLength: 1
title: Field Id
type: string
required:
default: false
title: Required
type: boolean
label:
default: ''
maxLength: 120
title: Label
type: string
required:
- field_id
title: OutputField
type: object
UnsupportedClause:
additionalProperties: false
properties:
field_id:
minLength: 1
title: Field Id
type: string
op:
anyOf:
- $ref: '#/components/schemas/PredicateOp'
- type: 'null'
value:
anyOf:
- type: boolean
- type: integer
- type: number
- type: string
- items:
type: string
type: array
- $ref: '#/components/schemas/CountMatches'
- type: 'null'
title: Value
reason:
minLength: 1
title: Reason
type: string
required:
- field_id
- op
- value
- reason
title: UnsupportedClause
type: object
CountComparison:
additionalProperties: false
properties:
op:
enum:
- gte
- gt
- lte
- lt
- eq
- ne
title: Op
type: string
value:
minimum: 0
title: Value
type: integer
required:
- op
- value
title: CountComparison
type: object
Near:
additionalProperties: false
description: 'A distance from a point: "within 65 miles of 1417 E Fedora Ave, Fresno".'
properties:
point:
maxLength: 300
minLength: 1
title: Point
type: string
latitude:
maximum: 90
minimum: -90
title: Latitude
type: number
longitude:
maximum: 180
minimum: -180
title: Longitude
type: number
radius_km:
exclusiveMinimum: 0
maximum: 1000
title: Radius Km
type: number
required:
- point
- latitude
- longitude
- radius_km
title: Near
type: object
SemanticBinding:
additionalProperties: false
properties:
spec_version:
const: semantic_binding.v1
default: semantic_binding.v1
title: Spec Version
type: string
catalog_sha256:
pattern: ^[0-9a-f]{64}$
title: Catalog Sha256
type: string
target_id:
pattern: ^[a-z][a-z0-9_.-]{1,127}$
title: Target Id
type: string
footprint_id:
anyOf:
- pattern: ^[a-z][a-z0-9_.-]{1,127}$
type: string
- type: 'null'
default: null
title: Footprint Id
required:
- catalog_sha256
- target_id
title: SemanticBinding
type: object
SharedSpec:
additionalProperties: false
properties:
name:
title: Name
type: string
ast:
$ref: '#/components/schemas/QueryAst'
ast_hash:
title: Ast Hash
type: string
context:
title: Context
type: string
snapshot_hash:
title: Snapshot Hash
type: string
expires_at:
format: date-time
title: Expires At
type: string
execution_authorized:
const: false
default: false
title: Execution Authorized
type: boolean
required:
- name
- ast
- ast_hash
- context
- snapshot_hash
- expires_at
title: SharedSpec
type: object
InferredClause:
additionalProperties: false
properties:
field_id:
minLength: 1
title: Field Id
type: string
reason:
minLength: 1
title: Reason
type: string
required:
- field_id
- reason
title: InferredClause
type: object
WordedCondition:
additionalProperties: false
description: 'A requirement no catalog field expresses, kept in the person''s own words.
Schema is acceleration, never permission: each result''s own pages are read
for this statement (yes / no / unsure). A yes needs a quote the code finds in
the result''s own source; a quoted no removes the result; a line no page
states is delivered and marked as not stated on a page.'
properties:
condition_id:
pattern: ^[wt][0-9]+$
title: Condition Id
type: string
words:
maxLength: 300
minLength: 1
title: Words
type: string
statement:
maxLength: 400
minLength: 1
title: Statement
type: string
search_words:
default: ''
maxLength: 120
title: Search Words
type: string
required:
- condition_id
- words
- statement
title: WordedCondition
type: object
TargetRequirement:
additionalProperties: false
properties:
contract:
const: target-source-assertion.v1
default: target-source-assertion.v1
title: Contract
type: string
entity_kind:
$ref: '#/components/schemas/EntityKind'
text:
maxLength: 2000
minLength: 1
title: Text
type: string
reading_policy_sha256:
pattern: ^[0-9a-f]{64}$
title: Reading Policy Sha256
type: string
max_candidates:
default: 128
maximum: 256
minimum: 1
title: Max Candidates
type: integer
max_passages:
default: 12
maximum: 16
minimum: 1
title: Max Passages
type: integer
max_context_chars:
default: 7500
maximum: 12000
minimum: 500
title: Max Context Chars
type: integer
max_source_chars:
default: 262144
maximum: 262144
minimum: 1000
title: Max Source Chars
type: integer
timeout_ms:
default: 3000
maximum: 5000
minimum: 1
title: Timeout Ms
type: integer
evidence_meaning:
const: interpreted_published_assertion
default: interpreted_published_assertion
title: Evidence Meaning
type: string
prior_knowledge_authority:
const: false
default: false
title: Prior Knowledge Authority
type: boolean
modifies_typed_predicates:
const: false
default: false
title: Modifies Typed Predicates
type: boolean
required:
- entity_kind
- text
- reading_policy_sha256
title: TargetRequirement
type: object
MatchExpression:
additionalProperties: false
description: Explicit logical scope; leaves remain ordinary source-verifiable predicates.
properties:
op:
enum:
- all
- any
- not
title: Op
type: string
clauses:
items:
anyOf:
- $ref: '#/components/schemas/Predicate'
- description: A nested MatchExpression, with the same shape as MatchExpression.
maxItems: 128
minItems: 1
title: Clauses
type: array
required:
- op
- clauses
title: MatchExpression
type: object
allOf:
- if:
properties:
op:
const: not
required:
- op
then:
properties:
clauses:
maxItems: 1
securitySchemes:
apiKey:
type: apiKey
in: header
name: Authorization
description: Send Bearer <your SpecStream API key>. Create one in the workspace under Agents and API keys.
purchaseToken:
type: apiKey
in: header
name: Authorization
description: Send Bearer <token>, the token returned with the 202. It reads only that purchase.