Parameter |
Description |
Example |
resultsType |
Indicates whether to return live or test
VoteCast data. Possible values are t (test
data) or l (live data; this is the default).
Important |
|
To receive test
VoteCast data, make sure to add the optional resultsType=t
parameter to the request URL. |
|
|
|
|
t |
statePostal |
The geo code, such as a two-character state
postal code or "US" for national
VoteCast results. By default, all state and national data available
to your account is returned. Multiple values must be separated
by commas. |
VT,US |
format |
The response format (xml
or json). The format parameter value takes
precedence over the Accept header value
when both are specified. If no format is specified as the format
parameter value or in the Accept header,
XML is returned.
Note |
|
This parameter
specifies the format of the API call response, which is
a list of VoteCast result files. The format of the actual
result files is always JSON. |
|
|
|
|
json |
stage |
Results
delivery stage. Ad hoc deliveries can include an additional
letter; for example, "3A".
Multiple values are not allowed. All stages available to your
account are returned by default. |
1 |
code |
Election code used by AP VoteCast. For the
list of values, see Election
Codes. Multiple values are not allowed. By default, all are
returned. |
G |
includesignature |
Returns a digital signature in the HTTP
response header. Possible values are sha256,
eddsa and none
(the default). For more information, see Requesting
Digital Signatures. |
sha256 |