> 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 Office

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

### Search Office API

This endpoint allows users to search for offices based on a query string. The search is conducted using the provided query parameter, which can include keywords related to the office name or location.

#### Request

* **Method**: `GET`

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

* **Query Parameters**:

  * `q` (string): The search query that includes keywords to filter the offices. For example, `srinivas office new`.

#### Response

The response will return a JSON object containing a list of offices that match the search criteria.

* \{ "offices": \[ \{ "id": 74549, "name": "srinivas office new", "coords": \{ "name": "srinivas office new", "lat": 18.5245986, "lng": 73.7805654 }, "createdAt": 1719219356513, "updatedAt": 1749476189498, "gstIn": "23AAZCS7239P1Z9", "registeredName": "SRINIVAS OFFICE", "registeredAddress": "SRINIVAS OFFICE", "tags": \{ "manager\@5": "E0001", "gin\_owner": "E0009", "account.upi": "Eka Virtual Account", "cvbv": "b nb", "fghj": "hjk", "ds": "ds", "invoice\_owner#1960": "EMP004", "zone": "NORTH", "grn\_owner#1961": "E0001", "ro": "PATNA", "grn\_owner#1960": "E0001", "gin\_owner#1960": "E0001", "gin\_owner#1961": "EMP004" } } ]}

The `offices` array contains objects with details about each office, including identifiers, coordinates, registration details, and associated tags.

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

## Servers

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

## Request

### Query parameters

- `q` (string, optional) — Fetches offices whose names match the given q parameter using a case-insensitive partial match.

## Response

### 200

OK

- `offices` (list of object, required)
  - `id` (integer, required)
  - `name` (string, required)
  - `coords` (object, required)
    - `name` (string, required)
    - `lat` (double, required)
    - `lng` (double, required)
  - `createdAt` (integer, required)
  - `updatedAt` (integer, required)
  - `gstIn` (string, required)
  - `registeredName` (string, required)
  - `registeredAddress` (string, required)
  - `tags` (object, required)
    - `manager@5` (string, required)
    - `gin_owner` (string, required)
    - `account.upi` (string, required)
    - `cvbv` (string, required)
    - `fghj` (string, required)
    - `ds` (string, required)
    - `invoice_owner#1960` (string, required)
    - `zone` (string, required)
    - `grn_owner#1961` (string, required)
    - `ro` (string, required)
    - `grn_owner#1960` (string, required)
    - `gin_owner#1960` (string, required)
    - `gin_owner#1961` (string, required)

## Examples

**Response**

```json
{
  "offices": [
    {
      "id": 74549,
      "name": "srinivas office new",
      "coords": {
        "name": "srinivas office new",
        "lat": 18.5245986,
        "lng": 73.7805654
      },
      "createdAt": 1719219356513,
      "updatedAt": 1749476189498,
      "gstIn": "23AAZCS7239P1Z9",
      "registeredName": "SRINIVAS OFFICE",
      "registeredAddress": "SRINIVAS OFFICE",
      "tags": {
        "manager@5": "E0001",
        "gin_owner": "E0009",
        "account.upi": "Eka Virtual Account",
        "cvbv": "b nb",
        "fghj": "hjk",
        "ds": "ds",
        "invoice_owner#1960": "EMP004",
        "zone": "NORTH",
        "grn_owner#1961": "E0001",
        "ro": "PATNA",
        "grn_owner#1960": "E0001",
        "gin_owner#1960": "E0001",
        "gin_owner#1961": "EMP004"
      }
    }
  ]
}
```

**SDK Code**

```python Search_Search Office_example
import requests

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

querystring = {"q":"srinivas office new"}

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

print(response.json())
```

```javascript Search_Search Office_example
const url = 'https://heimdall.eka.io/apis/external/search/searchOffice?q=srinivas+office+new';
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 Office_example
package main

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

func main() {

	url := "https://heimdall.eka.io/apis/external/search/searchOffice?q=srinivas+office+new"

	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 Office_example
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/search/searchOffice?q=srinivas+office+new")

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 Office_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/searchOffice?q=srinivas+office+new")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://heimdall.eka.io/apis/external/search/searchOffice?q=srinivas+office+new');

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

```csharp Search_Search Office_example
using RestSharp;

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

```swift Search_Search Office_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/search/searchOffice?q=srinivas+office+new")! 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()
```