# deepsearchjson: Search in All Keys in a JSON Object

> deepsearchjson (Search in All Keys in a JSON Object) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/deepsearchjson, 2 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Deep searches in all keys of a given JSON object. The result is an array of key/value pairs the matches the criteria.

- Group: Data & JSON
- Endpoint: `POST https://api.1001fx.com/data/deepsearchjson`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 2 credits per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/deepsearchjson

## Parameters

- `json` (object, optional) – JSON Input: Object to search in
- `jsonString` (string, optional) – Stringified JSON Input: Stringified JSON to search in
- `searchString` (string, required) – Search String: String to search for
- `scope` (enum, optional, one of `keys`, `values`, `all`, default `keys`) – Scope: Scope to search in - 'keys' is default
- `comparison` (enum, required, one of `equal`, `equal_case_insensitive`, `startswith`, `endswith`, `contains`, default `equal`) – Comparison: Comparison method

## Example: Search keys (equal)

```bash
curl -X POST 'https://api.1001fx.com/data/deepsearchjson' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"json":{"foundation":"Mozilla","model":"box","week":45,"transport":"car","month":7,"car":"BMW"},"comparison":"equal","searchString":"car","scope":"keys"}'
```

Answer (HTTP 200):

```json
{
  "result": {
    "data": [
      {
        "car": "BMW"
      }
    ],
    "count": 1
  }
}
```
