# Network capture

Reading the JSON a page receives from its own server while it loads, instead of reading what it draws.

A capture_response step waits for a request that matches a URL pattern and stores its JSON, or the part a JSONPath selects. It is the most reliable way to read data that a page renders from an API.

```
{
  "capture_response": {
    "url": "**/api/orders*",
    "method": "GET",
    "json": "$.items",
    "into": "vars.orders"
  }
}
```

## Related

- [API discovery](/product/api-discovery)
- [Turn a website into an API](/use-cases/website-to-api)
- [API discovery](/glossary/api-discovery)
- [Extract schema](/glossary/extract-schema)
