SerpApi是一家提供搜索API的公司,可以方便快速的调用Google搜索引擎的内容。我们完全对齐他们官方接口,只需要替换API Base URL即可。 我们这里的API只是做一个示范,详细用法请参考官方文档:https://serpapi.com/search-api价格:0.01PTC/次
请求参数
Query 参数
api_key
string
必需
The api_key authenticates your requests.
示例值:
{{YOUR_API_KEY}}
engine
string
必需
Parameter defines an engine that will be used to retrieve real-time data.
示例值:
google_lens
url
string
必需
Parameter defines the image url. This is the direct link to the image you want Google Lens to analyze. Ensure the URL points to a valid image format (e.g., .jpg, .png) and is accessible publicly.
示例值:
https://302.ai/_astro/logo.33ec793a_Z1s8I78.webp
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'https://api.302.ai/serpapi/search?api_key=&engine=google_lens&url=https://302.ai/_astro/logo.33ec793a_Z1s8I78.webp'