Query structured spec data via REST or MCP. Get exactly what your agent needs.
http://xkcd.com
/info.0.json
Fetch current comic and metadata.
GET /info.0.json
/{comicId}/info.0.json
Fetch comics and metadata by comic id.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| comicId | path | required | number |
GET /{comicId}/info.0.json
comic
{
"type": "object",
"properties": {
"alt": {
"type": "string"
},
"day": {
"type": "string"
},
"img": {
"type": "string"
},
"num": {
"type": "number"
},
"link": {
"type": "string"
},
"news": {
"type": "string"
},
"year": {
"type": "string"
},
"month": {
"type": "string"
},
"title": {
"type": "string"
},
"safe_title": {
"type": "string"
},
"transcript": {
"type": "string"
}
}
}