Response Content Types
For any API endpoint, you can choose JSON or XML responses by including application/json or application/xml in the request's Accept header. For example:
GET iii/sierra-api/v6/bibs/1000004/marc
Host: example-library.edu
Authorization: Bearer gbKjvov1k8PW_LqZerTYyq_i7v8kkfTGwwZX6jux19_WCW8lqeWyf6ReRQu5jKTE
Accept: application/json
User-Agent: Your App Here
X-Forwarded-For: (Client IP Address)
For the authority and bib record MARC endpoints, you also have the option to retrieve MARC data in MARC-in-JSON format if you specify application/marc-in-json in the request's Accept header.
Each operation in the Interactive Documentation includes a drop-down list, just above the parameters section, where you can choose the response content type.
Click the links below to view MARC and MARC-in-JSON response examples.
The /bibs/<ID>/marc endpoint returns data in MARC-JSON, XML, or MARC-in-JSON format.
Example MARC-JSON response for :
https://example-library.edu:443/iii/sierra-api/v6/bibs/1000004/marc{
leader:"00000cam 2200000 4500",
controlfield:
[
{ tag : "001", data : "514" },
{ tag : "005", data : "19850306214636.0" },
{ tag : "008", data : "690612s1969 nyu b 000 0 eng cam " }
]
datafield :
[
{
tag : "100", ind : "1 ",
subfield :
[
{ code : "a", data : "Huberman, Leo," },
{ code : "d", data : "1903-1968." }
]
},
{
tag : "700", ind : "1 ",
subfield :
[
{ code : "a", data : "Sweezy, Paul M." },
{ code : "q", data : "(Paul Marlor)," },
{ code : "d", data : "1910-2004." }
]
},
{
tag : "650", ind : " 0",
subfield :
[
{ code : "a", data : "Socialism" },
{ code : "z", data : "Cuba." }
]
},
{
tag : "010", ind : " ",
subfield :
[
{ code : "a", data : "68008078" }
]
},
{
tag : "504", ind : " ",
subfield :
[
{ code : "a", data : "Bibliographical footnotes." }
]
},
{
tag : "967", ind : " ",
subfield :
[
{ code : "a", data : "ib10000045" }
]
},
{
tag : "260", ind : " ",
subfield :
[
{ code : "a", data : "New York" },
{ code : "b", data : "[Monthly Review Press," },
{ code : "c", data : "1969]" }
]
},
{
tag : "300", ind : " ",
subfield :
[
{ code : "a", data : "221 p." },
{ code : "c", data : "21 cm." }
]
},
{
tag : "245", ind : "10",
subfield :
[
{ code : "a", data : "Socialism in Cuba," },
{ code : "c", data : "by Leo Huberman and Paul M. Sweezy." }
]
},
{
tag : "040", ind : " ",
subfield :
[
{ code : "a", data : "DLC" },
{ code : "c", data : "DLC" },
{ code : "d", data : "OCL" },
{ code : "d", data : "m.c." },
{ code : "d", data : "CSJ" }
]
},
{
tag : "049", ind : " ",
subfield :
[
{ code : "a", data : "CSJM" }
]
},
{
tag : "050", ind : " ",
subfield :
[
{ code : "a", data : "HX157" },
{ code : "b", data : ".H8" }
]
},
{
tag : "910", ind : " ",
subfield :
[
{ code : "a", data : "eng" },
{ code : "b", data : "901010" },
{ code : "c", data : "m" },
{ code : "d", data : "a" },
{ code : "e", data : "nyu" }
]
},
{
tag : "910", ind : " ",
subfield :
[
{ code : "a", data : "rcp" }
]
}
]
}
The following provides an example of a MARC-in-JSON response for:
https://example-library.edu:443/iii/sierra-api/v6/bibs/1000004/marc{
"leader": "0000cam 2200000 4500",
"fields": [
{
"100": {
"subfields": [
{
"a": "Huberman, Leo,"
},
{
"d": "1903-1968."
}
],
"ind1": "1",
"ind2": " "
}
},
{
"700": {
"subfields": [
{
"a": "Sweezy, Paul M."
},
{
"q": "(Paul Marlor),"
},
{
"d": "1910-2004."
}
],
"ind1": "1",
"ind2": " "
}
},
{
"650": {
"subfields": [
{
"a": "Socialism"
},
{
"z": "Cuba."
}
],
"ind1": " ",
"ind2": "0"
}
},
{
"010": {
"subfields": [
{
"a": "68008078"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"504": {
"subfields": [
{
"a": "Bibliographical footnotes."
}
],
"ind1": " ",
"ind2": " "
}
},
{
"001": "514"
},
{
"967": {
"subfields": [
{
"a": "ib10000045"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"260": {
"subfields": [
{
"a": "New York"
},
{
"b": "[Monthly Review Press,"
},
{
"c": "1969]"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"300": {
"subfields": [
{
"a": "221 p."
},
{
"c": "21 cm."
}
],
"ind1": " ",
"ind2": " "
}
},
{
"245": {
"subfields": [
{
"a": "Socialism in Cuba,"
},
{
"c": "by Leo Huberman and Paul M. Sweezy."
}
],
"ind1": "1",
"ind2": "0"
}
},
{
"005": "19850306214636.0"
},
{
"008": "690612s1969 nyu b 000 0 eng cam "
},
{
"040": {
"subfields": [
{
"a": "DLC"
},
{
"c": "DLC"
},
{
"d": "OCL"
},
{
"d": "m.c."
},
{
"d": "CSJ"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"049": {
"subfields": [
{
"a": "CSJM"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"050": {
"subfields": [
{
"a": "HX157"
},
{
"b": ".H8"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"910": {
"subfields": [
{
"a": "eng"
},
{
"b": "901010"
},
{
"c": "m"
},
{
"d": "a"
},
{
"e": "nyu"
}
],
"ind1": " ",
"ind2": " "
}
},
{
"910": {
"subfields": [
{
"a": "rcp"
}
],
"ind1": " ",
"ind2": " "
}
}
]
}