Skip to content
Justin Coyne edited this page Oct 9, 2019 · 7 revisions

Blacklight uses JSON-API to return JSON results. There are two endpoints, one for query and one for a single record:

Example query: http://demo.projectblacklight.org/catalog.json?utf8=%E2%9C%93&search_field=all_fields&q=

JSON Response:

{
   "data" : [
      {
         "type" : [
            "Book"
         ],
         "attributes" : {
            "author_tsim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002583#author_tsim",
               "attributes" : {
                  "value" : "Dornfeld, Margaret.",
                  "label" : "Author"
               }
            },
            "title_tsim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002583#title_tsim",
               "attributes" : {
                  "value" : "Maine /",
                  "label" : "Title"
               }
            },
            "format" : {
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002583#format",
               "type" : "document_value"
            },
            "language_ssim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2009002583#language_ssim",
               "attributes" : {
                  "label" : "Language",
                  "value" : "English"
               },
               "type" : "document_value"
            }
         },
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009002583"
         },
         "id" : "2009002583"
      },
      {
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009002600"
         },
         "id" : "2009002600",
         "attributes" : {
            "title_tsim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002600#title_tsim",
               "attributes" : {
                  "value" : "Nebraska /",
                  "label" : "Title"
               }
            },
            "author_tsim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2009002600#author_tsim",
               "attributes" : {
                  "label" : "Author",
                  "value" : "Bjorklund, Ruth."
               },
               "type" : "document_value"
            },
            "language_ssim" : {
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002600#language_ssim",
               "type" : "document_value"
            },
            "format" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002600#format",
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               }
            }
         },
         "type" : [
            "Book"
         ]
      },
      {
         "type" : [
            "Book"
         ],
         "attributes" : {
            "author_tsim" : {
               "type" : "document_value",
               "attributes" : {
                  "label" : "Author",
                  "value" : "McDaniel, Melissa,"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002584#author_tsim"
            },
            "title_tsim" : {
               "attributes" : {
                  "label" : "Title",
                  "value" : "North Dakota /"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002584#title_tsim",
               "type" : "document_value"
            },
            "format" : {
               "type" : "document_value",
               "attributes" : {
                  "label" : "Format",
                  "value" : "Book"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002584#format"
            },
            "language_ssim" : {
               "attributes" : {
                  "label" : "Language",
                  "value" : "English"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002584#language_ssim",
               "type" : "document_value"
            }
         },
         "id" : "2009002584",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009002584"
         }
      },
      {
         "type" : [
            "Book"
         ],
         "attributes" : {
            "title_tsim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2008055854#title_tsim",
               "attributes" : {
                  "value" : "35 techniques every counselor should know /",
                  "label" : "Title"
               },
               "type" : "document_value"
            },
            "language_ssim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2008055854#language_ssim",
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               }
            },
            "format" : {
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2008055854#format",
               "type" : "document_value"
            }
         },
         "id" : "2008055854",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2008055854"
         }
      },
      {
         "id" : "2008053976",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2008053976"
         },
         "attributes" : {
            "author_tsim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2008053976#author_tsim",
               "attributes" : {
                  "value" : "Raczka, Bob.",
                  "label" : "Author"
               },
               "type" : "document_value"
            },
            "title_tsim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2008053976#title_tsim",
               "attributes" : {
                  "value" : "Action figures :",
                  "label" : "Title"
               },
               "type" : "document_value"
            },
            "language_ssim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2008053976#language_ssim",
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               }
            },
            "format" : {
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2008053976#format",
               "type" : "document_value"
            }
         },
         "type" : [
            "Book"
         ]
      },
      {
         "type" : [
            "Book"
         ],
         "attributes" : {
            "language_ssim" : {
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009001367#language_ssim",
               "type" : "document_value"
            },
            "format" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009001367#format",
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               }
            },
            "title_tsim" : {
               "type" : "document_value",
               "attributes" : {
                  "value" : "After /",
                  "label" : "Title"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009001367#title_tsim"
            },
            "author_tsim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009001367#author_tsim",
               "attributes" : {
                  "value" : "Harmel, Kristin.",
                  "label" : "Author"
               }
            }
         },
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009001367"
         },
         "id" : "2009001367"
      },
      {
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009002349"
         },
         "id" : "2009002349",
         "attributes" : {
            "title_tsim" : {
               "attributes" : {
                  "value" : "Al Gore /",
                  "label" : "Title"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002349#title_tsim",
               "type" : "document_value"
            },
            "author_tsim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2009002349#author_tsim",
               "attributes" : {
                  "label" : "Author",
                  "value" : "McGowan, Joe,"
               },
               "type" : "document_value"
            },
            "language_ssim" : {
               "type" : "document_value",
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002349#language_ssim"
            },
            "format" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002349#format",
               "attributes" : {
                  "label" : "Format",
                  "value" : "Book"
               }
            }
         },
         "type" : [
            "Book"
         ]
      },
      {
         "id" : "2009002821",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009002821"
         },
         "attributes" : {
            "author_tsim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002821#author_tsim",
               "attributes" : {
                  "value" : "Burgan, Michael.",
                  "label" : "Author"
               }
            },
            "title_tsim" : {
               "attributes" : {
                  "value" : "The Alamo /",
                  "label" : "Title"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002821#title_tsim",
               "type" : "document_value"
            },
            "format" : {
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002821#format",
               "type" : "document_value"
            },
            "language_ssim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2009002821#language_ssim",
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               }
            }
         },
         "type" : [
            "Book"
         ]
      },
      {
         "type" : [
            "Book"
         ],
         "attributes" : {
            "language_ssim" : {
               "attributes" : {
                  "label" : "Language",
                  "value" : "English"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002279#language_ssim",
               "type" : "document_value"
            },
            "format" : {
               "id" : "http://demo.projectblacklight.org/catalog/2009002279#format",
               "attributes" : {
                  "value" : "Book",
                  "label" : "Format"
               },
               "type" : "document_value"
            },
            "title_tsim" : {
               "attributes" : {
                  "label" : "Title",
                  "value" : "Alien invasion! :"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002279#title_tsim",
               "type" : "document_value"
            },
            "author_tsim" : {
               "attributes" : {
                  "label" : "Author",
                  "value" : "Jackson, Cari."
               },
               "id" : "http://demo.projectblacklight.org/catalog/2009002279#author_tsim",
               "type" : "document_value"
            }
         },
         "id" : "2009002279",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2009002279"
         }
      },
      {
         "attributes" : {
            "author_tsim" : {
               "id" : "http://demo.projectblacklight.org/catalog/2008054696#author_tsim",
               "attributes" : {
                  "label" : "Author",
                  "value" : "Cavanagh, Gerald F."
               },
               "type" : "document_value"
            },
            "title_tsim" : {
               "attributes" : {
                  "label" : "Title",
                  "value" : "American business values :"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2008054696#title_tsim",
               "type" : "document_value"
            },
            "language_ssim" : {
               "type" : "document_value",
               "id" : "http://demo.projectblacklight.org/catalog/2008054696#language_ssim",
               "attributes" : {
                  "value" : "English",
                  "label" : "Language"
               }
            },
            "format" : {
               "type" : "document_value",
               "attributes" : {
                  "label" : "Format",
                  "value" : "Book"
               },
               "id" : "http://demo.projectblacklight.org/catalog/2008054696#format"
            }
         },
         "id" : "2008054696",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/2008054696"
         },
         "type" : [
            "Book"
         ]
      }
   ],
   "meta" : {
      "pages" : {
         "limit_value" : 10,
         "total_count" : 9873,
         "next_page" : 2,
         "first_page?" : true,
         "offset_value" : 0,
         "prev_page" : null,
         "last_page?" : false,
         "total_pages" : 988,
         "current_page" : 1
      }
   },
   "included" : [
      {
         "id" : "format",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/format.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "attributes" : {
            "items" : [
               {
                  "attributes" : {
                     "label" : "Book",
                     "hits" : 9628,
                     "value" : "Book"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Book&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Microfilm&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 105,
                     "value" : "Microfilm",
                     "label" : "Microfilm"
                  }
               },
               {
                  "attributes" : {
                     "value" : "Kit",
                     "hits" : 84,
                     "label" : "Kit"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Kit&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Electronic&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 25,
                     "value" : "Electronic",
                     "label" : "Electronic"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=eBook&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "eBook",
                     "hits" : 10,
                     "value" : "eBook"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Manuscript&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 6,
                     "value" : "Manuscript",
                     "label" : "Manuscript"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Software&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Software",
                     "value" : "Software",
                     "hits" : 6
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=Unknown&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 5,
                     "value" : "Unknown",
                     "label" : "Unknown"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 2,
                     "value" : "SoundDisc",
                     "label" : "SoundDisc"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=SoundDisc&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bformat%5D%5B%5D=VideoDisc&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "VideoDisc",
                     "hits" : 2,
                     "value" : "VideoDisc"
                  }
               }
            ],
            "label" : "Format"
         },
         "type" : "facet"
      },
      {
         "type" : "facet",
         "attributes" : {
            "items" : [
               {
                  "attributes" : {
                     "label" : "2008",
                     "hits" : 2273,
                     "value" : "2008"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2008&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 1267,
                     "value" : "2007",
                     "label" : "2007"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2007&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2009&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "2009",
                     "value" : "2009",
                     "hits" : 1187
                  }
               },
               {
                  "attributes" : {
                     "label" : "2006",
                     "hits" : 688,
                     "value" : "2006"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2006&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2005&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "2005",
                     "hits" : 528,
                     "label" : "2005"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2004&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "2004",
                     "value" : "2004",
                     "hits" : 324
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2003&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "2003",
                     "value" : "2003",
                     "hits" : 239
                  }
               },
               {
                  "attributes" : {
                     "label" : "2010",
                     "value" : "2010",
                     "hits" : 214
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2010&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2002&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "2002",
                     "value" : "2002",
                     "hits" : 201
                  }
               },
               {
                  "attributes" : {
                     "label" : "2001",
                     "hits" : 165,
                     "value" : "2001"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bpub_date_ssim%5D%5B%5D=2001&q=&search_field=all_fields"
                  }
               }
            ],
            "label" : "Publication Year"
         },
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/pub_date_ssim.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "id" : "pub_date_ssim"
      },
      {
         "type" : "facet",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/subject_ssim.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "id" : "subject_ssim",
         "attributes" : {
            "items" : [
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Women&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Women",
                     "hits" : 178,
                     "value" : "Women"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Precalculus&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 107,
                     "value" : "Precalculus",
                     "label" : "Precalculus"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=World+War%2C+1939-1945&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "World War, 1939-1945",
                     "hits" : 85,
                     "value" : "World War, 1939-1945"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Cataloging+of+archival+materials&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Cataloging of archival materials",
                     "value" : "Cataloging of archival materials",
                     "hits" : 80
                  }
               },
               {
                  "attributes" : {
                     "label" : "African Americans",
                     "value" : "African Americans",
                     "hits" : 73
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=African+Americans&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 71,
                     "value" : "Mystery fiction",
                     "label" : "Mystery fiction"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Mystery+fiction&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Law&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 65,
                     "value" : "Law",
                     "label" : "Law"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Large type books",
                     "value" : "Large type books",
                     "hits" : 64
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Large+type+books&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Love stories",
                     "hits" : 63,
                     "value" : "Love stories"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Love+stories&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Bible",
                     "hits" : 62,
                     "value" : "Bible"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Bible&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Mathematics",
                     "value" : "Mathematics",
                     "hits" : 62
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Mathematics&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Catholic Church",
                     "hits" : 55,
                     "value" : "Catholic Church"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Catholic+Church&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Presidents",
                     "hits" : 55,
                     "value" : "Presidents"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Presidents&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "value" : "Moratorium on payment of debts",
                     "hits" : 52,
                     "label" : "Moratorium on payment of debts"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Moratorium+on+payment+of+debts&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "value" : "Islam",
                     "hits" : 51,
                     "label" : "Islam"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Islam&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Education&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Education",
                     "value" : "Education",
                     "hits" : 50
                  }
               },
               {
                  "attributes" : {
                     "value" : "Schools",
                     "hits" : 50,
                     "label" : "Schools"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Schools&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "English language",
                     "value" : "English language",
                     "hits" : 49
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=English+language&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "value" : "Environmental policy",
                     "hits" : 41,
                     "label" : "Environmental policy"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Environmental+policy&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Children&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "Children",
                     "hits" : 40,
                     "label" : "Children"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_ssim%5D%5B%5D=Labor+laws+and+legislation&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Labor laws and legislation",
                     "hits" : 40,
                     "value" : "Labor laws and legislation"
                  }
               }
            ],
            "label" : "Topic"
         }
      },
      {
         "attributes" : {
            "label" : "Language",
            "items" : [
               {
                  "attributes" : {
                     "label" : "English",
                     "value" : "English",
                     "hits" : 5893
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=English&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Spanish&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Spanish",
                     "value" : "Spanish",
                     "hits" : 478
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=French&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "French",
                     "value" : "French",
                     "hits" : 360
                  }
               },
               {
                  "attributes" : {
                     "value" : "German",
                     "hits" : 326,
                     "label" : "German"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=German&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Arabic",
                     "hits" : 317,
                     "value" : "Arabic"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Arabic&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 311,
                     "value" : "Italian",
                     "label" : "Italian"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Italian&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "value" : "Chinese",
                     "hits" : 288,
                     "label" : "Chinese"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Chinese&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 241,
                     "value" : "Portuguese",
                     "label" : "Portuguese"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Portuguese&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Russian&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Russian",
                     "hits" : 210,
                     "value" : "Russian"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Indonesian&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Indonesian",
                     "hits" : 183,
                     "value" : "Indonesian"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blanguage_ssim%5D%5B%5D=Urdu&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Urdu",
                     "value" : "Urdu",
                     "hits" : 144
                  }
               }
            ]
         },
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/language_ssim.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "id" : "language_ssim",
         "type" : "facet"
      },
      {
         "type" : "facet",
         "attributes" : {
            "items" : [
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=P+-+Language+%26+Literature&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "P - Language & Literature",
                     "value" : "P - Language & Literature",
                     "hits" : 1661
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=H+-+Social+Sciences&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "H - Social Sciences",
                     "value" : "H - Social Sciences",
                     "hits" : 1099
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=B+-+Philosophy%2C+Psychology%2C+Religion&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 939,
                     "value" : "B - Philosophy, Psychology, Religion",
                     "label" : "B - Philosophy, Psychology, Religion"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=K+-+Law&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "K - Law",
                     "hits" : 776,
                     "value" : "K - Law"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=D+-+World+History&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "D - World History",
                     "value" : "D - World History",
                     "hits" : 772
                  }
               },
               {
                  "attributes" : {
                     "label" : "M - Music",
                     "value" : "M - Music",
                     "hits" : 670
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=M+-+Music&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Q - Science",
                     "value" : "Q - Science",
                     "hits" : 538
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=Q+-+Science&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=T+-+Technology&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 386,
                     "value" : "T - Technology",
                     "label" : "T - Technology"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=N+-+Fine+Arts&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "N - Fine Arts",
                     "hits" : 322,
                     "label" : "N - Fine Arts"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Blc_1letter_ssim%5D%5B%5D=R+-+Medicine&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "R - Medicine",
                     "hits" : 262,
                     "label" : "R - Medicine"
                  }
               }
            ],
            "label" : "Call Number"
         },
         "id" : "lc_1letter_ssim",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/lc_1letter_ssim.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         }
      },
      {
         "type" : "facet",
         "attributes" : {
            "items" : [
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=United+States&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "United States",
                     "hits" : 889,
                     "label" : "United States"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=China&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 215,
                     "value" : "China",
                     "label" : "China"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=India&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 213,
                     "value" : "India",
                     "label" : "India"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Brazil",
                     "value" : "Brazil",
                     "hits" : 190
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=Brazil&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=Great+Britain&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Great Britain",
                     "hits" : 169,
                     "value" : "Great Britain"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=Italy&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 166,
                     "value" : "Italy",
                     "label" : "Italy"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=France&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 106,
                     "value" : "France",
                     "label" : "France"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Germany",
                     "hits" : 102,
                     "value" : "Germany"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=Germany&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 96,
                     "value" : "Japan",
                     "label" : "Japan"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=Japan&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 90,
                     "value" : "Vietnam",
                     "label" : "Vietnam"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_geo_ssim%5D%5B%5D=Vietnam&q=&search_field=all_fields"
                  }
               }
            ],
            "label" : "Region"
         },
         "id" : "subject_geo_ssim",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/subject_geo_ssim.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         }
      },
      {
         "type" : "facet",
         "id" : "subject_era_ssim",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/subject_era_ssim.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "attributes" : {
            "items" : [
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=20th+century&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "20th century",
                     "hits" : 458,
                     "label" : "20th century"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=19th+century&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "19th century",
                     "value" : "19th century",
                     "hits" : 159
                  }
               },
               {
                  "attributes" : {
                     "value" : "21st century",
                     "hits" : 111,
                     "label" : "21st century"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=21st+century&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "18th century",
                     "hits" : 41,
                     "value" : "18th century"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=18th+century&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 35,
                     "value" : "Civil War, 1861-1865",
                     "label" : "Civil War, 1861-1865"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=Civil+War%2C+1861-1865&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=17th+century&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "17th century",
                     "value" : "17th century",
                     "hits" : 29
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=2001-&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "2001-",
                     "value" : "2001-",
                     "hits" : 29
                  }
               },
               {
                  "attributes" : {
                     "hits" : 26,
                     "value" : "16th century",
                     "label" : "16th century"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=16th+century&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "value" : "1989-",
                     "hits" : 22,
                     "label" : "1989-"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=1989-&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 21,
                     "value" : "1991-",
                     "label" : "1991-"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bsubject_era_ssim%5D%5B%5D=1991-&q=&search_field=all_fields"
                  }
               }
            ],
            "label" : "Era"
         }
      },
      {
         "type" : "facet",
         "id" : "example_pivot_field",
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/example_pivot_field.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "attributes" : {
            "label" : "Pivot Field",
            "items" : [
               {
                  "attributes" : {
                     "hits" : 9628,
                     "value" : "Book",
                     "label" : "Book"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Book&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Microfilm",
                     "value" : "Microfilm",
                     "hits" : 105
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Microfilm&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "value" : "Kit",
                     "hits" : 84,
                     "label" : "Kit"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Kit&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 25,
                     "value" : "Electronic",
                     "label" : "Electronic"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Electronic&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "hits" : 10,
                     "value" : "eBook",
                     "label" : "eBook"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=eBook&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Manuscript",
                     "hits" : 6,
                     "value" : "Manuscript"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Manuscript&q=&search_field=all_fields"
                  }
               },
               {
                  "attributes" : {
                     "label" : "Software",
                     "value" : "Software",
                     "hits" : 6
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Software&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=Unknown&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "Unknown",
                     "hits" : 5,
                     "value" : "Unknown"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=SoundDisc&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "label" : "SoundDisc",
                     "hits" : 2,
                     "value" : "SoundDisc"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_pivot_field%5D%5B%5D=VideoDisc&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "value" : "VideoDisc",
                     "hits" : 2,
                     "label" : "VideoDisc"
                  }
               }
            ]
         }
      },
      {
         "links" : {
            "self" : "http://demo.projectblacklight.org/catalog/facet/example_query_facet_field.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "id" : "example_query_facet_field",
         "attributes" : {
            "label" : "Publish Date",
            "items" : [
               {
                  "attributes" : {
                     "value" : "years_10",
                     "hits" : 1404,
                     "label" : "within 10 Years"
                  },
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_query_facet_field%5D%5B%5D=years_10&q=&search_field=all_fields"
                  }
               },
               {
                  "links" : {
                     "self" : "http://demo.projectblacklight.org/.json?f%5Bexample_query_facet_field%5D%5B%5D=years_25&q=&search_field=all_fields"
                  },
                  "attributes" : {
                     "hits" : 7747,
                     "value" : "years_25",
                     "label" : "within 25 Years"
                  }
               }
            ]
         },
         "type" : "facet"
      },
      {
         "id" : "all_fields",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=all_fields&utf8=%E2%9C%93"
         },
         "attributes" : {
            "label" : "All fields"
         },
         "type" : "search_field"
      },
      {
         "attributes" : {
            "label" : "Title"
         },
         "id" : "title",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=title&utf8=%E2%9C%93"
         },
         "type" : "search_field"
      },
      {
         "attributes" : {
            "label" : "Author"
         },
         "id" : "author",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=author&utf8=%E2%9C%93"
         },
         "type" : "search_field"
      },
      {
         "type" : "search_field",
         "attributes" : {
            "label" : "Subject"
         },
         "id" : "subject",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=subject&utf8=%E2%9C%93"
         }
      },
      {
         "id" : "score desc, pub_date_si desc, title_si asc",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=all_fields&sort=score+desc%2C+pub_date_si+desc%2C+title_si+asc&utf8=%E2%9C%93"
         },
         "attributes" : {
            "label" : "relevance"
         },
         "type" : "sort"
      },
      {
         "type" : "sort",
         "attributes" : {
            "label" : "year"
         },
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=all_fields&sort=pub_date_si+desc%2C+title_si+asc&utf8=%E2%9C%93"
         },
         "id" : "pub_date_si desc, title_si asc"
      },
      {
         "attributes" : {
            "label" : "author"
         },
         "id" : "author_si asc, title_si asc",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=all_fields&sort=author_si+asc%2C+title_si+asc&utf8=%E2%9C%93"
         },
         "type" : "sort"
      },
      {
         "type" : "sort",
         "id" : "title_si asc, pub_date_si desc",
         "links" : {
            "self" : "http://demo.projectblacklight.org/.json?q=&search_field=all_fields&sort=title_si+asc%2C+pub_date_si+desc&utf8=%E2%9C%93"
         },
         "attributes" : {
            "label" : "title"
         }
      }
   ],
   "links" : {
      "self" : "http://demo.projectblacklight.org/.json?q=&search_field=all_fields&utf8=%E2%9C%93",
      "next" : "http://demo.projectblacklight.org/.json?page=2&q=&search_field=all_fields&utf8=%E2%9C%93",
      "last" : "http://demo.projectblacklight.org/.json?page=988&q=&search_field=all_fields&utf8=%E2%9C%93"
   }
}

Example single record: http://demo.projectblacklight.org/catalog/2009002583.json Response:

{
   "links" : {
      "self" : "http://demo.projectblacklight.org/catalog/2009002583"
   },
   "data" : {
      "id" : "2009002583",
      "type" : [
         "Book"
      ],
      "attributes" : {
         "title_tsim" : {
            "attributes" : {
               "value" : "Maine /",
               "label" : "Title"
            },
            "type" : "document_value",
            "id" : "http://demo.projectblacklight.org/catalog/2009002583#title_tsim"
         },
         "language_ssim" : {
            "id" : "http://demo.projectblacklight.org/catalog/2009002583#language_ssim",
            "type" : "document_value",
            "attributes" : {
               "label" : "Language",
               "value" : "English"
            }
         },
         "author_tsim" : {
            "type" : "document_value",
            "id" : "http://demo.projectblacklight.org/catalog/2009002583#author_tsim",
            "attributes" : {
               "value" : "Dornfeld, Margaret.",
               "label" : "Author"
            }
         },
         "format" : {
            "attributes" : {
               "label" : "Format",
               "value" : "Book"
            },
            "type" : "document_value",
            "id" : "http://demo.projectblacklight.org/catalog/2009002583#format"
         }
      }
   }
}
Clone this wiki locally