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

# /opensea/items/search

> Search and list the NFTs in an OpenSea collection, with status, trait and sort filters

**Price:** 1 credit

**💡 AI Hint:** Search and list the NFTs inside an OpenSea collection by its slug (e.g. 'boredapeyachtclub'). Filter by listing status (all, listed or not listed) and by traits (a mapping of trait type to accepted values), and sort by price (low to high / high to low) or rarity (most / least rare). Each item returns its chain, contract address and token id, name and image, rarity rank, last sale, best listing and best offer (in native, token and USD), owner, parent collection and traits.

**⚠️ Common errors:** 412: Collection not found



## OpenAPI

````yaml /openapi-filtered.json post /api/opensea/items/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/opensea/items/search:
    post:
      tags:
        - /opensea
      summary: /opensea/items/search
      description: >-
        Search and list the NFTs in an OpenSea collection, with status, trait
        and sort filters


        **Price:** 1 credit


        **💡 AI Hint:** Search and list the NFTs inside an OpenSea collection by
        its slug (e.g. 'boredapeyachtclub'). Filter by listing status (all,
        listed or not listed) and by traits (a mapping of trait type to accepted
        values), and sort by price (low to high / high to low) or rarity (most /
        least rare). Each item returns its chain, contract address and token id,
        name and image, rarity rank, last sale, best listing and best offer (in
        native, token and USD), owner, parent collection and traits.


        **⚠️ Common errors:** 412: Collection not found
      operationId: __api_opensea_items_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenseaItemsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OpenseaItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OpenseaItemsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        collection_slug:
          type: string
          minLength: 1
          description: >-
            Collection slug to search within (its human-readable alias from the
            collection URL)
          examples:
            - boredapeyachtclub
            - pudgypenguins
        count:
          type: integer
          minimum: 1
          description: Number of items to return
        status:
          $ref: '#/components/schemas/OpenseaItemStatus'
          description: Listing status filter
          default: all
        sort:
          $ref: '#/components/schemas/OpenseaItemSort'
          description: Sort order
          default: price_low_to_high
        attributes:
          anyOf:
            - additionalProperties:
                items:
                  type: string
                type: array
              type: object
            - type: 'null'
          description: >-
            Trait filter mapping a trait type to the accepted values (e.g.
            {"Background": ["Army Green", "Blue"]})
          examples:
            - Background:
                - Army Green
      type: object
      required:
        - collection_slug
        - count
    OpenseaItem:
      properties:
        '@type':
          type: string
          default: OpenseaItem
        chain:
          anyOf:
            - type: string
            - type: 'null'
        contract_address:
          type: string
        token_id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        animation_url:
          anyOf:
            - type: string
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
        standard:
          anyOf:
            - type: string
            - type: 'null'
        is_fungible:
          type: boolean
          default: false
        total_supply:
          anyOf:
            - type: integer
            - type: 'null'
        rarity_rank:
          anyOf:
            - type: integer
            - type: 'null'
        rarity_category:
          anyOf:
            - type: string
            - type: 'null'
        image_aspect_ratio:
          anyOf:
            - type: number
            - type: 'null'
        background_color:
          anyOf:
            - type: string
            - type: 'null'
        token_uri:
          anyOf:
            - type: string
            - type: 'null'
        metadata_storage:
          anyOf:
            - type: string
            - type: 'null'
        owner:
          anyOf:
            - type: string
            - type: 'null'
        last_sale:
          anyOf:
            - $ref: '#/components/schemas/OpenseaPrice'
            - type: 'null'
        best_listing:
          anyOf:
            - $ref: '#/components/schemas/OpenseaListing'
            - type: 'null'
        best_offer:
          anyOf:
            - $ref: '#/components/schemas/OpenseaPrice'
            - type: 'null'
        collection:
          anyOf:
            - $ref: '#/components/schemas/OpenseaItemCollection'
            - type: 'null'
        attributes:
          items:
            $ref: '#/components/schemas/OpenseaItemTrait'
          type: array
          default: []
        created_at:
          anyOf:
            - type: string
            - type: 'null'
        last_sale_at:
          anyOf:
            - type: string
            - type: 'null'
        last_transfer_at:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - contract_address
        - token_id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    OpenseaItemStatus:
      type: string
      enum:
        - all
        - listed
        - not_listed
    OpenseaItemSort:
      type: string
      enum:
        - price_low_to_high
        - price_high_to_low
        - most_rare
        - least_rare
    OpenseaPrice:
      properties:
        '@type':
          type: string
          default: OpenseaPrice
        usd:
          anyOf:
            - type: number
            - type: 'null'
        amount:
          anyOf:
            - type: number
            - type: 'null'
        symbol:
          anyOf:
            - type: string
            - type: 'null'
        native:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    OpenseaListing:
      properties:
        '@type':
          type: string
          default: OpenseaListing
        price:
          anyOf:
            - $ref: '#/components/schemas/OpenseaPrice'
            - type: 'null'
        marketplace:
          anyOf:
            - type: string
            - type: 'null'
        maker:
          anyOf:
            - type: string
            - type: 'null'
        quantity_remaining:
          anyOf:
            - type: integer
            - type: 'null'
        start_time:
          anyOf:
            - type: string
            - type: 'null'
        end_time:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    OpenseaItemCollection:
      properties:
        '@type':
          type: string
          default: OpenseaItemCollection
        slug:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        external_url:
          anyOf:
            - type: string
            - type: 'null'
        standard:
          anyOf:
            - type: string
            - type: 'null'
        is_verified:
          type: boolean
          default: false
        floor_price:
          anyOf:
            - $ref: '#/components/schemas/OpenseaPrice'
            - type: 'null'
      type: object
      required:
        - slug
    OpenseaItemTrait:
      properties:
        '@type':
          type: string
          default: OpenseaItemTrait
        trait_type:
          type: string
        value:
          type: string
      type: object
      required:
        - trait_type
        - value
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````