Arizona Court of Appeals Division Two API

This API provides machine-accessible access to public case information and decision documents from the Arizona Court of Appeals Division Two. All data is public record.

Base URL

Production: https://www.appeals2.az.gov/api

Endpoints

GET 200 OK 400 Bad Request 404 Not Found

Lookup a Case by Number or ID

Retrieve detailed information for a specific case by case number or case ID.

Parameters:

Path alternatives:

Response:

{
  "case_id": 90002,
  "case_number": "2 CA-CR 2025-0002",
  "case_title": "JOHNSON v. STATE",
  "county": "Maricopa",
  "filing_date": "2025-01-15T00:00:00+00:00",
  "docket_link": "https://www.appeals2.az.gov/caseInfoLast.php?caseID=90902",
  "decision_type": "Opinion",
  "published_date": "2025-02-01T00:00:00+00:00",
  "decision_document": "https://www.appeals2.az.gov/serveFile.php?type=DE&file=CR20250002r.pdf",
  "current_status": "Active",
  "sealed": false,
  "trial_court_case_numbers": ["CR20250002r"]
}
    
GET 200 OK 400 Bad Request

Search Cases

Search for cases using various filters. Results are paginated by default.

Query Parameters:

Path alternatives:

Response:

{
  "cases": [
    {
      "case_id": 90002,
      "case_number": "2 CA-CR 2025-0002",
      "case_title": "JOHNSON v. STATE",
      "county": "Maricopa",
      "filing_date": "2025-01-15T00:00:00+00:00",
      "docket_link": "https://www.appeals2.az.gov/caseInfoLast.php?caseID=90902",
      "decision_type": "Opinion",
      "published_date": "2025-02-01T00:00:00+00:00",
      "decision_document": "https://www.appeals2.az.gov/serveFile.php?type=DE&file=CR20250002r.pdf",
      "current_status": "Active",
      "sealed": false
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 50,
    "total": 1,
    "total_pages": 1,
    "has_more": false
  },
  "export": "Add format=ndjson (or /format/ndjson in the path) to stream all matching cases."
}
    
GET 200 OK (streamed)

Bulk Export (NDJSON)

Stream all matching cases in NDJSON (newline-delimited JSON) format. This is useful for bulk data export and runs with constant memory.

Path alternatives:

Response:

{"case_id":90002,"case_number":"2 CA-CR 2025-0002","case_title":"JOHNSON v. STATE","county":"Maricopa","filing_date":"2025-01-15T00:00:00+00:00","docket_link":"https://www.appeals2.az.gov/caseInfoLast.php?caseID=90902","decision_type":"Opinion","published_date":"2025-02-01T00:00:00+00:00","decision_document":"https://www.appeals2.az.gov/serveFile.php?type=DE&file=CR20250002r.pdf","current_status":"Active","sealed":false}
{"case_id":90003,"case_number":"2 CA-CV 2025-0003","case_title":"SMITH v. DOE","county":"Pima","filing_date":"2025-01-16T00:00:00+00:00","docket_link":"https://www.appeals2.az.gov/caseInfoLast.php?caseID=90903","decision_type":"Opinion","published_date":"2025-02-02T00:00:00+00:00","decision_document":"https://www.appeals2.az.gov/serveFile.php?type=DE&file=CV20250003r.pdf","current_status":"Active","sealed":false}
    
GET 200 OK 404 Not Found

Get Documents for a Case

Retrieve all documents associated with a specific case by case ID.

Path Parameters:

Path alternative:

Example:

curl "https://www.appeals2.az.gov/api/case/90002/documents"

Response:

{
  "case_id": 90002,
  "case_number": "2 CA-CR 2025-0002",
  "documents": [
    {
      "type": "decision",
      "filename": "CR20250002r.pdf",
      "url": "https://www.appeals2.az.gov/serveFile.php?type=DE&file=CR20250002r.pdf",
      "published_date": "2025-02-01T00:00:00+00:00",
      "decision_type": "Opinion"
    }
  ],
  "total": 1
}
    
GET 200 OK

Get Recent Decisions

Retrieve recent case decisions (non-closed cases with published decisions).

Query Parameters:

Path alternatives:

Response:

{
  "decisions": [
    {
      "case_id": 90002,
      "case_number": "2 CA-CR 2025-0002",
      "case_title": "JOHNSON v. STATE",
      "decision_type": "Opinion",
      "published_date": "2025-02-01T00:00:00+00:00",
      "decision_document": "https://www.appeals2.az.gov/serveFile.php?type=DE&file=CR20250002r.pdf",
      "county": "Maricopa",
      "current_status": "Active"
    }
  ],
  "total": 1,
  "since": "2025-10-01"
}
    
GET 200 OK

List All Recent Decisions

Get a list of all published decisions (limited to 100 most recent, non-closed cases).

Path alternative:

Response:

{
  "decisions": [
    {
      "case_id": 90002,
      "case_number": "2 CA-CR 2025-0002",
      "case_title": "JOHNSON v. STATE",
      "decision_type": "Opinion",
      "published_date": "2025-02-01T00:00:00+00:00",
      "decision_document": "https://www.appeals2.az.gov/serveFile.php?type=DE&file=CR20250002r.pdf",
      "county": "Maricopa",
      "current_status": "Active"
    }
  ],
  "total": 1
}
    

Error Responses

400 Bad Request

Missing or invalid parameters

{
  "error": "Missing required parameter",
  "details": {
    "parameter": "case_id or case_number"
  }
}
    

404 Not Found

Case not found

{
  "error": "Case not found",
  "case_id": "99999"
}
    

404 Not Found

Invalid endpoint

{
  "error": "Not found",
  "path": "/api/unknown",
  "message": "The requested API endpoint does not exist"
}
    

405 Method Not Allowed

Only GET requests are supported

{
  "error": "Method not allowed",
  "allowed": ["GET"]
}
    

429 Too Many Requests

Rate limit exceeded

{
  "error": "Rate limit exceeded",
  "details": {
    "retry_after_seconds": 60
  }
}
    

Rate Limiting

Security

Additional Resources

Notes