Skip to Content
Code ExamplesCode Examples

Code Examples

This section provides code examples for integrating with the WebClassifAI API in various programming languages. Each example demonstrates how to:

  • Make a POST request to the API
  • Handle the response
  • Process multiple predictions
  • Implement error handling

Available Examples

Common Requirements

All examples require:

  1. A valid API key
  2. The target URL: https://api.classifai.com/v1
  3. JSON request payload with the following structure:
    { "urls": ["https://example.com"], "api_key": "your_api_key", "taxonomy": "iab-1.0" }

Testing the API

You can test the API using cURL:

curl -X POST https://api.classifai.com/v1 \ -H "Content-Type: application/json" \ -d '{ "urls": ["https://example.com"], "api_key": "your_api_key", "taxonomy": "iab-1.0" }'

Try in Postman

Last updated on