---
title: "DocMorris API: Suggest | Perceptlayer"
description: "Suggest from DocMorris as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/docmorris/suggest
---

[APIs](https://perceptlayer.com/apis) / [DocMorris](https://perceptlayer.com/apis/docmorris) / Suggest

# DocMorris: Suggest

Suggest from DocMorris as JSON. 1 credit per successful call.

GET `/v1/docmorris/suggest`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 120 characters |
| `hitsPerPage` | integer | Optional | Any |

## Example request

DocMorris

GET /v1/docmorris/suggest?query=ibu 

```
{
  "success": true,
  "data": {
    "query": "ibu",
    "items": [
      {
        "query": "ibuprofen 400",
        "popularity": 40790,
        "nb_words": 2,
        "exact_nb_hits": 713
      },
      {
        "query": "ibuprofen",
        "popularity": 15475,
        "nb_words": 1,
        "exact_nb_hits": 1600
      },
      {
        "query": "ibu 400",
        "popularity": 3718,
        "nb_words": 2,
        "exact_nb_hits": 415
      }
    ]
  },
  "meta": {}
}
```

200 OK JSON X-Credits-Used: 1

Recorded 30 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/docmorris?try=suggest#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.items` has these 4 fields, read from a recorded call that returned 20 items. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `query` | string |
| `popularity` | integer |
| `nb_words` | integer |
| `exact_nb_hits` | integer |
