API Hop

เอกสาร

เอกสาร API Hop

เอกสารอ้างอิง Google Scholar

ค้นหาบทความวิชาการ โปรไฟล์ผู้เขียน การอ้างอิง และคำพิพากษาบน Google Scholar

ขีดจำกัดการทำงานพร้อมกัน

AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง HTTP 429 งานอะซิงโครนัสใช้ช่องจนกว่าการทำงานจะสิ้นสุด

GET /v1/google-scholar/search
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-scholar/author
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-scholar/case-law
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-scholar/cite
ขีดจำกัดเริ่มต้น: 2

ค้นหาบทความวิชาการ โปรไฟล์ผู้เขียน การอ้างอิง และคำพิพากษาบน Google Scholar

การยืนยันตัวตนและค่าบริการ

ราคามาตรฐานต่อคำขอที่สำเร็จคือ $0.0003 (300 credits) ใช้คีย์ API ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 60 วินาที ไม่ลองซ้ำหรือแบ่งหน้าอัตโนมัติ ข้อผิดพลาดการชำระไม่เรียกผู้ให้บริการซ้ำ

http
Authorization: Bearer YOUR_API_KEY

รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง ยกเว้น geo และ gprop ว่างตามที่ระบุ รองรับ JSON เท่านั้น ไม่มีการเปลี่ยนหน้าหรือลองใหม่อัตโนมัติ AND = ทั้งคู่, OR = หรือ, XOR = อย่างใดอย่างหนึ่ง, NOT = ห้ามใช้, => = ต้องมี คัดลอกรหัสและโทเค็นข่าวจากคำตอบล่าสุด ตัวอย่างไม่ใช่ผลทดสอบจริง คิดค่าบริการแยกทุกคำขอที่สำเร็จ

Google Scholar: ค้นหาบทความวิชาการ

GET https://api.apihop.ai/v1/google-scholar/search

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: optionalmachine learning
languagestringภาษา; language: optional-
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 1011
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
citesstringรายการรหัสบทความที่ถูกอ้างอิง (cites); cites: optional; ^[1-9][0-9]{0,19}(?:,[1-9][0-9]{0,19}){0,19}$-
clusterstringรหัสกลุ่มฉบับบทความ (cluster); cluster: optional; ^[1-9][0-9]{0,19}$-
as_ylointegerขอบเขตปีที่เผยแพร่ (as_ylo); as_ylo: optional; min: 1; max: 99991
as_yhiintegerขอบเขตปีที่เผยแพร่ (as_yhi); as_yhi: optional; min: 1; max: 99991
scisbdintegerตัวกรองบทความวิชาการ (scisbd); scisbd: optional; min: 0; max: 20
filterintegerตัวกรองบทความวิชาการ (filter); filter: optional; min: 0; max: 10
as_visintegerตัวกรองบทความวิชาการ (as_vis); as_vis: optional; min: 0; max: 10
as_rrintegerตัวกรองบทความวิชาการ (as_rr); as_rr: optional; min: 0; max: 10
startintegerตำแหน่งผลลัพธ์ต้นฉบับ (start); start: optional; min: 0; max: 10000
numintegerผลลัพธ์ต่อหน้า (num); ค่าเริ่มต้น: 10; num: optional; min: 1; max: 201
lrstringตัวกรองภาษาเอกสาร (lr); lr: optional; UTF-8 bytes: 1024-
as_sdtstringตัวกรองบทความหรือศาล (as_sdt); ตัวอย่าง: 4,33,192; as_sdt: optional; UTF-8 bytes: 1024; ^[0-9]{1,8}(?:,[0-9]{1,6})*$-
safestringตัวกรองบทความวิชาการ (safe); safe: optional; active, offactive

การตรวจสอบ

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[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 precision
  • scisbd: 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 only
  • query OR cites OR cluster: required

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
idstringรหัสจากผลค้นหา (id); id: REQUIREDqc6CJjYAAAAJ
languagestringภาษา; language: optional-
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 10001
sort_bystringการเรียง; sort_by: optional; year, citations, pubdate, titleyear
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
view_opstringโหมดดูผู้เขียน (view_op); view_op: optional; view_citation, list_colleaguesview_citation
citation_idstringรหัสบทความผู้เขียนแบบเต็ม (citation_id); citation_id: optional; ^[A-Za-z0-9_-]{12}:[A-Za-z0-9_-]{1,100}$-
startintegerตำแหน่งผลลัพธ์ต้นฉบับ (start); start: optional; min: 0; max: 100000
numintegerผลลัพธ์ต่อหน้า (num); num: optional; min: 1; max: 1001

การตรวจสอบ

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[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 id
  • id, citation_id: copy from fresh author search/profile results; list_colleagues selects co-authors

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: optionalBrown v Board of Education
languagestringภาษา; language: optional-
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 1011
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
citesstringรายการรหัสบทความที่ถูกอ้างอิง (cites); cites: optional; ^[1-9][0-9]{0,19}(?:,[1-9][0-9]{0,19}){0,19}$-
clusterstringรหัสกลุ่มฉบับบทความ (cluster); cluster: optional; ^[1-9][0-9]{0,19}$-
as_ylointegerขอบเขตปีที่เผยแพร่ (as_ylo); as_ylo: optional; min: 1; max: 99991
as_yhiintegerขอบเขตปีที่เผยแพร่ (as_yhi); as_yhi: optional; min: 1; max: 99991
scisbdintegerตัวกรองบทความวิชาการ (scisbd); scisbd: optional; min: 0; max: 20
filterintegerตัวกรองบทความวิชาการ (filter); filter: optional; min: 0; max: 10
as_visintegerตัวกรองบทความวิชาการ (as_vis); as_vis: optional; min: 0; max: 10
as_rrintegerตัวกรองบทความวิชาการ (as_rr); as_rr: optional; min: 0; max: 10
startintegerตำแหน่งผลลัพธ์ต้นฉบับ (start); start: optional; min: 0; max: 10000
numintegerผลลัพธ์ต่อหน้า (num); ค่าเริ่มต้น: 10; num: optional; min: 1; max: 201
lrstringตัวกรองภาษาเอกสาร (lr); lr: optional; UTF-8 bytes: 1024-
as_sdtstringตัวกรองบทความหรือศาล (as_sdt); ตัวอย่าง: 4,33,192; as_sdt: optional; UTF-8 bytes: 1024; ^[0-9]{1,8}(?:,[0-9]{1,6})*$-
safestringตัวกรองบทความวิชาการ (safe); safe: optional; active, offactive
case_idstringรหัสคำพิพากษา (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 supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[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 precision
  • scisbd: 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 only
  • case_id OR query OR cites OR cluster: required
  • case_id => only case_id, language, device, zero_trace; NOT search filters or pagination
  • as_sdt: 4 OR 4,court_id[,court_id...]

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
idstringรหัสจากผลค้นหา (id); id: REQUIRED; ^[A-Za-z0-9_-]{12}$p7YVSi5UNiMJ
languagestringภาษา; language: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue

การตรวจสอบ

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[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

ตัวอย่าง

bash
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

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}