> For the complete documentation index, see [llms.txt](https://fredhopper.gitbook.io/product-discovery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredhopper.gitbook.io/product-discovery/building-the-front-end-experience-with-fhr/understanding-the-fhr-query-response/fredhopper-query-and-response-samples.md).

# Query and Response Examples

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.

## Navigation

#### Product Listing Page JSON Request

{% code title="Example JSON Request" overflow="wrap" fullWidth="false" %}

```
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
```

{% endcode %}

#### Response Example

{% file src="/files/p1CowdFyFOszre63qxkq" %}

#### Product Listing Page XML Request

{% code title="Example XML Request" overflow="wrap" fullWidth="false" %}

```
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
```

{% endcode %}

#### Response Example

{% file src="/files/H6gx6F80bgc1skihid3H" %}

## Search

#### Search Product Listing Page JSON Request

{% code title="Example JSON Request" overflow="wrap" fullWidth="false" %}

```
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
```

{% endcode %}

#### Response Example

{% file src="/files/BcvG9KTDfMBoI9kqFbPz" %}

#### Search Product Listing Page XML Request

{% code title="Example XML Request" overflow="wrap" fullWidth="false" %}

```
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
```

{% endcode %}

#### Response Example

{% file src="/files/vFJo18cfiG63Vn5zeRgI" %}

## Product Detail Page

#### JSON Request

{% code overflow="wrap" fullWidth="false" %}

```
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
```

{% endcode %}

#### Response Example

{% file src="/files/Pcf5PC1IpXJ1jU2Xwjdv" %}

#### XML Request

{% code title="Example XML Request" overflow="wrap" fullWidth="false" %}

```
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
```

{% endcode %}

#### Response Example

{% file src="/files/Jmo6BPaDTdpaC4cyGUb0" %}
