Join our Newsletter — 33% off our NHI Course
Home› Guides› API Abuse for Beginners: How Bots Misuse Normal…
Guide Web & API Security

API Abuse for Beginners: How Bots Misuse Normal Features and How to Notice

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

API abuse is when someone uses an app's normal features, usually with a script, in ways that harm the business.

This guide is for anyone who runs, builds or pays for a website or app. You do not need to write code to be affected: if your business offers online booking, sign-up, text message codes or a shop, those features run on APIs that can be misused.

In short

  • API abuse uses features that work as designed, such as sign-up or "send me a code", but at a scale or speed no real customer would.
  • It often costs money directly: text message bills, cloud bills, empty stock or blocked bookings.
  • A cap on how often one caller can ask, called a rate limit, is the basic defence, but it works best with other checks.
  • Watch for sudden spikes, odd timing and costs that jump overnight, and decide which features would hurt most if misused.

What you will learn

  • Explain what API abuse is and how it differs from a break-in.
  • Spot the signs that a feature is being misused by a script.
  • Check which of your features could cost you money if misused.
  • Ask your team or supplier how often each caller is allowed to ask.
Software doorway (API)
a set of rules that lets one program ask another for data or actions.
Automated program (bot)
software that repeats a task by itself, often far faster than a person.
Request cap (rate limit)
a limit on how many requests one caller can make in a set time.

What is API abuse?

Think of a shop that puts out a tray of free samples with a sign saying "one each". Most people take one. One person keeps coming back in a different hat, and soon the tray is empty.

An API (short for application programming interface) is the doorway apps use to ask a service for something. Your phone app might ask a cinema's API for free seats, or ask a bank's API to send you a code.

API abuse is when someone uses those normal requests in a harmful way. Nothing is broken. The feature works exactly as built. The harm comes from the scale, the speed or the purpose. A community security list calls this misuse of sensitive business flows. These are features like buying, booking or posting that hurt the business if one caller overuses them.[1]

Most abuse is done by a bot, a program that repeats a task by itself. It can send thousands of requests while a person sends one.

Where the comparison stops working: the person in the hat is easy to spot. A bot can spread its requests across many computers and addresses, so each one looks like a different, ordinary customer.[1]

Why does it matter?

API abuse often costs money straight away, even when no data is stolen. A security project lists common kinds. They include testing stolen passwords, copying data and buying up stock.[2]

If you run a small business

What could happen: a script presses "send me a code" thousands of times, and you pay for every text message sent.

Check this: ask whether your text message and cloud services have a spending limit or a bill alert.

Next: Bots and Bot Traffic for Beginners

If you are new to development

What could happen: your sign-in feature lets a script try stolen passwords against many accounts.

Check this: make sure sign-in, password reset and code checks have stricter limits than other features.

Next: API Security for Beginners

If you look after customer support

What could happen: real customers complain that every booking slot or offer is gone within seconds.

Check this: pass these complaints to the technical team, with times, because they can be a sign of bots.

Next: Scalper Bots for Beginners

What does it look like?

Here is a made-up extract from the record of requests, called a log, for a small shop's "send me a code" feature.

Example only. All values are made up.

TIME      FEATURE          PHONE NUMBER       FROM ADDRESS
09:14:02  send-login-code  07700 900001       192.0.2.10
09:14:02  send-login-code  07700 900002       192.0.2.11    (1)
09:14:02  send-login-code  07700 900003       192.0.2.12
09:14:03  send-login-code  07700 900004       198.51.100.7  (2)
... 4,812 more lines in the next ten minutes ...            (3)
TEXT MESSAGE COST TODAY: 0000.00 (EXAMPLE)                   (4)
  1. Several requests in the same second. A person could not type that fast.
  2. Requests come from many different addresses, so a limit on one address alone may not catch them.
  3. Thousands of requests in minutes, against a normal day of perhaps a few dozen.
  4. In a real file, this line would contain the money spent on text messages, rising with every request.

Why this is risky: each request looks normal on its own. Together, they can add up to a large bill.[3]

The safer way: limit how often codes can go to one number, and from one device or address. Set a spending limit with the text message supplier. Alert someone when the numbers jump.[3]

How does it work?

Most API abuse follows the same simple pattern.

  1. Find a valuable feature. The abuser looks for a feature that gives something away, costs the business money or holds data. Examples are sign-up rewards, booking slots, codes and search.
  2. Write a script. They write a small program that calls the feature directly, skipping the website's buttons.
  3. Repeat at speed. The script sends requests far faster than a person could. It may pause at random to look more human.
  4. Spread out. Requests are shared across many addresses or accounts, so no single one stands out.[1]
  5. Collect the gain. The abuser resells stock, uses free credit, sells copied data or uses accounts that a stolen password opened.
Diagram titled Normal use and API abuse look different in volume. Top lane, labelled Normal use: one customer sends a few requests to the app's API over a few minutes and each gets a normal reply. Bottom lane, labelled API abuse: a script on many computers sends hundreds of requests a second to the same API. A green box in the middle labelled Rate limit and checks lets the customer through and slows or blocks most of the flood before it reaches the API, with a note saying the limit should be tuned to each feature. A bar underneath lists the signs to watch: sudden spikes, odd timing, many accounts from one place and bills that jump.
Figure 1. Normal use and abuse can call the same feature. The difference is volume, speed and pattern.

The main defence is a rate limit: a cap on how many requests one caller can make in a set time. Over the cap, many services send a standard "too many requests" reply. It can also say how long to wait before trying again.[4]

Limits should fit the feature. A password reset or code check needs a much tighter limit than a product search.[3] Because abusers spread out, teams often add other checks too. One is spotting patterns no person would make, such as paying within a second of adding to the basket. Another is asking a suspicious caller to prove they are human.[1]

A worked example

Dana Rinaldi runs Thistle Florist, a fictional flower shop with an online ordering app. Umar Whitlock, a freelance developer, built and looks after the app.

The app lets customers sign in with a code sent by text message. It has worked quietly for a year, with perhaps thirty codes a day.

One Monday morning Dana gets an email from the text message supplier. Her account has passed its usual monthly spend before ten o'clock. She calls Umar.

Umar opens the app's log. He sees thousands of "send code" requests since the early hours, to long runs of phone numbers, from hundreds of addresses. Nobody has broken in. Someone is simply pressing the button with a script, perhaps to earn money from the texts or to test the app.

Dana remembers the sample tray. The feature works. It just has no "one each" sign.

Umar acts in order. First, he turns on a limit: a few codes per phone number per hour, and fewer requests per address. Next, he adds a simple "are you human?" check after two failed tries. Then he asks the supplier for a monthly spending limit and an alert at half that amount.

By lunchtime the requests have dropped back towards normal. In the records available to him, Umar finds no sign that any customer accounts were signed into. Dana asks the supplier about the cost and keeps the alert switched on.

Last, they list the app's other features that cost money or give things away, such as the first-order discount, and agree a limit for each.

Myths and mistakes

What people thinkWhat is true
If nobody hacked us, it is not a security problem.API abuse uses features as designed. It can still cost money, block customers or expose data.
One rate limit for the whole app is enough.Different features need different limits. Sign-in and codes need tighter ones.[3]
Blocking one busy address stops it.Abusers often spread requests across many addresses and accounts.[1]
Only big companies get targeted.Scripts are cheap to run, and any feature that costs money or gives something away can be a target.
Our app is the only way in.The API behind the app can usually be called directly, skipping the app's buttons and checks.

What can I do this week?

  • List the features that cost you money per use, such as text messages, emails or AI tools.
  • Ask your supplier or team what limit each of those features has.
  • Set a spending limit or bill alert with each paid service your app uses.
  • Agree who gets told when requests or costs suddenly jump.
  • Pass any "everything sold out at once" complaints to the technical team.

Checklist

  • We know which features would hurt most if misused.
  • Each important feature has a rate limit that suits it.
  • Sign-in, password reset and code features have stricter limits.
  • Paid services the app calls have spending limits or bill alerts.
  • Request logs are kept and someone checks them for spikes.
  • There is a plan to slow or block a flood without blocking real customers.
  • Keys that let other software call our API are kept secret and have an owner.

Common questions

Is API abuse the same as hacking?

Not quite. Hacking usually means getting past a check or using a flaw. API abuse often uses features exactly as designed, but at a harmful scale or for a harmful purpose. The two can overlap, for example when a script tests stolen passwords against a sign-in feature.

What is a rate limit?

A rate limit is a cap on how many requests one caller can make in a set time, such as five code requests an hour. Over the cap, the service slows or refuses the caller. Many services send a standard "too many requests" reply, which can say how long to wait.

Will a rate limit stop all API abuse?

No, but it is the first step. Determined abusers spread requests across many addresses and accounts to stay under each limit. Teams add other checks too. These include spotting patterns no person would make, spending limits on paid services and human checks.

How is API abuse different from web scraping?

Web scraping is one kind of automated misuse: copying content or prices in bulk. API abuse is the wider idea, and also covers things like testing stolen passwords, running up costs and booking out stock. See Web Scraping for Beginners.

What should I do if I think it is happening now?

Tell whoever runs the app straight away, with times and what you saw. They can tighten limits on the affected feature and check the logs. We suggest asking paid suppliers for a spending cap at once, so costs stop growing while the team works on it.

Where next?

Ready for the detail? Read the practitioner guide: Rate Limiting and API Abuse Guide. It goes further into limit designs, where to enforce them and how to measure whether they work.

Also useful:

Related NHI Mgmt Group resources: Bot Management Guide · API Security Guide · API Keys for Beginners

Key terms

API
A set of rules that lets one program ask another for data or actions.
Bot
Software that repeats a task by itself, often far faster than a person.
Rate limiting
A limit on how many requests one caller can make in a set time.
Credential stuffing
Trying usernames and passwords stolen from one service on many other services.
Scalping
Using automation to buy scarce goods faster than normal customers can, often to resell them.
Web scraping
Automatically copying information from websites in bulk.

Sources and further reading

  1. API6:2023 Unrestricted Access to Sensitive Business Flows. OWASP API Security Top 10 2023, OWASP Foundation. https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/, accessed 28 Nov 2026.
  2. OWASP Automated Threats to Web Applications. OWASP Foundation. https://owasp.org/www-project-automated-threats-to-web-applications/, accessed 28 Nov 2026.
  3. API4:2023 Unrestricted Resource Consumption. OWASP API Security Top 10 2023, OWASP Foundation. https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/, accessed 28 Nov 2026.
  4. RFC 6585: Additional HTTP Status Codes (section 4, 429 Too Many Requests). IETF, April 2012. https://www.rfc-editor.org/rfc/rfc6585.html, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.