# Dry-run a parser | Parsium Docs

Source: https://docs.parseium.com/api/operations/testparser/

# Dry-run a parser

POST

/v1/parsers/test

Run an inline v2 config or owned stored parser through the production extraction path. Supply exactly one of `config`/`parser_id` and exactly one of `url`/`body`. URL tests bill scrape credits and have an additional 30/minute cap; body tests (maximum 2 MB) are free. Nothing is stored.

## Authorizations

 Section titled “Authorizations ”

- **[apiKeyHeader](/api/#apikeyheader)**
- **[apiKeyQuery](/api/#apikeyquery)**

## Request Body
required

 Section titled “Request Body
required
 ”

 Select media type application/json

 object

 config

A v2 flat parser config. See the [Parsers guide](/guides/parsers/) for HTML, JSON, API, regex, list mode, field typing, and transforms.

 object

 name

 string

 type

required

 string

Allowed values: html json api regex

 fields

required

 Array<object>

 >= 1 items <= 64 items

 object

 key

additional properties

any

 item_selector

 string

 item_selector_type

 string

Allowed values: css xpath

 item_path

 string

 json_source

 object

 key

additional properties

any

 key

additional properties

any

 parser_id

 string

 url

 string format: uri

 body

 string

 scrape_config

Fetch override. Credit price depends on browser and proxy settings.

 object

 useBrowser

 boolean

 waitSeconds

 number

 waitForBrowser

 string

 proxy

`default`, `highquality`, `hardcore`, `premium`, or `premium:<country code>`.

 string

## Responses

 Section titled “
Responses
”

### 200

 Section titled “200 ”

Compact extraction diagnostics.

 Select media type application/json

 object

 ok

 boolean

 fetch

 object

 key

additional properties

any

 items_matched

 integer

 fields

 object

 key

additional properties

 object

 warnings

 Array<string>

 data_sample

 credits_used

 integer

### 400

 Section titled “400 ”

Malformed request.

 Select media type application/json

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

### 401

 Section titled “401 ”

Missing or invalid API key.

 Select media type application/json

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

### 402

 Section titled “402 ”

Insufficient unreserved credits.

 Select media type application/json

 object

 error

required

 string

##### Example

```
insufficient credits
```

 required

required

 integer

 available

required

 integer

### 404

 Section titled “404 ”

Resource missing or not owned by this account.

 Select media type application/json

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

### 422

 Section titled “422 ”

Validation failed.

 Select media type application/json

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

### 429

 Section titled “429 ”

Request, concurrency, or plan limit exceeded.

 Select media type application/json

 One of:

- [object](#tab-panel-12)
- [object](#tab-panel-13)

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

 object

 error

required

 string

##### Example

```
pending limit
```

 pending

required

 integer

 limit

required

 integer

 accepted

required

 integer

0

#### Headers

 Section titled “Headers ”

 Retry-After

 integer

Seconds to wait when supplied.
