Goole Patents
SERP API谷歌查询参数
通过Thordata的SERP API配置谷歌搜索查询,支持日期范围参数、参与人数、分页及高级参数输出选项的定制功能。
q
,搜索查询(必填)
定义用于数据抓取的搜索查询(默认值:q=pizza
)。支持任何语言的任意关键词。
示例请求:
使用q
: pizza参数的示例
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1"
日期范围
before
,在日期之前(非必填)
参数用于限定结果的最晚日期。该字段格式为“类型:YYYYMMDD”,其中类型可以是优先权日(priority)、申请日(filing)或公布日(publication)三种。
示例:
priority:20241231
filing:20250615
publication:20250101
示例请求:
使用参数示例: q
: pizza ,before
:priority:20241231
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "before=priority:20241231"
after
,在日期之后(非必填)
The number is used to limit the results to the earliest date. The format of this field is "type:YYYYMMDD
", where type can be priority date (priority
), application date (filing
), or publication date (publication
).
Example:
priority:20241231
filing:20250615
publication:20250101
示例请求:
使用参数示例: q
: pizza,after
: filing:20250615
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "after=filing:20250615"
参与者
inventor
,发明家(非必填)
参数定义专利的发明家。多个发明家之间用,
逗号分隔。
示例请求:
使用参数示例: q
: pizza,location
:India,inventor
:A,B
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "inventor=A,B" \
-d "assignee=A,B"
assignee
,受让人(非必填)
参数定义专利的受让人。多个受让人之间用,
逗号分隔。
示例请求:
使用参数示例: q
: pizza,location
:India,assignee
:A,B
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "inventor=A,B" \
-d "assignee=A,B"
分页
page
,页码(非必填)
此参数定义页码。用于分页(例如,1
(默认)表示结果的第一页,2
表示结果的第二页,等等)。
示例请求:
使用参数示例: q
: pizza,page
:30
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "page=30"
num
,每页结果数(非必填)
参数控制每页的结果数。最小值:10
,最大值:100
。
示例请求:
使用参数示例: q
: pizza,num
:20
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "num=20"
高级参数
sort
,排序依据(非必填)
参数定义排序方法。默认情况下,结果按相关性排序。
new
- Newest
old
- Oldest
示例请求:
使用参数示例: q
: pizza,sort
:new
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "sort=new"
clustered
,聚类(非必填)
参数定义结果的分组方式。
支持的值列表如下:
true
- 分类
示例请求:
使用参数示例: q
: pizza,clustered
:ture
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "clustered=ture"
dups
,删除(非必填)
参数定义重复数据删除方法。可以是 Family(默认)或 Publication。
支持的值列表如下:
language
- Publication
示例请求:
使用参数示例: q
: pizza,dups
:language
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "dups=language"
patents
,包括专利结果(非必填)
此参数控制是否包含 Google Patents 搜索结果。(默认为 true
)
示例请求:
使用参数示例: q
: pizza,patents
:ture
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "patents=ture"
scholar
,包括学者结果(非必填)
参数控制是否包含Google Scholar的结果。(默认为false)
示例请求:
使用参数示例:q
: pizza,scholar
:ture
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer bb33aa0ec81de3fef7a61e9dddec973e" \
-d "engine=google_patents" \
-d "q=pizza" \
-d "json=1" \
-d "scholar=ture"
如果您需要更多帮助,请通过邮箱[email protected]联系我们。
Last updated
Was this helpful?