---
agentTools:
  projectIndex: https://deepnftvalue.readme.io/llms.txt
---

# Tokens

Returns a list of tokens for a specific collection. Result includes token metadata like `attributes`, `owner` and `top_bid`.

Possible `sort` strings to order result set:

[block:parameters]
{
  "data": {
    "h-0": "Value",
    "h-1": "Description",
    "0-0": "`highest_valuation`",
    "1-0": "`lowest_price`",
    "2-0": "`highest_price`",
    "3-0": "`recently_listed`",
    "5-0": "`highest_sale`",
    "6-0": "`recently_sold`",
    "7-0": "`top_bid`",
    "8-0": "`recently_bid`",
    "9-0": "`token_id`",
    "0-1": "Highest valued tokens first.",
    "1-1": "Tokens with lowest listing price first.",
    "2-1": "Tokens with highest listing price first.",
    "3-1": "Newest listings first.",
    "5-1": "Tokens that sold for highest price first. Filtered by **last sale only**.",
    "6-1": "Latest sales first.",
    "7-1": "Tokens with highest bid first.",
    "8-1": "Tokens received latest bids first.",
    "9-1": "Order by token id (default).",
    "4-0": "`lowest_sale`",
    "4-1": "Tokens that sold for lowest price first. Filtered by **last sale only**."
  },
  "cols": 2,
  "rows": 10
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "DeepNFTValue API",
    "version": "1.1",
    "description": "API for DeepNFTValue."
  },
  "paths": {
    "/tokens/{collection_slug}": {
      "get": {
        "operationId": "Tokens",
        "description": "Returns a list of tokens for a specific collection. Result includes token metadata like `attributes`, `owner` and `top_bid`.",
        "summary": "Tokens",
        "parameters": [
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Which field to use when ordering the results.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page. Default: `20`. Maximum: `1000`.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results. Use in combination with `limit` to paginate results. Default: `0`",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "path",
            "name": "collection_slug",
            "schema": {
              "type": "string"
            },
            "description": "Filter to a specific collection slug.",
            "required": true,
            "examples": {
              "CryptoPunks": {
                "value": "cryptopunks"
              }
            }
          },
          {
            "in": "query",
            "name": "token_ids",
            "schema": {
              "type": "string"
            },
            "description": "Filter to specific token ids. Enter a comma separated list of ids.",
            "examples": {
              "Tokens#1,#2And#3": {
                "value": "1,2,3",
                "summary": "Tokens #1, #2 and #3"
              }
            }
          },
          {
            "in": "query",
            "name": "attributes",
            "schema": {
              "type": "string"
            },
            "description": "Filter to one or more specific attribute(s). Enter a comma separated list of attributes. Examples: `big shades`, `eyes:blue beams,fur:pink`"
          },
          {
            "in": "query",
            "name": "valuation_min",
            "schema": {
              "type": "number",
              "format": "float"
            },
            "description": "Filter to minimum valuation.",
            "examples": {
              "80.0": {
                "value": 80
              }
            }
          },
          {
            "in": "query",
            "name": "valuation_max",
            "schema": {
              "type": "number",
              "format": "float"
            },
            "description": "Filter to maximum valuation.",
            "examples": {
              "120.0": {
                "value": 120
              }
            }
          },
          {
            "in": "query",
            "name": "isFlagged",
            "schema": {
              "type": "boolean"
            },
            "description": "Filter flagged tokens. If `False`, exclude tokens flagged for suspicious activity."
          }
        ],
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "tokenAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedNftPublicList"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NftPublic": {
        "type": "object",
        "properties": {
          "token_id": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": -2147483648
          },
          "collection": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NftPublic_Collection"
              }
            ],
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "maxLength": 255
          },
          "is_flagged": {
            "type": "boolean",
            "readOnly": true,
            "title": "Reported for suspicious activity."
          },
          "valuation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NftPublic_Valuation"
              }
            ],
            "readOnly": true
          },
          "image": {
            "type": "string",
            "readOnly": true
          },
          "image_previews": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          },
          "image_properties": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          }
        },
        "required": [
          "collection",
          "image",
          "is_flagged",
          "token_id",
          "valuation"
        ]
      },
      "NftPublic_Collection": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "maxLength": 255
          },
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "contract": {
            "type": "string",
            "readOnly": true
          }
        },
        "required": [
          "contract",
          "name",
          "slug"
        ]
      },
      "NftPublic_Valuation": {
        "type": "object",
        "properties": {
          "price": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,157}(?:\\.\\d{0,3})?$"
          },
          "currency": {
            "type": "string",
            "readOnly": true,
            "title": "The currency symbol, e.g. 'ETH'"
          },
          "date": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "currency",
          "date",
          "price"
        ]
      },
      "PaginatedNftPublicList": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Total number of results. If `limit` (page size) exceeded, results of this request will only contain a subset. Use `next` to request next result set until you reach full `count`.",
            "example": 1
          },
          "next": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Use this absolute url to request next result set. Alternatively, adjust `offset` (and `limit`) parameters in your request code.",
            "example": null
          },
          "previous": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Use this absolute url to request previous result set.",
            "example": null
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NftPublic"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "tokenAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Token-based authentication with required prefix \"Token\""
      }
    }
  },
  "servers": [
    {
      "url": "https://api.deepnftvalue.com/v1",
      "description": "v1"
    },
    {
      "url": "https://api.deepnftvalue.com/v2",
      "description": "v2"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 33,
      "2": 164,
      "3": 205,
      "4": 156,
      "5": 109,
      "6": 31,
      "7": 0,
      "8": 41,
      "9": 181,
      "10": 177,
      "11": 220
    }
  }
}
```