Fredhopper Query and Response Samples

The following section shows a typical query request and response transaction via the REST API with the response returned compressed and in a CSV and JSON-formats as per our best practices.

Other examples can be provided by your Technical Consultant upon request.

Product Listing Page JSON Request

Example JSON Request
wget --header="Accept: application/json" --header="Accept-Encoding: gzip" --user=demo --password=testing https://query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query?fh_location=//catalog01/en_GB/categories<{catalog01_18661}/categories<{catalog01_18661_17627}&channel=Desktop&date_time=20201117T104534

Response Example

Product Listing Page XML Request

Example XML Request
wget --header="Accept-Encoding: gzip" --user=demo --password=testing https://query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query?fh_location=//catalog01/en_GB/categories<{catalog01_18661}/categories<{catalog01_18661_17627}&channel=Desktop&date_time=20201117T104534

Response Example

Search Product Listing Page JSON Request

Example JSON Request
wget --header="Accept: application/json" --header="Accept-Encoding: gzip" --user=demo --password=testing https://query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query?fh_location=//catalog01/en_GB/$s=red\u0020dress&channel=Desktop&date_time=20201117T104534

Response Example

Search Product Listing Page XML Request

Example XML Request
wget --header="Accept-Encoding: gzip" --user=demo --password=testing https://query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query?fh_location=//catalog01/en_GB/$s=red\u0020dress&channel=Desktop&date_time=20201117T104534

Response Example

Product Detail Page

JSON Request

wget --header="Accept: application/json" --header="Accept-Encoding: gzip" --user=demo --password=testing https://query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query?fh_location=//catalog01/en_GB/$s=red\u0020dress&fh_secondid=394010102803&date_time=20201117T104534&channel=Desktop

Response Example

XML Request

Example XML Request
wget --header="Accept-Encoding: gzip" --user=demo --password=testing https://query.published.live1.fas.eu1.fredhopperservices.com/fredhopper/query?fh_location=//catalog01/en_GB/$s=red\u0020dress&fh_secondid=394010102803&date_time=20201117T104534&channel=Desktop

Response Example

Last updated