Skip to main content
All URIs are relative to https://api.elections.kalshi.com/trade-api/v2
MethodHTTP requestDescription
getStructuredTargetGET /structured_targets/Get Structured Target
getStructuredTargetsGET /structured_targetsGet Structured Targets

getStructuredTarget

GetStructuredTargetResponse getStructuredTarget()
Endpoint for getting data about a specific structured target by its ID.

Parameters

NameTypeDescriptionNotes
structuredTargetId[string]Structured target IDdefaults to undefined

Return type

GetStructuredTargetResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Structured target retrieved successfully-
401Unauthorized-
404Not found-
500Internal server error-

getStructuredTargets

GetStructuredTargetsResponse getStructuredTargets()
Page size (min: 1, max: 2000)

Parameters

NameTypeDescriptionNotes
type[string]Filter by structured target type(optional) defaults to undefined
competition[string]Filter by competition(optional) defaults to undefined
pageSize[number]Number of items per page (min 1, max 2000, default 100)(optional) defaults to 100
cursor[string]Pagination cursor(optional) defaults to undefined

Return type

GetStructuredTargetsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Structured targets retrieved successfully-
401Unauthorized-
500Internal server error-