Google Lens Scraper

ENDPOINTS
GET/translate

Translate Image

Translate the text in a picture into another language, paragraph by paragraph, next to the original.

QUERY PARAMS

The picture to search. Accepts a direct image link, a web page link (its main image is used), a Google Lens / Google Images link, or a data:image/...;base64,... URI.

Examples:

  • Image link: https://upload.wikimedia.org/wikipedia/commons/a/a8/Tour_Eiffel_Wikimedia_Commons.jpg
  • Product page: https://www.dtlr.com/products/nike-dunk-high-dd1399-102

Language to translate into.

Allowed values: any ISO 639-1 code (en, es, fr, de, ja, zh, ...)

Language of the text in the picture. Omit to auto-detect.

Allowed values: any ISO 639-1 code

Search only part of the picture: x,y,width,height as fractions of the picture (top-left origin) or in pixels.

Examples: 0.25,0.1,0.5,0.6 (fractions) · 120,40,300,300 (pixels)

{
  "source_language": "ja",
  "target_language": "en",
  "status": "success",
  "translated_text": "Kyushu\n\nJapan\n\nA whole house!\n\n3F Kyushu Chicken, Horse, Hokkaido Beef\n\nMizushiya\n\nSeongju City Spark Shop\n\nfire hydrant\n\nNationwide\n\nField (1893)\n\nMuichi Koba Kazawa\n\nEstablished in Meiji 26 (1893)\n\nBeef wine\n\nGyu Honten (牛本店)\n\nNationwide\n\nMu (1893)\n\nJōjō, Meiji 26 (1893)\n\nUshi main store\n\nNiu C's own small ranch\n\nMekushiya\n\nMain store\n\nanimal husbandry\n\nUogashi\n\nfish\n\nHibiya Direct Dining Street\n\nKyushu Hiba\n\nHokkaido beef and sheep\n\n1F National Fishing Grounds\n\nB1F National Shellfish\n\nof",
  "original_text": "九州\n\n24\n\n日本\n\n一軒まるごと!\n\n3F九州鶏・馬\n北海道牛・\n\n都久志屋\n\n城州都火花屋\n\n消火栓\n\n全国\n\n場\n(1893)\n\n牧壹小\n場加澤\n\n総業明治26年(1893)\n\n牛酒\n\n牛本店 牛口本店\nGYUMARU\n\n全国\n\n牧\n(1893)\n\n場\n常明治26年(1893)\n\n牛の本店\n\n牛C本店\n小牧場\n\n芽久志屋\n\n本店\n\n¥950\n\n牧\n\n魚河岸\n\n189\n\n魚\n\n日比谷直飲食街\n\n101930~\n\n3F\n\n九州雞馬\n\n2F\n\n北海道牛羊\n\n1F 全国漁場魚\n\nWC\n\n!!\n\nB1F 全国貝\n\nの",
  "paragraphs": [
    {
      "position": 1,
      "original_text": "九州",
      "translated_text": "Kyushu",
      "bounding_box": {
        "x": 0.10088,
        "y": 0.19733,
        "width": 0.04137,
        "height": 0.01261,
        "rotation_degrees": 25.25
      }
    },
    {
      "position": 2,
      "original_text": "24",
      "translated_text": null,
      "bounding_box": {
        "x": 0.22304,
        "y": 0.14759,
        "width": 0.08363,
        "height": 0.0319,
        "rotation_degrees": -0.07
      }
    },
    {
      "position": 3,
      "original_text": "日本",
      "translated_text": "Japan",
      "bounding_box": {
        "x": 0.28256,
        "y": 0.14313,
        "width": 0.01259,
        "height": 0.03561,
        "rotation_degrees": -0.49
      }
    },
    {
      "position": 4,
      "original_text": "一軒まるごと!",
      "translated_text": "A whole house!",
      "bounding_box": {
        "x": 0.38581,
        "y": 0.14754,
        "width": 0.17086,
        "height": 0.03116,
        "rotation_degrees": -0.07
      }
    },
    {
      "position": 5,
      "original_text": "3F九州鶏・馬\n北海道牛・",
      "translated_text": "3F Kyushu Chicken, Horse, Hokkaido Beef",
      "bounding_box": {
        "x": 0.78248,
        "y": 0.1519,
        "width": 0.08363,
        "height": 0.03338,
        "rotation_degrees": -0.3
      }
    },
    {
      "position": 6,
      "original_text": "都久志屋",
      "translated_text": "Mizushiya",
      "bounding_box": {
        "x": 0.23737,
        "y": 0.20483,
        "width": 0.21223,
        "height": 0.0638,
        "rotation_degrees": 0.06
      }
    },
    {
      "position": 7,
      "original_text": "城州都火花屋",
      "translated_text": "Seongju City Spark Shop",
      "bounding_box": {
        "x": 0.51705,
        "y": 0.20487,
        "width": 0.29047,
        "height": 0.0638,
        "rotation_degrees": 0.06
      }
    },
    {
      "position": 8,
      "original_text": "消火栓",
      "translated_text": "fire hydrant",
      "bounding_box": {
        "x": 0.08342,
        "y": 0.49851,
        "width": 0.03687,
        "height": 0.01261,
        "rotation_degrees": 33.93
      }
    },
    {
      "position": 9,
      "original_text": "全国",
      "translated_text": "Nationwide",
      "bounding_box": {
        "x": 0.1106,
        "y": 0.63503,
        "width": 0.01799,
        "height": 0.00668,
        "rotation_degrees": 0.09
      }
    },
    {
      "position": 10,
      "original_text": "場\n(1893)",
      "translated_text": "Field (1893)",
      "bounding_box": {
        "x": 0.22489,
        "y": 0.53466,
        "width": 0.05755,
        "height": 0.01335,
        "rotation_degrees": -0.49
      }
    },
    {
      "position": 11,
      "original_text": "牧壹小\n場加澤",
      "translated_text": "Muichi Koba Kazawa",
      "bounding_box": {
        "x": 0.32286,
        "y": 0.43988,
        "width": 0.10522,
        "height": 0.03264,
        "rotation_degrees": -0.04
      }
    },
    {
      "position": 12,
      "original_text": "総業明治26年(1893)",
      "translated_text": "Established in Meiji 26 (1893)",
      "bounding_box": {
        "x": 0.32555,
        "y": 0.47468,
        "width": 0.10432,
        "height": 0.0089,
        "rotation_degrees": -0.13
      }
    },
    {
      "position": 13,
      "original_text": "牛酒",
      "translated_text": "Beef wine",
      "bounding_box": {
        "x": 0.47931,
        "y": 0.43769,
        "width": 0.04227,
        "height": 0.04228,
        "rotation_degrees": 0.01
      }
    },
    {
      "position": 14,
      "original_text": "牛本店 牛口本店\nGYUMARU",
      "translated_text": "Gyu Honten (牛本店)",
      "bounding_box": {
        "x": 0.53955,
        "y": 0.42808,
        "width": 0.21763,
        "height": 0.06231,
        "rotation_degrees": -1.39
      }
    },
    {
      "position": 15,
      "original_text": "全国",
      "translated_text": "Nationwide",
      "bounding_box": {
        "x": 0.80218,
        "y": 0.19286,
        "width": 0.01259,
        "height": 0.00816,
        "rotation_degrees": -0.22
      }
    },
    {
      "position": 16,
      "original_text": "牧\n(1893)",
      "translated_text": "Mu (1893)",
      "bounding_box": {
        "x": 0.41007,
        "y": 0.52077,
        "width": 0.05396,
        "height": 0.02151,
        "rotation_degrees": 0.01
      }
    },
    {
      "position": 17,
      "original_text": "場\n常明治26年(1893)",
      "translated_text": "Jōjō, Meiji 26 (1893)",
      "bounding_box": {
        "x": 0.58993,
        "y": 0.53264,
        "width": 0.05486,
        "height": 0.01484,
        "rotation_degrees": -0.01
      }
    },
    {
      "position": 18,
      "original_text": "牛の本店",
      "translated_text": "Ushi main store",
      "bounding_box": {
        "x": 0.3705,
        "y": 0.60534,
        "width": 0.06655,
        "height": 0.01632,
        "rotation_degrees": 0.0
      }
    },
    {
      "position": 19,
      "original_text": "牛C本店\n小牧場",
      "translated_text": "Niu C's own small ranch",
      "bounding_box": {
        "x": 0.26174,
        "y": 0.6439,
        "width": 0.02068,
        "height": 0.03635,
        "rotation_degrees": -0.14
      }
    },
    {
      "position": 20,
      "original_text": "芽久志屋",
      "translated_text": "Mekushiya",
      "bounding_box": {
        "x": 0.29141,
        "y": 0.64836,
        "width": 0.00989,
        "height": 0.03338,
        "rotation_degrees": -0.13
      }
    },
    {
      "position": 21,
      "original_text": "本店",
      "translated_text": "Main store",
      "bounding_box": {
        "x": 0.22878,
        "y": 0.66157,
        "width": 0.01079,
        "height": 0.01855,
        "rotation_degrees": -1.88
      }
    },
    {
      "position": 22,
      "original_text": "¥950",
      "translated_text": null,
      "bounding_box": {
        "x": 0.28942,
        "y": 0.81902,
        "width": 0.03147,
        "height": 0.00816,
        "rotation_degrees": -15.76
      }
    },
    {
      "position": 23,
      "original_text": "牧",
      "translated_text": "animal husbandry",
      "bounding_box": {
        "x": 0.77157,
        "y": 0.52376,
        "width": 0.01799,
        "height": 0.00816,
        "rotation_degrees": 0.13
      }
    },
    {
      "position": 24,
      "original_text": "魚河岸",
      "translated_text": "Uogashi",
      "bounding_box": {
        "x": 0.49044,
        "y": 0.64752,
        "width": 0.01888,
        "height": 0.04228,
        "rotation_degrees": -0.74
      }
    },
    {
      "position": 25,
      "original_text": "189",
      "translated_text": null,
      "bounding_box": {
        "x": 0.81474,
        "y": 0.54156,
        "width": 0.00899,
        "height": 0.00297,
        "rotation_degrees": 0.21
      }
    },
    {
      "position": 26,
      "original_text": "魚",
      "translated_text": "fish",
      "bounding_box": {
        "x": 0.8304,
        "y": 0.64601,
        "width": 0.01709,
        "height": 0.03264,
        "rotation_degrees": -1.06
      }
    },
    {
      "position": 27,
      "original_text": "日比谷直飲食街",
      "translated_text": "Hibiya Direct Dining Street",
      "bounding_box": {
        "x": 0.53501,
        "y": 0.78211,
        "width": 0.07104,
        "height": 0.01409,
        "rotation_degrees": 0.42
      }
    },
    {
      "position": 28,
      "original_text": "101930~",
      "translated_text": null,
      "bounding_box": {
        "x": 0.53235,
        "y": 0.83019,
        "width": 0.03147,
        "height": 0.00816,
        "rotation_degrees": 0.3
      }
    },
    {
      "position": 29,
      "original_text": "3F",
      "translated_text": null,
      "bounding_box": {
        "x": 0.70891,
        "y": 0.76468,
        "width": 0.01709,
        "height": 0.02151,
        "rotation_degrees": -1.22
      }
    },
    {
      "position": 30,
      "original_text": "九州雞馬",
      "translated_text": "Kyushu Hiba",
      "bounding_box": {
        "x": 0.73227,
        "y": 0.76417,
        "width": 0.07554,
        "height": 0.02077,
        "rotation_degrees": -1.22
      }
    },
    {
      "position": 31,
      "original_text": "2F",
      "translated_text": null,
      "bounding_box": {
        "x": 0.70832,
        "y": 0.79264,
        "width": 0.01888,
        "height": 0.02077,
        "rotation_degrees": -2.72
      }
    },
    {
      "position": 32,
      "original_text": "北海道牛羊",
      "translated_text": "Hokkaido beef and sheep",
      "bounding_box": {
        "x": 0.73437,
        "y": 0.79084,
        "width": 0.07284,
        "height": 0.02077,
        "rotation_degrees": -2.72
      }
    },
    {
      "position": 33,
      "original_text": "1F 全国漁場魚",
      "translated_text": "1F National Fishing Grounds",
      "bounding_box": {
        "x": 0.70978,
        "y": 0.82462,
        "width": 0.09982,
        "height": 0.01706,
        "rotation_degrees": -1.45
      }
    },
    {
      "position": 34,
      "original_text": "WC",
      "translated_text": null,
      "bounding_box": {
        "x": 0.81208,
        "y": 0.8442,
        "width": 0.00719,
        "height": 0.01335,
        "rotation_degrees": -0.23
      }
    },
    {
      "position": 35,
      "original_text": "!!",
      "translated_text": null,
      "bounding_box": {
        "x": 0.55038,
        "y": 0.86497,
        "width": 0.01169,
        "height": 0.00816,
        "rotation_degrees": -0.2
      }
    },
    {
      "position": 36,
      "original_text": "B1F 全国貝",
      "translated_text": "B1F National Shellfish",
      "bounding_box": {
        "x": 0.70613,
        "y": 0.85446,
        "width": 0.10342,
        "height": 0.01632,
        "rotation_degrees": -1.18
      }
    },
    {
      "position": 37,
      "original_text": "の",
      "translated_text": "of",
      "bounding_box": {
        "x": 0.90644,
        "y": 0.75449,
        "width": 0.00809,
        "height": 0.00519,
        "rotation_degrees": 0.67
      }
    }
  ],
  "image": {
    "link": "https://upload.wikimedia.org/wikipedia/commons/a/a5/Illuminated_facade_of_a_3-storey_restaurant_with_Japanese_signs_and_red_paper_lanterns%2C_Chiyoda%2C_Tokyo.jpg",
    "width": 3762,
    "height": 4559,
    "format": "jpeg",
    "size_bytes": 7936382
  }
}