开放平台

扒书 ERP Open API

拍照搜书

上传书封面或条码照片,先识别 ISBN,认不出来再让大模型猜书名、作者、出版社,返回最可能的几本书。

请求方式POST
接口路径/api/goods/photoSearch
Content-Typeform-data
鉴权X-Nideshop-Token

请求参数

参数类型必填位置
filefile是表单文件

curl 调用

curl -s 'https://www.8shu8.com/api/goods/photoSearch' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -F 'file=@example.jpg'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "mode": "string",
    "text": "string",
    "records": [
      {
        "name": "...",
        "primaryPicUrl": "...",
        "marketPrice": "...",
        "headPhotoUrl": "...",
        "promotionDesc": "...",
        "id": "...",
        "goodsStatus": "...",
        "goodsSn": "...",
        "fullText": "...",
        "goodsNumber": "...",
        "addTime": "...",
        "retailPrice": "...",
        "sellVolume": "...",
        "createUserId": "...",
        "updateTime": "...",
        "shopId": "...",
        "lat": "...",
        "lon": "...",
        "pushTime": "...",
        "isSelfSell": "...",
        "goodsId": "...",
        "expiredTime": "...",
        "skuId": "...",
        "second": "...",
        "distance": "...",
        "recyclePrice": "...",
        "storeId": "...",
        "bookCondition": "...",
        "images": "...",
        "categoryId": "...",
        "itemSn": "...",
        "isbn": "...",
        "author": "...",
        "publisher": "..."
      }
    ],
    "noneRecords": [
      {
        "id": "...",
        "levelNum": "...",
        "author": "...",
        "pubdate": "...",
        "binding": "...",
        "translator": "...",
        "pages": "...",
        "categoryId": "...",
        "imagesLarge": "...",
        "publisher": "...",
        "isbn": "...",
        "goodsSn": "...",
        "title": "...",
        "price": "...",
        "kaiben": "...",
        "version": "...",
        "wordCnt": "...",
        "dtSource": "...",
        "subtitle": "...",
        "summary": "...",
        "score": "...",
        "label": "...",
        "calisLabel": "...",
        "volume": "...",
        "updateTime": "...",
        "addTime": "...",
        "recycle": "...",
        "doubanScore": "...",
        "hasSub": "...",
        "outmoded": "...",
        "ban": "...",
        "sell": "...",
        "demand": "...",
        "contents": "...",
        "recommendWords": "...",
        "authorIntro": "...",
        "weight": "...",
        "gds": "...",
        "sync": "...",
        "ownActiveCode": "...",
        "oneIsbnMoreBook": "...",
        "suitBook": "...",
        "imageMd5": "...",
        "sourceTitle": "...",
        "kfzMinPrice": "...",
        "bsMinPrice": "...",
        "humanPrice": "...",
        "kfzStock": "...",
        "humanCheck": "...",
        "recycleMarkType": "...",
        "recyclePrice": "...",
        "recycleScore": "...",
        "kfzSoldRate": "...",
        "kfzSoldAvgPrice": "...",
        "kfzWeekSell": "...",
        "kfzMonthSell": "...",
        "kfzThreeMonthSell": "...",
        "kfzHalfYearSell": "...",
        "kfzYearSell": "...",
        "kfzAvgPrice": "...",
        "marketStock": "...",
        "marketStockTime": "...",
        "bookDataSyncTime": "...",
        "kfzSellShopCount": "...",
        "kfzSellAvgPrice": "...",
        "kfzLastSoldDay": "...",
        "lastSaleDay": "...",
        "bs3mSale": "...",
        "bs3mSalePrice": "...",
        "bsStock": "...",
        "social": "...",
        "recycleUpdateTime": "...",
        "images": "...",
        "syncErp": "...",
        "imageList": "...",
        "userId": "...",
        "subUserName": "...",
        "categoryDesc": "...",
        "stockLocation": "...",
        "bookFlag": "...",
        "mess": "...",
        "lastUpdatePriceTime": "...",
        "bookCondition": "...",
        "marketingTrend": "...",
        "warehouseId": "..."
      }
    ]
  }
}

返回字段(data)

字段类型说明
modeStringbarcode:图中条码;isbn:大模型认出 ISBN;meta:按书名作者出版社
textString识别出的文本,多本用换行分开
records对象数组-
records[].nameString书名
records[].primaryPicUrlString商品主图
records[].marketPriceBigDecimal-
records[].headPhotoUrlString-
records[].promotionDescString-
records[].idLong-
records[].goodsStatus对象-
records[].goodsSnString-
records[].fullTextString书名+作者+出版社,全文检索
records[].goodsNumberInteger-
records[].addTimeLocalDateTime-
records[].retailPriceBigDecimal-
records[].sellVolumeInteger-
records[].createUserIdLong-
records[].updateTimeLocalDateTime-
records[].shopIdInteger-
records[].latDouble经度
records[].lonDouble维度
records[].pushTimeLocalDateTime-
records[].isSelfSellBoolean-
records[].goodsIdLong-
records[].expiredTimeLocalDateTime-
records[].skuIdString-
records[].secondBoolean-
records[].distanceBigDecimal-
records[].recyclePriceBigDecimal-
records[].storeIdInteger-
records[].bookConditionString品相,存 编码
records[].imagesArray<String>-
records[].categoryIdString-
records[].itemSnString-
records[].isbnString-
records[].authorString列表展示用,来自货品档案
records[].publisherString列表展示用,来自货品档案
noneRecords对象数组-
noneRecords[].idInteger-
noneRecords[].levelNumInteger评分
noneRecords[].authorString作者
noneRecords[].pubdateString出版日期
noneRecords[].bindingString装订
noneRecords[].translatorString译者
noneRecords[].pagesInteger页数
noneRecords[].categoryIdString-
noneRecords[].imagesLargeString-
noneRecords[].publisherString出版社
noneRecords[].isbnStringisbn
noneRecords[].goodsSnString-
noneRecords[].titleString标题
noneRecords[].priceBigDecimal原价
noneRecords[].kaibenString开本
noneRecords[].versionString版本
noneRecords[].wordCntString-
noneRecords[].dtSource对象-
noneRecords[].subtitleString副标题
noneRecords[].summaryString简介
noneRecords[].scoreDoublescore评分
noneRecords[].labelString-
noneRecords[].calisLabelStringCALIS 分类标签
noneRecords[].volumeString册数
noneRecords[].updateTimeLocalDateTime-
noneRecords[].addTimeLocalDateTime-
noneRecords[].recycleBoolean-
noneRecords[].doubanScoreDouble-
noneRecords[].hasSubInteger-
noneRecords[].outmodedInteger-
noneRecords[].banBoolean-
noneRecords[].sellInteger-
noneRecords[].demandInteger-
noneRecords[].contentsString内容
noneRecords[].recommendWordsString推荐语
noneRecords[].authorIntroString-
noneRecords[].weightBigDecimal-
noneRecords[].gds对象数组-
noneRecords[].syncBoolean-
noneRecords[].ownActiveCodeBoolean含激活码
noneRecords[].oneIsbnMoreBookBoolean一码多书
noneRecords[].suitBookBoolean套装书
noneRecords[].imageMd5String图片md5
noneRecords[].sourceTitleString-
noneRecords[].kfzMinPriceBigDecimal-
noneRecords[].bsMinPriceBigDecimal-
noneRecords[].humanPriceBigDecimal人工定价
noneRecords[].kfzStockInteger-
noneRecords[].humanCheckBoolean-
noneRecords[].recycleMarkType对象-
noneRecords[].recyclePriceBigDecimal-
noneRecords[].recycleScoreBigDecimal-
noneRecords[].kfzSoldRateBigDecimal-
noneRecords[].kfzSoldAvgPriceBigDecimal-
noneRecords[].kfzWeekSellInteger孔网销量/价格指标(同步自 业务数据)
noneRecords[].kfzMonthSellInteger-
noneRecords[].kfzThreeMonthSellInteger-
noneRecords[].kfzHalfYearSellInteger-
noneRecords[].kfzYearSellInteger-
noneRecords[].kfzAvgPriceBigDecimal-
noneRecords[].marketStockInteger分销仓汇总库存(定时同步)
noneRecords[].marketStockTimeLocalDateTime-
noneRecords[].bookDataSyncTimeLocalDateTime-
noneRecords[].kfzSellShopCountInteger-
noneRecords[].kfzSellAvgPriceDouble-
noneRecords[].kfzLastSoldDayDouble-
noneRecords[].lastSaleDayDouble-
noneRecords[].bs3mSaleFloat-
noneRecords[].bs3mSalePriceDouble-
noneRecords[].bsStockInteger-
noneRecords[].socialInteger-
noneRecords[].recycleUpdateTimeLocalDateTime-
noneRecords[].imagesString-
noneRecords[].syncErpBoolean-
noneRecords[].imageListArray<String>-
noneRecords[].userIdLong-
noneRecords[].subUserNameString最近一次实拍档案操作人(日志表查询填充,非表字段)
noneRecords[].categoryDescString-
noneRecords[].stockLocationString-
noneRecords[].bookFlagBoolean-
noneRecords[].messBoolean-
noneRecords[].lastUpdatePriceTimeLocalDateTime-
noneRecords[].bookConditionString图书品相(编码,如 p85、p0)
noneRecords[].marketingTrendString-
noneRecords[].warehouseIdInteger-
…(字段较多,仅列前 60 个)