Call it
curl https://api.peume.com/v1/call/google-scholar-read-court-opinion \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"case_id": "your case id"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-scholar-read-court-opinion", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"case_id": "your case id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-scholar-read-court-opinion",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"case_id": "your case id"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-scholar-read-court-opinion.
Parameters
case_idRequiredstringThe ID of the case you want to scrape. You can find case law `case_id` in Google Scholar API results. Please head to the Google Scholar API documentation to learn how to use the `as_sdt` parameter to get case law results using Google Scholar API.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
