> For the complete documentation index, see [llms.txt](https://docs.thehemera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thehemera.com/hemera-indexer/use-cases/opensea/run-and-query.md).

# Run & Query

## How to Run

You can start the export\_opensea\_job by adding the following arguments:

```shell
-E OPEN_SEA
```

or

```shell
-O AddressOpenseaTransaction,OpenseaOrder
```

## Public API

### GET /v1/aci//opensea/profile

Get currently address level OpenSea related features

```json
{
  "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
  "buy_txn_count": 27,
  "sell_txn_count": 11,
  "swap_txn_count": 0,
  "buy_opensea_order_count": 27,
  "sell_opensea_order_count": 11,
  "swap_opensea_order_count": 0,
  "buy_volume_usd": 18678.386373040692,
  "sell_volume_usd": 30148.607791721905,
  "create_time": "2024-09-05T04:53:04+00:00",
  "update_time": "2024-09-05T09:46:10+00:00",
  "first_transaction_hash": "0xcdd12932129e756aebbc5e88310c9e60294f40e212d61ef3b48c9dc594576a59",
  "first_block_timestamp": "2024-01-01T05:54:35+00:00",
  "txn_count": 36,
  "opensea_order_count": 36,
  "volume_usd": 48826.9941647626,
  "latest_transaction_hash": "0x036327d1172b02d002bf34d6f5288e9d57db9a34d78e77247b34b367df7b3d1b",
  "latest_block_timestamp": "2024-09-09T01:35:47+00:00"
}
```

### GET /v1/aci/{address}/opensea/transactions

Get Opensea address level opensea transactions

Response:

```json
{
  "data": [
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x036327d1172b02d002bf34d6f5288e9d57db9a34d78e77247b34b367df7b3d1b",
      "block_number": 20709805,
      "block_timestamp": "2024-09-09T01:35:47+00:00",
      "order_hash": "0x8b58fc15c3d5cf31b015e1d73b9ced4ac9ee5a39d6515a940e044c8a3c0688f6",
      "protocol_version": "1.5",
      "zone": "0x004c00500000ad104d7dbd00e3ae0a5c00560c00",
      "transaction_type": "sell",
      "volume_usd": 69.25004968606547,
      "items": [
        {
          "token_address": "0xa98cc213495b178bc0aa690223325bbed2dbbc71",
          "token_name": "Block Queens",
          "token_type": "ERC721",
          "token_symbol": "BQ",
          "amount": 1,
          "identifier": 171
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0xa57e2dca011289f67e116114d3dff6fdfdec8a44a9efc11fbc99a65bd06eac40",
      "block_number": 20705832,
      "block_timestamp": "2024-09-08T12:16:35+00:00",
      "order_hash": "0x999a648aa281851978108584e107be465bdbd0cb1182bd3e1ed2ddd3be5ad99e",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 36.27089092218665,
      "items": [
        {
          "token_address": "0x46ac8540d698167fcbb9e846511beb8cf8af9bd8",
          "token_name": "Quantum Art",
          "token_type": "ERC721",
          "token_symbol": "QART",
          "amount": 1,
          "identifier": 580018
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 7.9e-05,
          "identifier": null
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x43082a4afbb94326e1ad86c4462002adeb2225babf1d452ea81c77f0134b1d72",
      "block_number": 20672934,
      "block_timestamp": "2024-09-03T22:06:47+00:00",
      "order_hash": "0x4b4fe235e4ef1930bcc9ca72e0ea51827176464af4cdc8e27ec52320afc78a2b",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 36.759912153924276,
      "items": [
        {
          "token_address": "0x46ac8540d698167fcbb9e846511beb8cf8af9bd8",
          "token_name": "Quantum Art",
          "token_type": "ERC721",
          "token_symbol": "QART",
          "amount": 1,
          "identifier": 320014
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 7.5e-05,
          "identifier": null
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x70bb3290333629cbdb0e907997104c2e2ed08dfbcb9dc5dccdab7a779246f1a3",
      "block_number": 20514912,
      "block_timestamp": "2024-08-12T20:26:23+00:00",
      "order_hash": "0x556c0f09ed315b38e698caf581a6955f17eb75421a12cebac44545f5afb2e841",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 40.66941051987043,
      "items": [
        {
          "token_address": "0x46ac8540d698167fcbb9e846511beb8cf8af9bd8",
          "token_name": "Quantum Art",
          "token_type": "ERC721",
          "token_symbol": "QART",
          "amount": 1,
          "identifier": 290041
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 7.5e-05,
          "identifier": null
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x1523e1661bdaddc8fad8003b287d02eca048c11c48e21539c6073023861206c6",
      "block_number": 20491691,
      "block_timestamp": "2024-08-09T14:38:35+00:00",
      "order_hash": "0x821b6ba99df5c3369d4817b4809266d60c00afba817411181fe24f33fbc41ced",
      "protocol_version": "1.5",
      "zone": "0x004c00500000ad104d7dbd00e3ae0a5c00560c00",
      "transaction_type": "sell",
      "volume_usd": 1040.5875659115932,
      "items": [
        {
          "token_address": "0x7a15b36cb834aea88553de69077d3777460d73ac",
          "token_name": "Feral File — Unsupervised",
          "token_type": "ERC721",
          "token_symbol": "FF009",
          "amount": 1,
          "identifier": 9654437293614983878447008954651574738102085915959744418992085055843510330616
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x4622bf1001760e6ce5b90b554b78cfb05627fe066db00fd2c95402ca5ce7efd6",
      "block_number": 20455408,
      "block_timestamp": "2024-08-04T13:11:35+00:00",
      "order_hash": "0xd62e0dbd232f7c242010edb456de9c85ae13caf7acd167374f26173926625347",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 50.59778781852618,
      "items": [
        {
          "token_address": "0xa98cc213495b178bc0aa690223325bbed2dbbc71",
          "token_name": "Block Queens",
          "token_type": "ERC721",
          "token_symbol": "BQ",
          "amount": 1,
          "identifier": 171
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 9.3e-05,
          "identifier": null
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 0.001209,
          "identifier": null
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0xe6eadba507c0d0afddadc89c76a400ecd1b578745dba6680e5633ad9981dabaf",
      "block_number": 20439335,
      "block_timestamp": "2024-08-02T07:20:47+00:00",
      "order_hash": "0x6518325945a9cba8aab18143087fd36dafb7a74ebf7bb066a071dc44925dc8c9",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 46.04946859100522,
      "items": [
        {
          "token_address": "0x46ac8540d698167fcbb9e846511beb8cf8af9bd8",
          "token_name": "Quantum Art",
          "token_type": "ERC721",
          "token_symbol": "QART",
          "amount": 1,
          "identifier": 360013
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 7.7e-05,
          "identifier": null
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x580f5e0774f5b387cab6ac704e10a2498e02f72998b0eb283f1be9c5a8d06eea",
      "block_number": 20379983,
      "block_timestamp": "2024-07-25T00:28:59+00:00",
      "order_hash": "0xe7b2d570a070f267a6aacf65c7b716e42fdb69cb0722f1b7430cf4846ddcb5dc",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 796.3328595622321,
      "items": [
        {
          "token_address": "0xedc3ad89f7b0963fe23d714b34185713706b815b",
          "token_name": "Project Godjira Generation 2",
          "token_type": "ERC721",
          "token_symbol": "PGG2",
          "amount": 1,
          "identifier": 100
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 0.0012555,
          "identifier": null
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0x20ec732997b0d15983eb77c3c5eb75eb835bea1eb6480a619f129b20e3cc69d2",
      "block_number": 20366523,
      "block_timestamp": "2024-07-23T03:24:23+00:00",
      "order_hash": "0xe5d45eeaa10bd035f899095389aa559ab4f2beaf099cbecfcdc63875862d76d4",
      "protocol_version": "1.5",
      "zone": "0x004c00500000ad104d7dbd00e3ae0a5c00560c00",
      "transaction_type": "sell",
      "volume_usd": 2074.9284452838433,
      "items": [
        {
          "token_address": "0x42069abfe407c60cf4ae4112bedead391dba1cdb",
          "token_name": "CryptoDickbutts S3",
          "token_type": "ERC721",
          "token_symbol": "CDB",
          "amount": 1,
          "identifier": 4171
        }
      ]
    },
    {
      "address": "0x6657e801c98c0ba77169e3d65642b9e930928a03",
      "transaction_hash": "0xce9d2b9fbdd2309325b9609e35286f9092273f1355c41194568f4cab7907d7fc",
      "block_number": 20348614,
      "block_timestamp": "2024-07-20T15:23:35+00:00",
      "order_hash": "0x9a8c57542a4d83728bf8b73f29eefe7a8197d2afb051a5de7d0cc76cba3a681b",
      "protocol_version": "1.6",
      "zone": "0x000056f7000000ece9003ca63978907a00ffd100",
      "transaction_type": "buy",
      "volume_usd": 699.4866481083809,
      "items": [
        {
          "token_address": "0x42069abfe407c60cf4ae4112bedead391dba1cdb",
          "token_name": "CryptoDickbutts S3",
          "token_type": "ERC721",
          "token_symbol": "CDB",
          "amount": 1,
          "identifier": 4171
        },
        {
          "token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "token_name": "Wrapped Ether",
          "token_type": "ERC20",
          "token_symbol": "WETH",
          "amount": 0.000994,
          "identifier": null
        }
      ]
    }
  ],
  "total": 38
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.thehemera.com/hemera-indexer/use-cases/opensea/run-and-query.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
