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

# Search Vendor Category

GET https://heimdall.eka.io/apis/external/search/searchVendorCategory

## Search Vendor Category

This endpoint allows users to search for vendor categories based on a query string.

### Request

* **Method:** GET

* **Endpoint:** `{{host}}/apis/external/search/searchVendorCategory`

* **Query Parameters:**

  * `q` (string): The search term used to look for vendor categories. In this example, the query is `budget category`.

### Response

The response will be in JSON format and contains the following structure:

* **categories** (array): An array of category objects that match the search query.

  * Each category object includes:

    * **id** (integer): The unique identifier for the category.

    * **name** (string): The name of the category.

#### Example Response

```json
{
    "categories": [
        {
            "id": 1961,
            "name": "budget category"
        }
    ]
}

```

### Notes

* The response will return an array of categories, which may be empty if no matches are found.

* Ensure that the query parameter is properly URL-encoded if it contains special characters.

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/search/search-vendor-category

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Request

### Query parameters

- `q` (string, optional) — Searches vendor categories using the q parameter by performing a case-insensitive partial match on the category name. Returns an empty response if q is blank.

## Response

### 200

OK

- `categories` (list of object, required)
  - `id` (integer, required)
  - `name` (string, required)

## Examples

**Response**

```json
{
  "categories": [
    {
      "id": 1961,
      "name": "budget category"
    }
  ]
}
```

**SDK Code**

```python Search_Search Vendor Category_example
import requests

url = "https://heimdall.eka.io/apis/external/search/searchVendorCategory"

querystring = {"q":"budget category"}

response = requests.get(url, params=querystring)

print(response.json())
```

```javascript Search_Search Vendor Category_example
const url = 'https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category';
const options = {method: 'GET'};

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

```go Search_Search Vendor Category_example
package main

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

func main() {

	url := "https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category"

	req, _ := http.NewRequest("GET", url, nil)

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

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

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

}
```

```ruby Search_Search Vendor Category_example
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category")

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

request = Net::HTTP::Get.new(url)

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

```java Search_Search Vendor Category_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category');

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

```csharp Search_Search Vendor Category_example
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Search_Search Vendor Category_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/search/searchVendorCategory?q=budget+category")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```