PSA API endpoint
Every event PSA TicketFacts lists for one category, each with the numeric subject_id to pass to psa-ticketfacts-subject for that event's full ticket reference page.
/psa/ticketfacts/subjectsQuery parameters:
category_id (required) — a category id from
psa-ticketfacts-categories, e.g. 21 (Super Bowl).| Field | Filled in, of 47 checked | Values in the sample |
|---|---|---|
| subject_id | 47 | |
| name | 47 | “Super Bowl I” and 46 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| category_id | integer | Yes | Category id, from psa-ticketfacts-categories | 21 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/psa/ticketfacts/subjects?category_id=21" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"category_id": 21,
"category_name": "Super Bowl",
"subjects": [
{
"subject_id": 1147,
"name": "Super Bowl I"
},
{
"subject_id": 1148,
"name": "Super Bowl II"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/psa.ticketFactsSubjectsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | psa.TicketFactsSubjectsResponse | No | ||||
| data.category_id | integer | No | ||||
| data.category_name | string | No | ||||
| data.subjects | array | No | ||||
| data.subjects[].name | string | No | Name is the event's display name, e.g. "Super Bowl I". | |||
| data.subjects[].subject_id | integer | No | SubjectID is PSA's own numeric subject id -- pass as subject_id to TicketFactsSubject. | |||
| 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/ticketfacts/subjects?category_id=21" \
-H "x-api-key: $CRAWLORA_API_KEY"