Skip to content

Instantly share code, notes, and snippets.

@qoli
Created October 25, 2022 01:54
Show Gist options
  • Save qoli/8f5f2392c94f59ffffa7cefa03c12a65 to your computer and use it in GitHub Desktop.
Save qoli/8f5f2392c94f59ffffa7cefa03c12a65 to your computer and use it in GitHub Desktop.
## Request (5)
curl -X "POST" "https://opensea.io/__api/graphql/" \
-H 'x-signed-query: 4c578ad5abb64c3806c94e11edd134d718c0be73d27d82d7dd9b2a1644144d39' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Cookie: __cf_bm=hH6R_WQgUjOT9_FpqlX5bCvn42ZCRQqXDlLkSsaqSCI-1666661256-0-ATInQGufe13+DxE4KEEo4YwRpn9yM4m3VX0zlzwhHKHEgLka+dYGFDv1CrwyuaFP8QWa8JdJ6QAYyj7nPdznYRQ=' \
-d $'{
"id": "RankingsPageTopPaginationQuery",
"query": "query RankingsPageTopPaginationQuery(\\n $chain: [ChainScalar!]\\n $count: Int\\n $createdAfter: DateTime\\n $cursor: String\\n $includeAllTimeStats: Boolean!\\n $includeOneDayStats: Boolean!\\n $includeOneHourStats: Boolean!\\n $includeSevenDayStats: Boolean!\\n $includeSixHourStats: Boolean!\\n $includeThirtyDayStats: Boolean!\\n $parents: [CollectionSlug!]\\n $sortBy: CollectionSort\\n) {\\n ...RankingsPageTop_data\\n}\\n\\nfragment RankingsPageTop_data on Query {\\n rankings(after: $cursor, chains: $chain, first: $count, sortBy: $sortBy, parents: $parents, createdAfter: $createdAfter) {\\n edges {\\n node {\\n createdDate\\n name\\n slug\\n logo\\n isVerified\\n relayId\\n ...StatsV2CollectionCell_collection\\n ...collection_url\\n nativePaymentAsset {\\n ...StatsV2TablePrice_logo\\n id\\n }\\n statsV2 {\\n floorPrice {\\n unit\\n eth\\n }\\n numOwners\\n totalSupply\\n totalQuantity\\n totalListed\\n }\\n statsV2 @include(if: $includeOneHourStats) {\\n oneHourSales\\n oneHourChange\\n oneHourVolume {\\n unit\\n eth\\n }\\n }\\n statsV2 @include(if: $includeSixHourStats) {\\n sixHourSales\\n sixHourChange\\n sixHourVolume {\\n unit\\n eth\\n }\\n }\\n statsV2 @include(if: $includeOneDayStats) {\\n oneDaySales\\n oneDayChange\\n oneDayVolume {\\n unit\\n eth\\n }\\n }\\n statsV2 @include(if: $includeSevenDayStats) {\\n sevenDaySales\\n sevenDayChange\\n sevenDayVolume {\\n unit\\n eth\\n }\\n }\\n statsV2 @include(if: $includeThirtyDayStats) {\\n thirtyDaySales\\n thirtyDayChange\\n thirtyDayVolume {\\n unit\\n eth\\n }\\n }\\n statsV2 @include(if: $includeAllTimeStats) {\\n totalSales\\n totalVolume {\\n unit\\n eth\\n }\\n }\\n id\\n __typename\\n }\\n cursor\\n }\\n pageInfo {\\n endCursor\\n hasNextPage\\n }\\n }\\n}\\n\\nfragment StatsV2CollectionCell_collection on CollectionType {\\n name\\n imageUrl\\n isVerified\\n slug\\n}\\n\\nfragment StatsV2TablePrice_logo on PaymentAssetType {\\n symbol\\n}\\n\\nfragment collection_url on CollectionType {\\n slug\\n isCategory\\n}\\n",
"variables": {
"chain": null,
"parents": null,
"includeOneDayStats": true,
"count": 900,
"includeAllTimeStats": false,
"cursor": "YXJyYXljb25uZWN0aW9uOjk5",
"includeSevenDayStats": false,
"includeOneHourStats": false,
"includeSixHourStats": false,
"createdAfter": null,
"includeThirtyDayStats": false,
"sortBy": "ONE_DAY_VOLUME"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment