Similar NFTs finder with file

[apis/nftport/v0/Similar NFTs finder with file]


Returns visually and contextually similar images to the uploaded image with file. Requires NFTPort account. Find similar NFTs w/file upload https://docs.nftport.xyz/docs/nftport/?search=find-similar-nf-ts-w-file-upload


Keywords: web3, blockchain, crypto, nft, product, dynamic, upload, file, image, animation, minting, ethereum, polygon

Input ports

  • query:

    {
      "file": {"data": string, "fileName": string, "contentType": string},
      optional "page_number": number,
      optional "page_size": number
    }

    File receives base64-encoded binary file contents. page_number and page_size are optional. https://docs.nftport.xyz/docs/nftport/?search=find-similar-nf-ts-w-file-upload#Request

  • params: {"api_key": string}

Output ports

  • data:

    {
      "response": "OK",
      "nfts": [
        {
          "chain": ("ethereum" or "polygon"),
          "contract_address": string,
          "token_id": string,
          optional "cached_file_url": string,
          optional "metadata": {
            "description": string,
            "background_color": string,
            "external_url": string,
            "image": string
          }
        }
      ]
    }

    https://docs.nftport.xyz/docs/nftport/?search=find-similar-nf-ts-w-file-upload#Responses

  • response:

    {"status": number, "headers": {string: any}, "body": string}

    Sends the original response.

  • error: {"error": string, "details": any}

Last updated