Skip to content

Instantly share code, notes, and snippets.

@fuzheado
Created September 21, 2021 10:58
Show Gist options
  • Select an option

  • Save fuzheado/e47cdd6da0674cc47cced43eaec31c1e to your computer and use it in GitHub Desktop.

Select an option

Save fuzheado/e47cdd6da0674cc47cced43eaec31c1e to your computer and use it in GitHub Desktop.
Smithsonian API example - NMAAHC
{
"status": 200,
"responseCode": 1,
"response": {
"id": "edanmdm-nmaahc_2018.59.3",
"title": "M1917 Revolver issued by US Army during WWI to Charles H. Houston",
"unitCode": "NMAAHC",
"type": "edanmdm",
"url": "edanmdm:nmaahc_2018.59.3",
"content": {
"descriptiveNonRepeating": {
"record_ID": "nmaahc_2018.59.3",
"online_media": {
"mediaCount": 5,
"media": [
{
"thumbnail": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_001",
"idsId": "NMAAHC-2018_59_3_001",
"usage": {
"access": "CC0"
},
"guid": "http://n2t.net/ark:/65665/az98f805a21-e555-49c2-9f18-cf85914f924f",
"type": "Images",
"content": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_001",
"resources": [
{
"label": "High-resolution TIFF",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_001.tif",
"width": 6304,
"height": 4503
},
{
"width": 6304,
"height": 4503,
"label": "High-resolution JPEG",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_001.jpg",
"dimensions": "6304x4503"
},
{
"label": "Screen Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_001_screen"
},
{
"label": "Thumbnail Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_001_thumb"
}
]
},
{
"thumbnail": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_002",
"idsId": "NMAAHC-2018_59_3_002",
"usage": {
"access": "CC0"
},
"guid": "http://n2t.net/ark:/65665/az993332e89-2c7b-4bb6-92e5-643cdbe60cc4",
"type": "Images",
"content": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_002",
"resources": [
{
"label": "High-resolution TIFF",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_002.tif",
"width": 6148,
"height": 4392
},
{
"width": 6148,
"height": 4392,
"label": "High-resolution JPEG",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_002.jpg",
"dimensions": "6148x4392"
},
{
"label": "Screen Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_002_screen"
},
{
"label": "Thumbnail Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_002_thumb"
}
]
},
{
"thumbnail": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_003",
"idsId": "NMAAHC-2018_59_3_003",
"usage": {
"access": "CC0"
},
"guid": "http://n2t.net/ark:/65665/az9ca875d05-7435-41e0-a5b8-b1776e78593f",
"type": "Images",
"content": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_003",
"resources": [
{
"label": "High-resolution TIFF",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_003.tif",
"width": 5364,
"height": 3831
},
{
"width": 5364,
"height": 3831,
"label": "High-resolution JPEG",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_003.jpg",
"dimensions": "5364x3831"
},
{
"label": "Screen Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_003_screen"
},
{
"label": "Thumbnail Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_003_thumb"
}
]
},
{
"thumbnail": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_004",
"idsId": "NMAAHC-2018_59_3_004",
"usage": {
"access": "CC0"
},
"guid": "http://n2t.net/ark:/65665/az9a4b20c99-228f-4b89-9a2b-b4d3f500e1b4",
"type": "Images",
"content": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_004",
"resources": [
{
"label": "High-resolution TIFF",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_004.tif",
"width": 6874,
"height": 4910
},
{
"width": 6874,
"height": 4910,
"label": "High-resolution JPEG",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_004.jpg",
"dimensions": "6874x4910"
},
{
"label": "Screen Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_004_screen"
},
{
"label": "Thumbnail Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_004_thumb"
}
]
},
{
"thumbnail": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_005",
"idsId": "NMAAHC-2018_59_3_005",
"usage": {
"access": "CC0"
},
"guid": "http://n2t.net/ark:/65665/az96e0b5578-eebb-4eb8-94d7-3cfddd56c0e7",
"type": "Images",
"content": "https://ids.si.edu/ids/deliveryService?id=NMAAHC-2018_59_3_005",
"resources": [
{
"label": "High-resolution TIFF",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_005.tif",
"width": 6147,
"height": 4391
},
{
"width": 6147,
"height": 4391,
"label": "High-resolution JPEG",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_005.jpg",
"dimensions": "6147x4391"
},
{
"label": "Screen Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_005_screen"
},
{
"label": "Thumbnail Image",
"url": "https://ids.si.edu/ids/download?id=NMAAHC-2018_59_3_005_thumb"
}
]
}
]
},
"unit_code": "NMAAHC",
"title_sort": "M1917 REVOLVER ISSUED BY US ARMY DURING WWI TO CHARLES H. HOUSTON",
"guid": "http://n2t.net/ark:/65665/fd51c86c80e-d05b-4eb8-a188-4c3326abcb39",
"record_link": "https://nmaahc.si.edu/object/nmaahc_2018.59.3",
"title": {
"label": "Object Name",
"content": "M1917 Revolver issued by US Army during WWI to Charles H. Houston"
},
"metadata_usage": {
"access": "CC0"
},
"data_source": "National Museum of African American History and Culture"
},
"indexedStructured": {
"date": [
"1910s"
],
"geoLocation": [
{
"L5": {
"type": "City",
"content": "Hartford"
}
},
{
"L3": {
"type": "State",
"content": "Connecticut"
}
},
{
"L2": {
"type": "Country",
"content": "United States"
}
},
{
"L1": {
"type": "Continent",
"content": "North and Central America"
}
},
{
"L2": {
"type": "Country",
"content": "France"
}
},
{
"L1": {
"type": "Continent",
"content": "Europe"
}
}
],
"object_type": [
"pistols"
],
"culture": [
"African Americans"
],
"online_media_rights": [
"No Known Copyright Restrictions"
],
"name": [
"United States Armed Forces",
"Houston, Charles Hamilton",
"Colt's Manufacturing Company"
],
"topic": [
"World War, 1914-1918",
"Buffalo Soldiers",
"Military"
],
"place": [
"United States",
"North and Central America",
"Europe",
"Connecticut",
"Hartford",
"France"
],
"online_media_type": [
"Images"
]
},
"freetext": {
"setName": [
{
"label": "See more items in",
"content": "National Museum of African American History and Culture Collection"
},
{
"label": "Classification",
"content": "Tools and Equipment-Weapons and ammunition"
}
],
"date": [
{
"label": "Date",
"content": "January 1918"
}
],
"identifier": [
{
"label": "Object number",
"content": "2018.59.3"
}
],
"notes": [
{
"label": "Description",
"content": "Colt Model 1917 Revolver .45 ACP (Automatic Colt Pistol) No 22-883 issued by the United States Army to Charles Hamilton Houston during World War I. The gun is comprised of metal with wood applied to the handle. The revolver has a six-round cylinder that is semi-removable so bullets can be loaded. There are multiple manufacturer's notes throughout the barrel and frame. On the left of the barrel, text reads [COLT D.A. 45]. On top of the barrel is the manufacture's information, [COLT’S PT FA MFG CO. HARTFORD, CT U.S.A. / PAT’D AUG. 5, 1884 JUNE 6 1900 JULY 4 1905]. On the left side of the frame, at the top next to the hammer are the letters [GHS] in a circle. Below the hammer on the frame is a horse standing on its hind legs with two spears. The bottom of the grip has a circular hinge with a cylinder shaped metal. Surrounding the hinge are the words, [U.S. / ARMY / MODEL / 1917 / N° / 22 / 883]."
}
],
"creditLine": [
{
"label": "Credit Line",
"content": "Collection of the Smithsonian National Museum of African American History and Culture, Gift of Charles Hamilton Houston, Jr. and Dr. Rosemary Jagus"
}
],
"name": [
{
"label": "Created by",
"content": "Colt's Manufacturing Company, American, founded 1855"
},
{
"label": "Owned by",
"content": "Charles Hamilton Houston, American, 1895 - 1951"
},
{
"label": "Issued by",
"content": "United States Armed Forces, American, founded 1775"
}
],
"topic": [
{
"label": "Topic",
"content": "African American"
},
{
"label": "Topic",
"content": "Buffalo Soldiers"
},
{
"label": "Topic",
"content": "Military"
},
{
"label": "Topic",
"content": "World War I"
}
],
"place": [
{
"label": "Place made",
"content": "Hartford, Connecticut, United States, North and Central America"
},
{
"label": "Place used",
"content": "France, Europe"
}
],
"physicalDescription": [
{
"label": "Medium",
"content": "metal and wood"
},
{
"label": "Dimensions",
"content": "H x W x D: 5 1/2 × 11 1/4 × 1 1/2 in. (14 × 28.6 × 3.8 cm)"
}
],
"dataSource": [
{
"label": "Data Source",
"content": "National Museum of African American History and Culture"
}
],
"objectRights": [
{
"label": "Restrictions & Rights",
"content": "No Known Copyright Restrictions"
}
],
"objectType": [
{
"label": "Type",
"content": "pistols"
}
]
}
},
"hash": "a32c79aa6b69595ade0e6949cd622627a67c9d79",
"docSignature": "d78d5677bc352d0232006da802ad78746ccbff3c_0dc90da0a53b3ded415e5be28f45cae0",
"timestamp": "1622710186",
"lastTimeUpdated": "1622710186",
"version": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment