Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does NSDL.org use the API to implement its search pages?

API implement pages search
0
Posted

How does NSDL.org use the API to implement its search pages?

0

The search and browse pages at NSDL.org are implemented using the Search API. The UI provides keyword search as well as options to search and filter by Grade Level, Resource Type, Subject, and Pathway. For example, see this search for ‘ocean’ with ‘Grade Level: Elementary School’ selected. To see the full API request that is used for a given search in the NSDL.org UI, first perform a search like you normally would and then add the http param &showquery=1 to the url in your browser, for example: http://nsdl.org/search/index.php?q=ocean&submitButton=Go&n=10&educationLevel%5B%5D=Elementary+School&showquery=1 The q argument in the API request contains the search query, for example from the above: (((ocean) OR stems:(ocean) OR title:(ocean) OR titlestems:(ocean) OR description:(ocean) OR descriptionstems:(ocean))) AND (/key//nsdl_dc/educationLevel:(“Elementary School”)) AND xmlFormat:nsdl_dc Here the term ‘ocean’ is expanded to search across the default, stems, title, titlestems, descriptio

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123