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

How to sort a batch of texts into labels in one call with Classifier Dev

Label short texts with plain HTTP, no key or signup, up to a thousand per request.

Short answer: Run curl https://classifier.dev/spam,not+spam/Win+a+free+iPhone to see the path form return a label; then run curl "https://classifier.dev/?labels=spam,not+spam&text=Win+a+free+iPhone" to see the same call in query form, which is easier to build in code; run curl classifier.dev to read the plain text docs for the batch form, since the batch syntax is not shown in the README excerpt. All steps.

Who it is forA developer or ops person with a list of messages, tickets or comments to triage and no time to set up a model.

The problemHand-sorting or hand-writing rules for a pile of short texts takes hours and breaks as wording changes.

The outcomeEach text gets a label and a calibrated confidence, returned as plain text that a script or agent can read.

What you need first

  • A terminal with curl or another HTTP client
  • npm, only if you want the classify CLI
  • The texts you want to label and a set of label names

Steps

  1. Run curl https://classifier.dev/spam,not+spam/Win+a+free+iPhone to see the path form return a label.
  2. Run curl "https://classifier.dev/?labels=spam,not+spam&text=Win+a+free+iPhone" to see the same call in query form, which is easier to build in code.
  3. Run curl classifier.dev to read the plain text docs for the batch form, since the batch syntax is not shown in the README excerpt.
  4. Send your texts in batches of up to a thousand per request using the batch form from the docs, and collect each label in order. (inferred, check the README)
  5. Write the input text and returned label side by side so you can spot-check the results.

Prompt for your agent

Using the classifier.dev API from the classifier-dev repo, label each text in <input file> as bug, feature or praise by calling https://classifier.dev over plain HTTP with no key. Write the results to <output file> as CSV with the original text and the label. Verify that the number of output rows equals the number of input rows.

Caveat. The README excerpt shows the single-text form and states the thousand-text limit, but not the exact batch syntax, so confirm it at classifier.dev before scripting.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for mrmps/classifier-dev and "Sort a batch of texts into labels in one call"

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