{"content":"\n
\n The Library of Congress' recently re-released Print & Photographs Online Catalog (http://www.loc.gov/pictures/) provides a json serialization of the request-scoped state used to create every html page. This immediately enables PPOC to serve as a simple API for developers to make use of while building other applications, integrating Library data in new and innovative ways.\n
\n
\n This API is a work in progress. Use at your own risk!! We might (will likely) change this!\n\n
\n $.ajax({\n
\n type: 'get',
\n url: 'https://loc.gov/pictures/',
\n dataType:'json',
\n data:{
\n fo:'json',
\n at:'featured'
\n },
\n success: function(response){
\n var featured = response.featured,
\n random = [
\n Math.floor(Math.random()*featured.length),
\n Math.floor(Math.random()*featured.length),
\n Math.floor(Math.random()*featured.length)
\n ];
\n $(random).each(function(index, value){
\n $.ajax({
\n type:'get',
\n url:'https://loc.gov/pictures/search',
\n dataType:'json',
\n data:{
\n fo:'json',
\n at:'results',
\n num:'3',
\n co: featured[value].code
\n },
\n success: function(response){
\n $('#mashup').append(template, response.results);
\n }
\n });
\n });
\n }
\n })
\n
\n [{\n
\n \"code\": \"hlb\",
\n \"thumb\": \"https://www.loc.gov/pictures/static/data/hlb/thumb.png\",
\n \"title\": \"Cartoon Drawings: Herblock Collection\",
\n \"thumb_featured\": \"https://www.loc.gov/pictures/static/data/hlb/featured.png\",
\n \"link\": \"https://www.loc.gov/pictures/collection/hlb/\",
\n \"thumb_large\": \"https://www.loc.gov/pictures/static/data/hlb/thumb_large.png\"
\n },{
\n //similar to above...
\n ]
\n
\n [{\n
\n
\n //similar to above...
\n
\n },{ //...there are more than 60 collections, shortened for brevity
\n
\n //similar to above...
\n
\n }]
\n
\n {\n
\n \"json\": \"https://loc.gov/pictures/?fo=json\",
\n \"html\": \"https://loc.gov/pictures/\"
\n }\n
\n {\n
\n \n\n \"type\": \"search\",\n
\n\n \"query\": \"sioux indians\",\n
\n \"field\": null,
\n \"sort_by\": null,
\n \n\n \"hits\": \"9\"\n }
\n
\n
\n {\n
\n \"json\": \"https://loc.gov/pictures/search?q=sioux%20indians&fo=json\",
\n \"html\": \"https://loc.gov/pictures/search?q=sioux%20indians\"
\n \"rss\": \"https://loc.gov/pictures/search?q=sioux%20indians&fo=rss\"
\n }\n
\n {\n
\n \n\n \"current\": \"list\",\n }
\n \"grid\": \"https://loc.gov/pictures/search/?q=sioux+indians&st=grid\",
\n \"list\": \"https://loc.gov/pictures/search/?q=sioux+indians\",
\n \"gallery\": \"https://loc.gov/pictures/search/?q=sioux+indians&st=gallery\",
\n \"slideshow\": \"https://loc.gov/pictures/search/?q=sioux+indians&st=slideshow\"
\n
\n \n
\n {\n\"results\"\n
\n \"index\": 2,
\n }\n
\n [{\n
\n \n\n \"index\": 1,\n
\n \"medium\": \"5 photoprints (postcards) : gelatin silver ; 14 x 19 cm. or smaller.\",
\n \"reproduction_number\": \"\",
\n \"title\": \"Studio portraits of Comanche and Sioux Indians in native dress\",
\n \"creator\": \"Bates Studio (Lawton, Okla.)\",
\n \"call_number\": \"LOT 12743 (F) [P&P]\",
\n \"medium_brief\": \"5 photoprints (postcards) :\",
\n \"pk\": \"89705331\",
\n \"created_published_date\": \"c1910-c1911.\",
\n \"links\": {
\n \"item\": \"https://loc.gov/pictures/item/89705331/\",
\n \"resource\": \"https://loc.gov/pictures/item/89705331/resource/\",
\n },
\n \"image\": {
\n \"full\": \"https://loc.gov/pictures/static/images/item/500x500_grouprecord.png\",
\n \"thumb\": \"http://loc.gov/pictures/static/images/item/grouprecord_thumb_large.jpg\",
\n \"square\": \"http://loc.gov/pictures/static/images/item/grouprecord_square.png\",
\n \"alt\": \"group item thumbnail\",
\n },
\n \"subjects\": [
\n\n\n },{\n \"Indians of North America--Clothing & dress--1910-1920.\",\n ]
\n \"Infants--1910-1920.\",
\n \"Comanche Indians--1910-1920.\",
\n \"Dakota Indians--1910-1920.\"
\n
\n
\n \n\n \"index\": 2,\n
\n \"medium\": \"1 photographic print.\",
\n \"reproduction_number\": \"LC-USZ62-105379 (b&w film copy neg.)\",
\n \"title\": \"[In the land of the Sioux]\",
\n\n \"creator\": \"Curtis, Edward S., 1868-1952\",\n }]
\n \"call_number\": \"LOT 12319 <item> [P&P] [P&P]\",
\n \"medium_brief\": \"1 photographic print.\",
\n \"pk\": \"92511248\",
\n \"created_published_date\": \"c1905.\",
\n \"links\": {
\n \"item\": \"http://loc.gov/pictures/item/92511248/\",
\n \"resource\": \"https://loc.gov/pictures/item/92511248/resource/\",
\n },
\n \"image\": {
\n \"full\": \"http://loc.gov/pictures/lcweb2/service/pnp/cph/3c00000/3c05000/3c05300/3c05379r.jpg\",
\n \"thumb\": \"http://www.loc.gov/pictures/static/data/media/925/925112/92511248/92511248/gallery.jpg\",
\n \"square\": \"http://www.loc.gov/pictures/static/data/media/925/925112/92511248/92511248/square.jpg\",
\n \"alt\": \"digitized item thumbnail\",
\n },
\n \"subjects\": [
\n\n \"Indians of North America--Great Plains--1900-1910.\",\n ]
\n \"Dakota Indians--1900-1910.\",
\n \"Horseback riding--Great Plains--1900-1910.\"
\n
\n
\n
\n {\n
\n \"perpage\": 2,
\n \"last\": \"https://loc.gov/pictures/search/?q=sioux&sp=3\",
\n \"results\": \"1 - 2\",
\n \"next\": \"https://loc.gov/pictures/search/?q=sioux&sp=2\",
\n \"current\": 1,
\n \"page_list\": [{
\n \"url\": null,
\n \"number\": 1
\n },{
\n \"url\": \"https://loc.gov/pictures/search/?q=sioux&sp=2\",
\n \"number\": 2
\n },{
\n \"url\": \"https://loc.gov/pictures/search/?q=sioux&sp=3\",
\n \"number\": 3
\n }],
\n \"previous\": null,
\n \"total\": 3,
\n \"first\": null
\n }
\n
\n {\n
\n
\n \"title\": \"[Portrait of Henri Matisse]\",
\n \"control_number\": \"2004663297\",
\n \"date\": \"1933 May 20.\",
\n \"summary\": \"\",
\n \"medium_brief\": \"1 photographic print :\",
\n \"link\": \"https://loc.gov/pictures/item/2004663297\",
\n \"marc\": \"https://loc.gov/pictures/item/2004663297/marc\",
\n \"call_number\": \"LOT 12735, no. 781 [P&P]\",
\n \"display_offsite\": true,
\n \"created_published\": \"1933 May 20.\",
\n \"restriction\": \"\",
\n \"reproduction_number\": \"LC-USZ62-103699 (b&w film copy neg.)\",
\n \"part_of\": \"Van Vechten, Carl, 1880-1964. Portrait photographs of celebrities\",
\n \"thumb_gallery\": \"https://loc.gov/pictures/static/data/media/200/200466/200466329/2004663297/gallery.jpg\",
\n \"other_number\": \"\",
\n \"title_translation\": \"\",
\n \"id\": \"2004663297\",
\n \"contents\": \"\",
\n \"sort_date\": \"1500-01-01\",
\n \"stmt_of_responsibility\": \"\",
\n \"other_titles\": \"\",
\n \"repository\": \"Library of Congress Prints and Photographs Division Washington, D.C. 20540 USA\",
\n \"rights_information\": \"For publication information see \\\"Carl Van Vechten Photographs (Lots 12735 and 12736)\\\" http://www.loc.gov/rr/print/res/079_vanv.html\",
\n \"terms\": [],
\n \"related_names\": [],
\n \"related_items\": [],
\n \"resource_links\": [
\n \"https://hdl.loc.gov/loc.pnp/van.5a52380\",
\n \"https://hdl.loc.gov/loc.pnp/cph.3c03699\"
\n ],
\n \"formats\": [{
\n \"link\": \"https://loc.gov/pictures/related?fi=format&q=Portrait photographs.\",
\n \"title\": \"Portrait photographs.\"
\n }],
\n \"mediums\": [{
\n \"medium\": \"1 photographic print : gelatin silver.\",
\n \"label\": null
\n }],
\n \"creators\": [{
\n \"role\": \"photographer\",
\n \"title\": \"Van Vechten, Carl, 1880-1964\",
\n \"link\": \"https://loc.gov/pictures/related?fi=name&q=Van Vechten, Carl, 1880-1964\"
\n }],
\n \"subjects\": [{
\n \"title\": \"Matisse, Henri,--1869-1954.\",
\n \"link\": \"https://loc.gov/pictures/related?fi=subject&q=Matisse, Henri,--1869-1954.\"
\n
\n }],
\n \"collections\": [{
\n \"code\": \"van\",
\n \"title\": \"Van Vechten Collection\",
\n \"link\": \"https://loc.gov/pictures/collection/van\"
\n }],
\n \"notes\": [{
\n \"note\": \"Title derived from information on verso of photographic print.\",
\n \"label\": null
\n },{
\n \"note\": \"Van Vechten number: XXIII C 7.\",
\n \"label\": null
\n },{
\n \"note\": \"Also available on microfilm.\",
\n \"label\": null
\n },{
\n \"note\": \"Gift; Carl Van Vechten Estate; 1966.\",
\n \"label\": null
\n },{
\n \"note\": \"Forms part of: Portrait photographs of celebrities, a LOT which in turn forms part of the Carl Van Vechten photograph collection (Library of Congress).\",
\n \"label\": null
\n }]
\n
\n }
\n
\n {\n
\n \"count\": 0,
\n \"term\": \"Ablution fountains\",
\n \"used_for\": [{
\n \"count\": 3,
\n \"type\": \"Related Term\",
\n \"related\": \"Bathing\"
\n },{
\n \"count\": 10,
\n \"type\": \"Related Term\",
\n \"related\": \"Fountains\"
\n },{
\n \"count\": 23,
\n \"type\": \"Related Term\",
\n \"related\": \"Rites & ceremonies\"
\n },{
\n \"count\": 0,
\n \"type\": \"Used For\",
\n \"related\": \"Fountains, Ablution\"
\n }],
\n \"preferred_terms\": [],
\n \"related_terms\": [],
\n \"narrower_terms\": [],
\n \"broader_terms\": [{
\n \"count\": 5,
\n \"type\": \"Broader Term\",
\n \"related\": \"Religious architectural elements\"
\n }],
\n \"facet_notes\": [
\n \"--[country or state]--[city]\"
\n ],
\n \"scope_notes\": [],
\n \"hisory_notes\": []
\n }\n
\n {\n
\n
\n \"current\": 2,
\n \"total\": 17,
\n \"search_link\": \"https://loc.gov/pictures/search/?q=henri\",
\n \"next\": \"https://loc.gov/pictures/item/2002707053/\",
\n \"previous\": \"https://loc.gov/pictures/item/2002724877/\",
\n \"next_img\": \"https://www.loc.gov/pictures/static/data/media/200/200270/200270705/2002707053/thumb.jpg\",
\n \"previous_img\": \"https://www.loc.gov/pictures/static/data/media/200/200272/200272487/2002724877/thumb.jpg\",
\n
\n }
\n
\n
\n {\n
\n \"lot_link\": null,
\n \"neighbors\": \"https://loc.gov/pictures/related?&pk=2002706200&st=gallery&sb=call_number#focus\",
\n \"group_record\": null
\n }
\n
\n [{\n
\n //see resource for field details and example
\n },{
\n //see resource for field details and example
\n }]\n
\n {\n
\n
\n \"id\": \"ppmsc.03034\",
\n \"aggregate\": \"ppmsc\",
\n \"external\": null,
\n \"url\": \"https://hdl.loc.gov/loc.pnp/ppmsc.03034\",
\n \"link\": \"https://loc.gov/pictures/resource/ppmsc.03034\",
\n \"note\": \"original\",
\n \"item\": \"03034\",
\n \"small_s\": 17029,
\n \"medium_s\": 69892,
\n \"large_s\": 139894,
\n \"larger_s\": 34239356,
\n \"largest_s\": 0,
\n \"small\": \"https://lcweb2.loc.gov/service/pnp/ppmsc/03000/03034t.gif\",
\n \"medium\": \"https://lcweb2.loc.gov/service/pnp/ppmsc/03000/03034r.jpg\",
\n \"large\": \"https://lcweb2.loc.gov/service/pnp/ppmsc/03000/03034v.jpg\",
\n \"larger\": \"https://lcweb2.loc.gov/master/pnp/ppmsc/03000/03034u.tif\",
\n \"largest\": \"https://memory.loc.gov/pp/notdig.gif\"
\n
\n }\n
\n [{\n
\n
\n //see collection for field details and examples
\n
\n },{ //...there are over 60 collections, shortened for brevity
\n
\n //see collection for field details and examples
\n
\n }]
\n
\n {\n
\n \"code\": \"ecur\",
\n \"digitized\": \"All\",
\n \"display_offsite\": \"Yes\",
\n \"title\": \"Curtis (Edward S.) Collection\",
\n \"link\": \"https://loc.gov/pictures/collection/ecur\",
\n \"banner_item\": \"https://loc.gov/pictures/item/94504691\",
\n \"banner_title\": \"Shows As He Goes. Edward S. Curtis, 1905.\",
\n \"banner\": \"https://loc.gov/pictures/static/data/ecur/banner.jpg\",
\n \"from_date\": \"1890\",
\n \"to_date\": \"1929\",
\n \"view_all\": \"https://loc.gov/pictures/search?st=grid&c=100&co=ecur\",
\n \"extent\": \"about 1,000 photographic prints (selection from full collection)\",
\n \"rights\": \"https://www.loc.gov/rr/print/res/369_curt.html\",
\n \"thumb\": \"https://loc.gov/pictures/static/data/ecur/thumb.png\",
\n \"thumb_item\": \"\",
\n \"thumb_large_item\": \"\",
\n \"thumb_large\": \"https://loc.gov/pictures/static/data/ecur/thumb_large.png\",
\n \"brief\": \"Native Americans in the Pacific Northwest, New Southwest, Great Basin, Great Plains, Plateau Region, California, and Alaska. Features studio and field photographs. Selected images are primarily those for which copy photos have been produced.\"
\n }
\n
\n [{\n
\n
\n \"title\": \"About this Collection\",
\n \"link\": \"https://loc.gov/pictures/collection/ecur/about.html\",
\n \"content\": \"https://loc.gov/pictures/static/data/ecur/resources/about.html\"
\n
\n },{//there are many more, shortened here for brevity
\n
\n \"title\": \"Tribe Index\",
\n \"link\": \"https://loc.gov/pictures/collection/ecur/tribeindex.html\",
\n \"content\": \"https://loc.gov/pictures/static/data/ecur/resources/tribeindex.html\"
\n
\n }]\n
\n {\n
\n \"link\": \"https://loc.gov/pictures/collection/ecur/about.html\",
\n \"content\": \"\\n <h2>About this Collection</h2>\\n\\n <p>The Edward S. Curtis Collection offers a unique glimpse\\n into Curtis's work with indigenous cultures. The more than\\n 2,400 silver-gelatin photographic prints were acquired by\\n the Library of Congress through copyright deposit from\\n about 1900 through 1930. About two-thirds (1,608) of these\\n images were not published in Curtis's multi-volume work,\\n <cite>The North American Indian</cite>. The collection includes\\n a large number of individual or group portraits, as well as\\n traditional and ceremonial dress, dwellings and other\\n structures, agriculture, arts and crafts, rites and\\n ceremonies, dances, games, food preparation,\\n transportation, and scenery. The portion of the collection\\n that is cataloged online represents those photographs for\\n which copy negatives or transparencies exist.</p>\\n \"
\n
\n }
\n
\n \"african\"\n
\n
\n \"subjects\"\n
\n
\n [{\n
\n \"count\": 1,
\n \"field\": \"subjects\",
\n \"value\": \"African Americans--1930-1940.\",
\n \"url\": \"https://loc.gov/pictures/related?q=African%20Americans--1930-1940.&fi=subjects&co=lomax\"
\n },
\n //..there are many more, shortened for brevity
\n {
\n \"count\": 1,
\n \"field\": \"subjects\",
\n \"value\": \"African Americans--Women--1940.\",
\n \"url\": \"https://loc.gov/pictures/related?q=African%20Americans--Women--1940.&fi=subjects&co=lomax\"
\n }]
\n
\n [\"a\", \"b\", \"c\", \"f\", \"h\", \"i\", \"l\", \"m\", \"o\", \"r\", \"s\", \"v\", \"w\"]\n
\n
\n [{\n
\n \"count\": 1,
\n \"link\": \"https://loc.gov/pictures/collection/brum/index/formats/\",
\n \"title\": \"formats\"
\n },{
\n \"count\": 1,
\n \"link\": \"https://loc.gov/pictures/collection/brum/index/names/\",
\n \"title\": \"names\"
\n },{
\n \"count\": 53,
\n \"link\": \"https://loc.gov/pictures/collection/brum/index/subjects/\",
\n \"title\": \"subjects\"
\n }]\n