Docs
API 1.39
Status
Fields

network

The `network` option of an extract field.

Reads the value from a captured JSON network response instead of the page.

Type: object

#Keys

KeyTypeDescription
network.jsonstringA JSONPath into the response body.
network.methodstringThe HTTP method the response's request must have.
network.urlstringA glob the response URL must match.

#Example

{
  "offers": {
    "network": {
      "url": "**/api/offers*",
      "json": "$.items[*].price"
    },
    "type": "list"
  }
}

From the contract fixture network-locator, a program the test suite validates.

Was this page helpful?