Skip to content
Scrappa Get API key
DocMorris API 1 credit / request

DocMorris Suggest API Documentation

GET https://scrappa.co/api/docmorris/suggest

Read DocMorris autocomplete suggestions with popularity and exact hit counts. One credit per successful request.

DocMorris Suggest API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/docmorris/suggest
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "items": [
            {
                "query": "ibuprofen",
                "popularity": 88,
                "exact_nb_hits": 67
            }
        ],
        "query": "ibu"
    },
    "meta": {
        "billable": true
    },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

query string Required

Partial search term.

Example value coffee shops
hitsPerPage string Optional

Suggestions to return, 1 to 100, default 20.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "items": [
            {
                "query": "ibuprofen",
                "popularity": 88,
                "exact_nb_hits": 67
            }
        ],
        "query": "ibu"
    },
    "meta": {
        "billable": true
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

The search text failed validation. No credit is charged.

503

Upstream Unavailable

The public source is temporarily unavailable. No credit is charged.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.