เอกสาร API Hop
เอกสารอ้างอิง Google Scholar
ค้นหาบทความวิชาการ โปรไฟล์ผู้เขียน การอ้างอิง และคำพิพากษาบน Google Scholar
ขีดจำกัดการทำงานพร้อมกัน
AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง HTTP 429 งานอะซิงโครนัสใช้ช่องจนกว่าการทำงานจะสิ้นสุด
GET /v1/google-scholar/search GET /v1/google-scholar/author GET /v1/google-scholar/case-law GET /v1/google-scholar/cite ค้นหาบทความวิชาการ โปรไฟล์ผู้เขียน การอ้างอิง และคำพิพากษาบน Google Scholar
การยืนยันตัวตนและค่าบริการ
ราคามาตรฐานต่อคำขอที่สำเร็จคือ $0.0003 (300 credits) ใช้คีย์ API ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 60 วินาที ไม่ลองซ้ำหรือแบ่งหน้าอัตโนมัติ ข้อผิดพลาดการชำระไม่เรียกผู้ให้บริการซ้ำ
Authorization: Bearer YOUR_API_KEYรับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง ยกเว้น geo และ gprop ว่างตามที่ระบุ รองรับ JSON เท่านั้น ไม่มีการเปลี่ยนหน้าหรือลองใหม่อัตโนมัติ AND = ทั้งคู่, OR = หรือ, XOR = อย่างใดอย่างหนึ่ง, NOT = ห้ามใช้, => = ต้องมี คัดลอกรหัสและโทเค็นข่าวจากคำตอบล่าสุด ตัวอย่างไม่ใช่ผลทดสอบจริง คิดค่าบริการแยกทุกคำขอที่สำเร็จ
Google Scholar: ค้นหาบทความวิชาการ
GET https://api.apihop.ai/v1/google-scholar/search
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
query | string | คำค้น; query: optional | machine learning |
language | string | ภาษา; language: optional | - |
page | integer | หน้าเริ่มจาก 1; page: optional; min: 1; max: 101 | 1 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
cites | string | รายการรหัสบทความที่ถูกอ้างอิง (cites); cites: optional; ^[1-9][0-9]{0,19}(?:,[1-9][0-9]{0,19}){0,19}$ | - |
cluster | string | รหัสกลุ่มฉบับบทความ (cluster); cluster: optional; ^[1-9][0-9]{0,19}$ | - |
as_ylo | integer | ขอบเขตปีที่เผยแพร่ (as_ylo); as_ylo: optional; min: 1; max: 9999 | 1 |
as_yhi | integer | ขอบเขตปีที่เผยแพร่ (as_yhi); as_yhi: optional; min: 1; max: 9999 | 1 |
scisbd | integer | ตัวกรองบทความวิชาการ (scisbd); scisbd: optional; min: 0; max: 2 | 0 |
filter | integer | ตัวกรองบทความวิชาการ (filter); filter: optional; min: 0; max: 1 | 0 |
as_vis | integer | ตัวกรองบทความวิชาการ (as_vis); as_vis: optional; min: 0; max: 1 | 0 |
as_rr | integer | ตัวกรองบทความวิชาการ (as_rr); as_rr: optional; min: 0; max: 1 | 0 |
start | integer | ตำแหน่งผลลัพธ์ต้นฉบับ (start); start: optional; min: 0; max: 1000 | 0 |
num | integer | ผลลัพธ์ต่อหน้า (num); ค่าเริ่มต้น: 10; num: optional; min: 1; max: 20 | 1 |
lr | string | ตัวกรองภาษาเอกสาร (lr); lr: optional; UTF-8 bytes: 1024 | - |
as_sdt | string | ตัวกรองบทความหรือศาล (as_sdt); ตัวอย่าง: 4,33,192; as_sdt: optional; UTF-8 bytes: 1024; ^[0-9]{1,8}(?:,[0-9]{1,6})*$ | - |
safe | string | ตัวกรองบทความวิชาการ (safe); safe: optional; active, off | active |
การตรวจสอบ
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/NOT (page AND start)as_ylo <= as_yhi; cluster => NOT (query OR cites); identifiers remain strings to preserve numeric precisionscisbd: 0 = relevance, 1 = recent abstracts, 2 = recent articles; filter: 1 = filter similar results; as_vis: 1 = exclude citation-only records; as_rr: 1 = review articles onlyquery OR cites OR cluster: required
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/google-scholar/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=machine learning"Google Scholar: ดูโปรไฟล์ผู้เขียน
GET https://api.apihop.ai/v1/google-scholar/author
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสจากผลค้นหา (id); id: REQUIRED | qc6CJjYAAAAJ |
language | string | ภาษา; language: optional | - |
page | integer | หน้าเริ่มจาก 1; page: optional; min: 1; max: 1000 | 1 |
sort_by | string | การเรียง; sort_by: optional; year, citations, pubdate, title | year |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
view_op | string | โหมดดูผู้เขียน (view_op); view_op: optional; view_citation, list_colleagues | view_citation |
citation_id | string | รหัสบทความผู้เขียนแบบเต็ม (citation_id); citation_id: optional; ^[A-Za-z0-9_-]{12}:[A-Za-z0-9_-]{1,100}$ | - |
start | integer | ตำแหน่งผลลัพธ์ต้นฉบับ (start); start: optional; min: 0; max: 10000 | 0 |
num | integer | ผลลัพธ์ต่อหน้า (num); num: optional; min: 1; max: 100 | 1 |
การตรวจสอบ
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/NOT (page AND start)view_op = view_citation <=> citation_id; citation_id prefix before colon must equal idid, citation_id: copy from fresh author search/profile results; list_colleagues selects co-authors
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/google-scholar/author" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=qc6CJjYAAAAJ"Google Scholar: ค้นหาคำพิพากษา
GET https://api.apihop.ai/v1/google-scholar/case-law
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
query | string | คำค้น; query: optional | Brown v Board of Education |
language | string | ภาษา; language: optional | - |
page | integer | หน้าเริ่มจาก 1; page: optional; min: 1; max: 101 | 1 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
cites | string | รายการรหัสบทความที่ถูกอ้างอิง (cites); cites: optional; ^[1-9][0-9]{0,19}(?:,[1-9][0-9]{0,19}){0,19}$ | - |
cluster | string | รหัสกลุ่มฉบับบทความ (cluster); cluster: optional; ^[1-9][0-9]{0,19}$ | - |
as_ylo | integer | ขอบเขตปีที่เผยแพร่ (as_ylo); as_ylo: optional; min: 1; max: 9999 | 1 |
as_yhi | integer | ขอบเขตปีที่เผยแพร่ (as_yhi); as_yhi: optional; min: 1; max: 9999 | 1 |
scisbd | integer | ตัวกรองบทความวิชาการ (scisbd); scisbd: optional; min: 0; max: 2 | 0 |
filter | integer | ตัวกรองบทความวิชาการ (filter); filter: optional; min: 0; max: 1 | 0 |
as_vis | integer | ตัวกรองบทความวิชาการ (as_vis); as_vis: optional; min: 0; max: 1 | 0 |
as_rr | integer | ตัวกรองบทความวิชาการ (as_rr); as_rr: optional; min: 0; max: 1 | 0 |
start | integer | ตำแหน่งผลลัพธ์ต้นฉบับ (start); start: optional; min: 0; max: 1000 | 0 |
num | integer | ผลลัพธ์ต่อหน้า (num); ค่าเริ่มต้น: 10; num: optional; min: 1; max: 20 | 1 |
lr | string | ตัวกรองภาษาเอกสาร (lr); lr: optional; UTF-8 bytes: 1024 | - |
as_sdt | string | ตัวกรองบทความหรือศาล (as_sdt); ตัวอย่าง: 4,33,192; as_sdt: optional; UTF-8 bytes: 1024; ^[0-9]{1,8}(?:,[0-9]{1,6})*$ | - |
safe | string | ตัวกรองบทความวิชาการ (safe); safe: optional; active, off | active |
case_id | string | รหัสคำพิพากษา (case_id); case_id: optional; ^[1-9][0-9]{0,19}$ | - |
การตรวจสอบ
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/NOT (page AND start)as_ylo <= as_yhi; cluster => NOT (query OR cites); identifiers remain strings to preserve numeric precisionscisbd: 0 = relevance, 1 = recent abstracts, 2 = recent articles; filter: 1 = filter similar results; as_vis: 1 = exclude citation-only records; as_rr: 1 = review articles onlycase_id OR query OR cites OR cluster: requiredcase_id => only case_id, language, device, zero_trace; NOT search filters or paginationas_sdt: 4 OR 4,court_id[,court_id...]
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/google-scholar/case-law" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=Brown v Board of Education"Google Scholar: ดูการอ้างอิง
GET https://api.apihop.ai/v1/google-scholar/cite
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสจากผลค้นหา (id); id: REQUIRED; ^[A-Za-z0-9_-]{12}$ | p7YVSi5UNiMJ |
language | string | ภาษา; language: optional | - |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
การตรวจสอบ
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/id: copy from a fresh Scholar search result; illustrative sample IDs do not prove availability
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/google-scholar/cite" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=p7YVSi5UNiMJ"ผลลัพธ์และข้อผิดพลาด
คง JSON ต้นฉบับและความแม่นยำ ตัวอย่างคือผลลัพธ์ว่างที่สำเร็จ HTTP 400: ข้อมูล; 401: ยืนยันตัวตน; 402: ยอดเงิน; 403: สิทธิ์; 405: วิธี; 429: จำกัด; 5xx: บริการ เก็บ X-Request-Id
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}