API 参考
图片识人 API
对任意公开图片地址进行反向图片搜索。返回匹配的网页列表 —— 文章、帖子和资料页 —— 每条包含标题、链接和来源。
接口地址: GET
https://api.enrichmentapi.io/image_to_personAPI 参数
身份验证
api_key必填您在控制台中的 API 密钥。
️ 查询参数
url必填要搜索的图片的公开地址(例如头像或资料照片)。
API 示例
curl -G "https://api.enrichmentapi.io/image_to_person" \ --data-urlencode "api_key=APIKEY" \ --data-urlencode "url=https://images.enrichmentapi.io/person/44cf42374b225614102cb5fd473d41b848cf510174a1ea6434d05d1c8cd84335.jpg"
import requests params = { 'api_key': 'APIKEY', 'url': 'https://images.enrichmentapi.io/person/44cf42374b225614102cb5fd473d41b848cf510174a1ea6434d05d1c8cd84335.jpg' } response = requests.get('https://api.enrichmentapi.io/image_to_person', params=params) print(response.json())
const axios = require('axios'); axios.get('https://api.enrichmentapi.io/image_to_person', { params: { api_key: 'APIKEY', url: 'https://images.enrichmentapi.io/person/44cf42374b225614102cb5fd473d41b848cf510174a1ea6434d05d1c8cd84335.jpg' } }) .then(res => console.log(res.data)) .catch(err => console.error(err.message));
<?php $query = http_build_query([ 'api_key' => 'APIKEY', 'url' => 'https://images.enrichmentapi.io/person/44cf42374b225614102cb5fd473d41b848cf510174a1ea6434d05d1c8cd84335.jpg', ]); $response = file_get_contents("https://api.enrichmentapi.io/image_to_person?$query"); print_r(json_decode($response, true));
require 'net/http' require 'json' uri = URI('https://api.enrichmentapi.io/image_to_person') uri.query = URI.encode_www_form(api_key: 'APIKEY', url: 'https://images.enrichmentapi.io/person/44cf42374b225614102cb5fd473d41b848cf510174a1ea6434d05d1c8cd84335.jpg') response = Net::HTTP.get(uri) puts JSON.parse(response)
import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; public class Main { public static void main(String[] args) throws Exception { String url = "https://api.enrichmentapi.io/image_to_person?api_key=APIKEY&url=https%3A%2F%2Fimages.enrichmentapi.io%2Fperson%2F44cf42374b225614102cb5fd473d41b848cf510174a1ea6434d05d1c8cd84335.jpg"; HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder().uri(URI.create(url)).GET().build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } }
{ "success": true, "image_url": "https://images.enrichmentapi.io/lens/270e636b8eb1b5d13aecd7fd3f9d8b4be2c0c44382de916cf8665c81435b4809.jpg", "results": [ { "title": "How Microsoft CEO Satya Nadella transformed one of the world's ...", "link": "https://timesofindia.indiatimes.com/life-style/books/features/how-microsoft-ceo-satya-nadella-transformed-one-of-the-worlds-great-businesses/articleshow/94221616.cms", "source": "The Times of India", "price": "", "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGB…" }, { "title": "Satya Nadella Highlights Copilot's Impact on UK Healthcare ...", "link": "https://enterprisezone.cc/satya-nadella-highlights-copilots-impact-on-uk-healthcare-administration/", "source": "Enterprisezone", "price": "", "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQwysmt…" }, { "title": "Microsoft working to reduce AI costs, expand ecosystem as global ...", "link": "https://www.perthherald.com/news/279392135/microsoft-working-to-reduce-ai-costs-expand-ecosystem-as-global-adoption-rises-satya-nadella", "source": "Perth Herald", "price": "", "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSL8Ypb…" }, { "title": "2026 will be decisive for AI, says Microsoft CEO Nadella - Ziptone", "link": "https://www.ziptone.nl/en/nieuws/2026-wordt-bepalend-voor-ai-aldus-microsoft-topman-nadella/", "source": "Ziptone", "price": "", "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQEbOqD…" }, { "title": "Zain's birth was a turning point in Satya Nadella's life; tech boss says ...", "link": "https://m.economictimes.com/magazines/panache/zains-birth-was-a-turning-point-in-satya-nadellas-life-tech-boss-says-his-son-taught-him-empathy-influenced-microsofts-vision-of-accessibility/articleshow/89918905.cms", "source": "The Economic Times", "price": "", "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRKqFUq…" }, { "title": "Satya Nadella's virtual tour of Australia", "link": "https://news.microsoft.com/2020-au-visit/", "source": "Microsoft Source", "price": "", "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSeXjZh…" } ]}