DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to teach a new site operation from its page request with API Anything

Record a site's page request for two example inputs and save it as a callable operation.

Short answer: git clone https://github.com/goodnight000/api-anything.git && cd api-anything; then npm ci && npm install -g "$(npm pack --silent)"; api-anything add hn-demo links --trigger 'https://news.ycombinator.com/from?site={domain}' --example domain=github.com --example2 domain=github.io --match path=/from --html '{"items":"tr.athing","fields":{"title":".titleline > a","url":".titleline > a@href"}}'. All steps.

Authorization notice. API Anything is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Reverse engineering. The tool records a site's own page requests and rebuilds them as callable operations, so check the site's terms before doing this.

Who it is forA developer who needs one specific data view from a site that has no public API, such as the latest stories on a domain in Hacker News.

The problemWriting a request by hand means reading network traffic and rebuilding headers and tokens for every site.

The outcomeA named operation that takes a new input, such as a domain, and returns its fields as JSON.

What you need first

  • Node 22.13 or newer
  • git, to clone the repository
  • Google Chrome, or another Chromium browser set with API_ANYTHING_BROWSER, for creating operations
  • A coding agent such as Claude Code or Codex, if you want the agent to call operations over MCP
  • The GitHub CLI, only if you plan to publish a spec

Steps

  1. git clone https://github.com/goodnight000/api-anything.git && cd api-anything
  2. npm ci && npm install -g "$(npm pack --silent)"
  3. api-anything add hn-demo links --trigger 'https://news.ycombinator.com/from?site={domain}' --example domain=github.com --example2 domain=github.io --match path=/from --html '{"items":"tr.athing","fields":{"title":".titleline > a","url":".titleline > a@href"}}' (inferred, check the README)
  4. api-anything call hn-demo links domain=arxiv.org

Prompt for your agent

Using the api-anything repo at github.com/goodnight000/api-anything, add an operation for <site> from the page URL <trigger URL with {placeholder}> using two example inputs, then call it with a new input. Expected output is an ok:true JSON result with data for the new input. Verify that the result uses a value that was not one of the two examples.

Caveat. Creating an operation needs a Chromium browser, and the README says repair can fail and that CAPTCHA challenges must be cleared by hand.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for goodnight000/api-anything and "Teach a new site operation from its page request"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer