> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Records

This is the API that is used for searching. This call takes advantage of the Netography Query Language via the search parameter.

<Note>
  External Documentation

  To learn more, visit the [Netography documentation](https://docs.netography.com/api-reference/netography-apis/raw-records-search#post-api-v1-search-context).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                        |
  | --------- | ------------------------------------------------------------------------------------------------------------------ |
  | Context   | Context of the Search Request.                                                                                     |
  | End       | When the search should end. Timestamp, 0 for now or negative number of seconds to look back. <br />For example: 0. |
  | From      | Used in pagination. Combination of from + size.                                                                    |
  | Size      | Number of results to return. Default to 20.                                                                        |
  | Start     | When the search should begin. Timestamp or negative number of seconds to look back.<br />For example: -7200.       |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                                                      |
  | --------- | -------------------------------------------------------------------------------- |
  | Include   | Array of fields you want returned as part of the records. Default is ALL fields. |
  | Search    | NQL search filter string.                                                        |
</div>

## Example Output

```json theme={"dark"}
{
	"meta": {
		"code": 200,
		"count": 1
	},
	"data": [
		{
			"alerttype": "start",
			"description": "Srcip reputation is a known phisher",
			"severity": "medium",
			"start": 1618246683,
			"summary": "Knownphisher alert has started to dstip 10.0.0.1",
			"tags": [
				"aws"
			],
			"timestamp": 1618246748,
			"track_by": [
				"srcip",
				"dstip"
			]
		},
		{
			"bits": 624,
			"dstip": "192.168.2.1",
			"duration": 140006,
			"end": 1618433146,
			"flowsrcip": "172.16.1.1",
			"inputname": "ge-0/0/0.0",
			"output": 0,
			"protocol": "tcp",
			"srcip": "10.0.0.1",
			"start": 1618423146,
			"tags": [
				"edge"
			],
			"timestamp": 1618433146,
			"tcpflagsint": 16
		}
	]
}
```

## Workflow Library Example

[Search Records with Netography and Send Results Via Email](https://library.blinkops.com/workflows/search-records-with-netography-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/search-records-with-netography-and-send-results-via-email/canvas" />
</div>
