---
title: "Flexible search by regex or glob"
method: GET
path: "/{method}/{key}/{value}"
tags: ["Flex search"]
---

# Flexible search by regex or glob

`GET /{method}/{key}/{value}`

## Request

- Base URL: `https://api.dnsdb.info/dnsdb/v2`
- URL: `https://api.dnsdb.info/dnsdb/v2/{method}/{key}/{value}`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/domaintools/apis/dnsdb/docs/:method/:key/:value/get.ts> (a function with typed inputs; its response is checked against the schema)

Flexible search adds ways to search DNSDB by regular expressions and globs (aka wildcarding).

## Response `200`

ok

## Other responses

- `400`: Unable to parse request.
- `401`: Invalid or missing API key.
- `403`: Authenticated but not authorized for this resource.
- `429`: Rate limit exceeded.
- `502`: Upstream server error.

---

[API](https://skmtc.dev/domaintools/apis/dnsdb.md) - [All operations](https://skmtc.dev/domaintools/apis/dnsdb/llms.txt) - [OpenAPI document](https://skmtc.dev/domaintools/apis/dnsdb/revisions/1f5e4f955036?raw)
