# API: Search

Search hostbill database for clients, services, domains and tickets.

# Required parameters

Parameter Description
query Search Query

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=search&query=QUERY

# PHP Samples

# Response

{
    "success": true,
    "results": {
        "Clients": [
            {
                "id": "27",
                "firstname": "John",
                "lastname": "Doe",
                "email": "[email protected]",
                "companyname": "",
                "ip": "192.168.56.1"
            }
        ],
        "Domains": [],
        "Accounts": [
            {
                "id": "91",
                "firstname": "John",
                "lastname": "Doe",
                "username": "hb_client_27_5",
                "domain": "testhostbill"
            }
        ],
        "Tickets": [
            {
                "ticket_number": "208032",
                "subject": "test",
                "id": "2",
                "name": "John Doe",
                "email": "[email protected]"
            }
        ],
        "Invoices": false,
        "Estimates": [],
        "Transactions": [],
        "Orders": [
            {
                "id": "105",
                "number": "1650966735",
                "firstname": "John",
                "lastname": "Doe",
                "date_created": "2016-02-24 04:53:59",
                "status": "Pending"
            }
        ],
        "RecurringInvoices": false
    },
    "call": "search",
    "server_time": 1460986923
}
Last Updated: 10/7/2024, 2:36:43 PM