NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Content Filter API

POST

Screen links for adult content, malware, and gambling.

Content Filter checks URLs against a comprehensive blocklist of 200,000+ domains categorized as ads-malware, fake news, gambling, adult content, or social media. Returns the specific category for blocked domains, plus every category a domain appears in across a 1.7M-domain index.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/contentfilter
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "url": "https://www.pornhub.com/video/123",
    "domain": "www.pornhub.com",
    "isBlocked": true,
    "category": "porn",
    "matchedDomain": "pornhub.com",
    "safetyRating": "unsafe",
    "categories": [
      "porn"
    ]
  }
}

About the Content Filter API

A content filter API for parental control apps, workplace web filters and link moderation. Send a URL or bare domain and find out whether it sits on a blocklist, along with the exact listed domain that matched and a simple safe or unsafe rating. Subdomains are covered: a page on any subdomain of a blocked site is caught through its parent domain.

Content Filter uses the StevenBlack hosts project, which aggregates blocklists from multiple reputable sources, and the lists are refreshed daily. Each blocked domain falls into one of five categories: ads-malware, fakenews, gambling, porn, or social.

The Free plan returns the blocked flag, the matched domain and the safety rating, which is enough to warn before a redirect, hold a chat message that contains a risky link, or stop a page loading in a kid safe browser. Paid plans add the category, so you can block gambling and adult content but allow social media, and a categories list that adds The Block List Project's drugs, piracy, crypto, ads, tracking, ransomware, gambling and adult lists.

How it works

The url value is trimmed, given https:// when it has no scheme, and parsed; its lowercased hostname becomes domain. Paths, ports and query strings are ignored, so example.com/page?x=1 and https://example.com give the same answer. A value that cannot be parsed returns 400.

The lookup tries the exact hostname first, then each parent domain in turn, stopping before the bare TLD: for a.b.example.com it checks a.b.example.com, b.example.com and example.com. The first hit sets isBlocked to true, safetyRating to unsafe, matchedDomain to the listed name and category to its label. With no hit, category and matchedDomain are null and the rating is safe, which means only that the domain is absent from these lists; the page itself is never fetched or scanned.

The blocklist is rebuilt daily from five StevenBlack hosts files: the unified ads and malware list, then the fakenews, gambling, porn and social extensions. A domain on several of them keeps the first category in that order, so category is always a single label.

categories comes from a separate, larger index combining those five lists with eight Block List Project lists. It gathers every category for the hostname and all its parents. When the StevenBlack lists have no entry but the index tags the domain gambling or porn (major sportsbooks such as draftkings.com are only in the larger index), the domain is still blocked with that category, and a ransomware tag blocks it as ads-malware; matchedDomain is then the tagged hostname or parent. The other index labels (drugs, piracy, crypto, ads, tracking) never set isBlocked, so categories can be non-empty while isBlocked is false. A popular domain keeps the Block List Project porn label only when StevenBlack's porn list agrees, to limit false positives on mainstream sites. If the index cannot be read, categories is null rather than failing the call. On the Free plan category and categories are null.

What people use it for

Parental Controls
Block inappropriate content for children including adult sites, gambling, and fake news
Workplace Filtering
Keep employees focused by detecting social media and entertainment sites
Safe Browsing Apps
Build family-friendly browsers that warn users about unsafe content
Content Moderation
Screen user-submitted URLs before allowing them on your platform

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Content Filter

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Content Filter API.

Read the docs →
Which content categories are flagged?
On paid plans, the filter categorizes flagged domains into five groups: ads-malware, fake news, gambling, adult content, and social media. It screens against a curated list of over 200,000 domains, and also blocks domains that a 1.7M-domain index tags as gambling, adult or ransomware, so large sportsbooks and casino sites are caught even when the smaller list misses them.
What would checking 50,000 URLs a month cost me?
Checking 50,000 URLs requires 100,000 credits, using half of the Starter plan monthly allowance. That volume works out to about $0.0003 per check ($0.30 per 1,000 checks). The Free plan includes 100 checks every month.
Do I get the content category on the Free plan?
No, the specific category requires a paid plan starting with Starter. The Free plan indicates whether a domain is blocked or safe, but paid plans reveal whether the match was malware, adult material, gambling, social media, or fake news.
Where does the domain blocklist come from?
Content Filter uses the StevenBlack hosts project, which aggregates blocklists from multiple reputable sources. The database tracks more than 200,000 domains and is updated daily.
Can I use Content Filter to protect commercial users?
Yes, commercial use is supported on any paid plan. You can integrate the safety checks into workplace filtering tools, parental control products, or safe browsing apps, provided you do not resell or redistribute the underlying blocklist directly.

Ready to build with Content Filter? Start with 200 free credits — one key unlocks all 406+ APIs.

Explore the catalog

406+ APIs on the same key and the same response shape.

Browse all APIs