PSA API endpoint
Every player PSA ProBatFacts lists for one category, each with the numeric subject_id to pass to psa-probatfacts-subject for that player's full bat-authentication reference page.
/psa/probatfacts/subjectsQuery parameters:
category_id (required) — a category id from
psa-probatfacts-categories, e.g. 29 (Hall of Fame Players).| Field | Filled in, of 132 checked | Values in the sample |
|---|---|---|
| subject_id | 132 | |
| name | 132 | “Hank Aaron” and 131 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| category_id | integer | Yes | Category id, from psa-probatfacts-categories | 29 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/psa/probatfacts/subjects?category_id=29" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"category_id": 29,
"category_name": "Hall of Fame Players",
"subjects": [
{
"subject_id": 1490,
"name": "Hank Aaron"
},
{
"subject_id": 1491,
"name": "Roberto Alomar"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/psa.probatFactsSubjectsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | psa.ProBatFactsSubjectsResponse | No | ||||
| data.category_id | integer | No | ||||
| data.category_name | string | No | ||||
| data.subjects | array | No | ||||
| data.subjects[].name | string | No | Name is the player's display name, e.g. "Hank Aaron". | |||
| data.subjects[].subject_id | integer | No | SubjectID is PSA's own numeric subject id -- pass as subject_id to ProBatFactsSubject. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/psa/probatfacts/subjects?category_id=29" \
-H "x-api-key: $CRAWLORA_API_KEY"