Theft Detection
API Endpoint: https://eofveg1f59hrbn.m.pipedream.net
Cost: 1 NUM + Gas (~0.004 NUM per transaction) per API call. No Gas is required if paid with Credits.
Method: POST
Description:
This API finds similar assets and cross-network NFTs that use the specified file.
Authentication:
This API requires a valid token for Authorization. The token should be passed in the headers of the request using the following format: "Authorization: token YOUR_CAPTURE_TOKEN"
Header:
Authorization: token $YOUR_CAPTURE_TOKEN (required)
Content-Type: application/json
Request Body (required):
fileURL (string) or file (object): Either the URL of the file to be searched or the file object itself must be specified. If the fileURL is used, it should be passed as a string. If the file object is used, it should be the direct upload from the system.
Request Body (optional):
threshold (float): distance threshold applied to filter similar results (default: 0.12)
excludedAssets (list): list of Nids of assets to be excluded from the search results
excludedContracts (list): list of contract addresses to be excluded from the search results
onlyNewNFT (bool): use this to search only NFTs minted in the last 24 hours.
Example 1 (direct file upload):
curl -F "file=@/tmp/MYFILE.png" \
-F "excludedContracts=["0x65f5e2f61d45a5f1d5313269c040fc0c910e7a44"]" \
-H "Authorization: token YOUR_CAPTURE_TOKEN" \
"https://eofveg1f59hrbn.m.pipedream.net"
Example 2 (upload via URL)
curl -X POST "https://eofveg1f59hrbn.m.pipedream.net" \
-H "Content-Type: application/json" \
-H "Authorization: token YOUR_CAPTURE_TOKEN" \
-d '{
"fileURL": YOUR_FILE_URL,
"excludedAssets": ["bafybeid32me6xuuamahne2vs4ks57y3wohag4dt65iwhfzpqtpw7y6f75i"],
"excludedContracts": ["0xb90c5b95d7c29d1448ec079dffedc5905fb77711"]
}'
Response:
{
"results": object // JSON objects for nft records and similar assets found
"searchNid": string // Nid of the input asset
"inputFileMimetype": string // Mimetype of the file to be searched
"orderID": string // ID of this order
}
200: File has been pinned successfully
400: Bad request
401: Unauthorized
403: Forbidden
500: Internal Server ErrorRead nftRecords
Description
Support Status
Sample search results
Last updated