Claude API
5 articles tagged Claude API.
- Claude Tool Use Explained With Three Real Python Examples Build one reusable tool-use loop, then use it for an order lookup, a read-only SQL assistant and a calendar tool that asks a human before it acts.
- Draft Email Replies With AI and Never Let It Send Build a Python script that reads your inbox, drafts grounded replies with Claude, saves them as drafts for you to review, and defends against hostile emails.
- How to Get Reliable JSON From an LLM (With Python Code) Stop parsing broken JSON. Force a schema with tool use, validate with Pydantic, feed errors back for a retry, and measure how often your prompt really works.
- How to Use the Claude API in Python: A Beginner's Guide Install the SDK, make your first request, stream replies, hold a conversation, call your own functions and handle errors, with Python code you can run.
- Web Scraping with Python and AI: Turn Pages Into Clean Data Fetch pages politely, strip them to the text that matters, and have Claude return validated JSON. Includes robots.txt checks, caching and cost control.