Downloads¶
Downloading data that can be converted to authorityspoke objects.
Error for invalid API query.
Get just the text that identifies a citation.
- Return type
Downloads Decisions from Case Access Project API.
Get the “results” list for a queried citation from the CAP API.
- Parameters
cite (
Union
[str
,CaseCitation
,CAPCitation
]) – a citation linked to an opinion in the Caselaw Access Project database. Usually these will be in the traditional format[Volume Number] [Reporter Name Abbreviation] [Page Number]
, e.g. 750 F.3d 1339 for Oracle America, Inc. v. Google Inc.full_case (
bool
) – whether to request the full text of the opinion from the Caselaw Access Project API. If this isTrue
, the CAPClient must have the api_token attribute.
- Return type
- Returns
the “results” list for this queried citation.
Download and deserialize the “results” list for a queried citation from the CAP API.
- Parameters
cite (
Union
[str
,CaseCitation
,CAPCitation
]) –a citation linked to an opinion in the Caselaw Access Project database. Usually these will be in the traditional format
[Volume Number] [Reporter Name Abbreviation] [Page Number]
, e.g. 750 F.3d 1339 for Oracle America, Inc. v. Google Inc.full_case (
bool
) –whether to request the full text of the opinion from the Caselaw Access Project API. If this is
True
, the CAPClient must have the api_token attribute.
- Return type
- Returns
the first case in the “results” list for this queried citation.
Download a decision from Caselaw Access Project API.
- Parameters
cite (
Union
[str
,CaseCitation
,CAPCitation
]) –a citation linked to an opinion in the Caselaw Access Project database. Usually these will be in the traditional format
[Volume Number] [Reporter Name Abbreviation] [Page Number]
, e.g. 750 F.3d 1339 for Oracle America, Inc. v. Google Inc.full_case (
bool
) –whether to request the full text of the opinion from the Caselaw Access Project API. If this is
True
, the CAPClient must have the api_token attribute.
- Return type
- Returns
the first case in the “results” list for this queried citation.
Download and deserialize a Decision from Caselaw Access Project API.
- Parameters
cite (
Union
[str
,CaseCitation
,CAPCitation
]) –a citation linked to an opinion in the Caselaw Access Project database. Usually these will be in the traditional format
[Volume Number] [Reporter Name Abbreviation] [Page Number]
, e.g. 750 F.3d 1339 for Oracle America, Inc. v. Google Inc.full_case (
bool
) –whether to request the full text of the opinion from the Caselaw Access Project API. If this is
True
, the CAPClient must have the api_token attribute.
- Return type
- Returns
the first case in the “results” list for this queried citation.
Download a decision from Caselaw Access Project API.
- Parameters
cap_id (
int
) –an identifier for an opinion in the Caselaw Access Project database, e.g. 4066790 for Oracle America, Inc. v. Google Inc..
full_case (
bool
) –whether to request the full text of the opinion from the Caselaw Access Project API. If this is
True
, the CAPClient must have the api_token attribute.
- Return type
- Returns
the first case in the “results” list for this queried citation.
Download a decision from Caselaw Access Project API.
- Parameters
cap_id (
int
) –an identifier for an opinion in the Caselaw Access Project database, e.g. 4066790 for Oracle America, Inc. v. Google Inc..
full_case (
bool
) –whether to request the full text of the opinion from the Caselaw Access Project API. If this is
True
, the CAPClient must have the api_token attribute.
- Return type
- Returns
a Decision created from the first case in the “results” list for this queried citation.
Query by CAP id or citation, and download Decision from CAP API.
Query by CAP id or citation, download, and load Decision from CAP API.
- Return type