LogoLogo
Fredhopper Integration Guide
Fredhopper Integration Guide
  • Fredhopper Integration Guide
  • Fredhopper Integration Guide
    • Data Integration
      • Item Data Structure
        • Full Feeds
          • Full Feed JSON Data Format
          • Full Feed CSV Data Format
        • Incremental Feeds
          • Incremental Feed JSON Data Format
          • Incremental Feed CSV Data Format
        • Full and Incremental Feed Uploads
      • Suggest Service Data Feeds
        • Suggest Service Data Format
        • Suggest Data Uploads
      • Custom Data Feeds
        • Custom Data Format
        • Custom Data Uploads
        • Services API Fail Safe Features
    • Front-End Integration
      • Understanding the Fredhopper Query API
      • Using the Fredhopper Query API
      • Fredhopper Query Language
      • Redirects - REST vs. SOAP
      • Query API Fail Safe Features
      • Integration Best Practices
      • Suggest
      • Definitions
      • Fredhopper Query and Response Samples
    • Glossary
Powered by GitBook

Copyright @ 2024 Crownpeak Technology, Inc. All rights reserved.

On this page
  • Navigation
  • Search
  • Product Detail Page
  1. Fredhopper Integration Guide
  2. Front-End Integration

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.

PreviousDefinitionsNextGlossary

Last updated 8 months ago

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

Navigation

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

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

300KB
ResponseNavPLP.json
159KB
ResponseNavPLP.xml
311KB
ResponseSearchPLP.json
123KB
ResponseSearchPLP.xml
90KB
ResponsePDP.json
45KB
ResponsePDP.xml