# Fetch A Metric In curl

This recipe fetches one full metric export with `curl` and filters it with `jq`. Use this recipe when you want a fast shell-based workflow without writing a full script.

## Example

```bash
curl -s https://api.growthepie.com/v1/export/txcount.json \
  | jq '[.[] | select(.origin_key == "arbitrum")] | .[0:5]'
```

## What This Does

* Downloads the public `txcount` export
* Filters rows to one `origin_key`
* Prints the first five matching rows

## Related Pages

* [Endpoint: export/{metric}.json](/api-reference/api/export-metric-json.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.growthepie.com/recipes-tutorials/recipes/fetch-a-metric-in-curl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
