Skip to main content
This example finds buyer-intent data in the monthly Hacker News “Ask HN: Who is hiring?” thread. A company that is hiring data engineers is a strong signal of buying intent for data tooling.
  • The task starts on a search page, opens the newest thread, and reads the comments.
  • output_schema makes the task return one object per company, and the code validates the shape.
Before you run it, set ANCHORBROWSER_API_KEY and install the SDK. The Node.js version also needs zod 4, and the Python version needs pydantic.

Output

Both scripts on this page were run against the live API on November 27, 2026. This is the output of one of those runs. Your values will differ.

Notes

  • The thread is long, so this is the slowest of the examples. Two runs of the same prompt returned different companies, because the agent reads the thread in a different order each time.
  • The prompt asks for the first five matches to keep the run short. Raise the number for a full list.
  • The task result is checked: a status other than success raises an error instead of printing a failure as if it worked.
  • The session is ended in a finally block. A task does not end the session it runs in.