Skip to content

Quick start

Sign in to the console and make a key. A new account starts with $2 of balance, which is 2,000 searches. The key is shown once, so put it somewhere safe:

export SHINAPI_KEY="shin_..."
curl https://api.shinapi.com/v1/search \
-H "Authorization: Bearer $SHINAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "2026年の年収の壁はいくらですか", "max_results": 4}'

Put the passages in the model’s context and ask it to answer from them alone. Three rules make the answers better:

  • Cite url, and show attribution wherever you show a passage’s text.
  • Branch on outcome. On out_of_scope, ask another search. On no_match_in_scope, say that the sources do not answer it. Do not let the model fill the gap.
  • Ask again when incomplete is true before you conclude that something is not there.

An agent that speaks MCP needs none of this code: see MCP.