cURL Examples

Test the image moderation API directly from your terminal. Perfect for quick testing and shell scripts.

Get API Key
curl -X POST https://api.imagemoderationapi.com/v1/moderate \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com/image.jpg"}'

cURL Use Cases

Quick Testing

Test API responses instantly from your terminal.

Shell Scripts

Automate moderation in bash scripts and cron jobs.

CI/CD Pipelines

Add content checks to your deployment pipelines.

Debugging

Inspect raw API responses for troubleshooting.

Documentation

Our docs include cURL for every endpoint.

Language Agnostic

Works anywhere cURL is available.

Try the API Now

Get Free API Key