> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.casestudies.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.casestudies.dev/_mcp/server.

# Compare vendors

POST https://whatsapp-backend-knd2.onrender.com/v1/compare
Content-Type: application/json

Compare up to 5 companies side-by-side. Optionally filter case studies
by your industry to see which vendor has the most relevant experience.

Ideal for procurement teams evaluating vendors.


Reference: https://docs.casestudies.dev/api-reference/compare-vendors

## Authentication

- `X-API-Key` header (required) — Your casestudy.dev API key. Get one at POST /v1/keys.

## Request

### Body (application/json)

This endpoint expects an object.

- `companies` (list of string, required) — Company slugs to compare
- `industry` (string, optional, nullable) — Filter case studies by your industry
- `limit_per_company` (integer, optional, default: 5)

## Response

### 200

Side-by-side comparison

- `data` (list of V1ComparePostResponsesContentApplicationJsonSchemaDataItems, optional)
- `industry_filter` (string, optional, nullable)

## Types

### V1ComparePostResponsesContentApplicationJsonSchemaDataItems

- `company` (CompanySummary, optional)
- `case_studies` (list of CaseStudySummary, optional)
- `top_industries` (list of V1ComparePostResponsesContentApplicationJsonSchemaDataItemsTopIndustriesItems, optional)
- `notable_clients` (list of string, optional)

### CompanySummary

- `id` (string, optional)
- `name` (string, optional)
- `slug` (string, optional)
- `domain` (string, optional)
- `industry` (string, optional)
- `logo_url` (string, optional)
- `total_case_studies` (integer, optional)

### CaseStudySummary

- `id` (string, optional)
- `company_name` (string, optional)
- `company_slug` (string, optional)
- `title` (string, optional)
- `summary` (string, optional)
- `featured_client` (string, optional)
- `industry` (string, optional)
- `source_url` (string, optional)
- `tags` (list of string, optional)
- `word_count` (integer, optional)
- `published_date` (date, optional, nullable)

### V1ComparePostResponsesContentApplicationJsonSchemaDataItemsTopIndustriesItems

- `industry` (string, optional)
- `count` (integer, optional)

## Examples

**Request**

```json
{
  "companies": [
    "gocardless",
    "checkout",
    "paddle"
  ],
  "industry": "ecommerce",
  "limit_per_company": 5
}
```

**Response**

```json
{
  "data": [
    {
      "company": {
        "id": "string",
        "name": "Stripe",
        "slug": "stripe",
        "domain": "stripe.com",
        "industry": "fintech",
        "logo_url": "string",
        "total_case_studies": 1
      },
      "case_studies": [
        {
          "id": "string",
          "company_name": "Stripe",
          "company_slug": "stripe",
          "title": "How Figma scaled payments with Stripe",
          "summary": "Figma adopted Stripe to handle global payments, reducing checkout friction and increasing conversion by 15%.",
          "featured_client": "Figma",
          "industry": "design",
          "source_url": "string",
          "tags": [
            "string"
          ],
          "word_count": 1,
          "published_date": "2023-01-15"
        }
      ],
      "top_industries": [
        {
          "industry": "string",
          "count": 1
        }
      ],
      "notable_clients": [
        "string"
      ]
    }
  ],
  "industry_filter": "string"
}
```

**SDK Code**

```python
import requests

url = "https://whatsapp-backend-knd2.onrender.com/v1/compare"

payload = {
    "companies": ["gocardless", "checkout", "paddle"],
    "industry": "ecommerce",
    "limit_per_company": 5
}
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://whatsapp-backend-knd2.onrender.com/v1/compare';
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"companies":["gocardless","checkout","paddle"],"industry":"ecommerce","limit_per_company":5}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://whatsapp-backend-knd2.onrender.com/v1/compare"

	payload := strings.NewReader("{\n  \"companies\": [\n    \"gocardless\",\n    \"checkout\",\n    \"paddle\"\n  ],\n  \"industry\": \"ecommerce\",\n  \"limit_per_company\": 5\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://whatsapp-backend-knd2.onrender.com/v1/compare")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"companies\": [\n    \"gocardless\",\n    \"checkout\",\n    \"paddle\"\n  ],\n  \"industry\": \"ecommerce\",\n  \"limit_per_company\": 5\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://whatsapp-backend-knd2.onrender.com/v1/compare")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"companies\": [\n    \"gocardless\",\n    \"checkout\",\n    \"paddle\"\n  ],\n  \"industry\": \"ecommerce\",\n  \"limit_per_company\": 5\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://whatsapp-backend-knd2.onrender.com/v1/compare', [
  'body' => '{
  "companies": [
    "gocardless",
    "checkout",
    "paddle"
  ],
  "industry": "ecommerce",
  "limit_per_company": 5
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://whatsapp-backend-knd2.onrender.com/v1/compare");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"companies\": [\n    \"gocardless\",\n    \"checkout\",\n    \"paddle\"\n  ],\n  \"industry\": \"ecommerce\",\n  \"limit_per_company\": 5\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "companies": ["gocardless", "checkout", "paddle"],
  "industry": "ecommerce",
  "limit_per_company": 5
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://whatsapp-backend-knd2.onrender.com/v1/compare")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```