# Company Search by Text

Search Crustdata Company Text via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Crustdata, pass parameters such as fields, limit, search, and retrieve structured data including matching company identifier, continuation cursor, and total count for company shortlists, and follow-up enrichment, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/crustdata/crustdata-company-search-by-text/b466c740-5acd-48e3-96ad-4bfa5f0f7af5/
API ID: b466c740-5acd-48e3-96ad-4bfa5f0f7af5
Provider: crustdata
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/crustdata/crustdata/company/search
Page update time: 2026-12-03T02:49:32.751Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.009 / result
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:32.261Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "9000",
  "rounding": "ceil",
  "unit": "result",
  "unitQuantity": "1"
}
```

## Usage and limits
## Crustdata Company Text Search API

Send search.mode="hybrid", search.query, limit and fields=\["crustdata\_company\_id"\]. The query is 1–500 characters and limit is 1–10. companies contains ID records; total\_count can be null, while next\_cursor is the continuation reference.

## What You Can Build

- **Company shortlists**: Collect company IDs for a focused text query.
- **Follow-up enrichment**: Pass a selected ID to a separately scoped company lookup.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `companies[].crustdata_company_id` | Matching company identifier |
| `next_cursor` | Continuation cursor |
| `total_count` | Reported total count; the value can be null |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Company Search by Text request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "maxLength": 16384,
          "minLength": 1,
          "type": "string"
        },
        "fields": {
          "const": [
            "crustdata_company_id"
          ],
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "limit": {
          "maximum": 10,
          "minimum": 1,
          "type": "integer"
        },
        "search": {
          "additionalProperties": false,
          "properties": {
            "mode": {
              "const": "hybrid",
              "type": "string"
            },
            "query": {
              "maxLength": 500,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "mode",
            "query"
          ],
          "type": "object"
        }
      },
      "required": [
        "search",
        "limit",
        "fields"
      ],
      "type": "object",
      "description": "Find companies with a hybrid text query and return company IDs. Supply search.query, set search.mode to hybrid and request crustdata_company_id. Use limit to select up to ten results per page and pass next_cursor back as cursor with the same query. The result contains companies and pagination metadata for subsequent company identification or enrichment."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "companies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "crustdata_company_id": {
            "type": "integer"
          }
        }
      }
    },
    "next_cursor": {
      "type": "string"
    },
    "total_count": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/crustdata/crustdata/company/search' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "fields": [
    "crustdata_company_id"
  ],
  "limit": 2,
  "search": {
    "mode": "hybrid",
    "query": "software companies"
  }
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "companies": [
    {
      "crustdata_company_id": 1049850
    },
    {
      "crustdata_company_id": 19270920
    }
  ],
  "next_cursor": "<next_cursor_from_your_response>",
  "total_count": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which search mode is supported?
search.mode is fixed to hybrid. Supply a non-empty search.query of at most 500 characters.

### Does this return full company profiles?
The selected fields array is fixed to crustdata_company_id. Use a separate enrichment route for company information.

### Can I apply arbitrary field filters?
This route exposes the hybrid text search object, not the full upstream company-filter catalog. Additional filter or sort keys are outside its schema.

### How should I handle pagination and total_count=null?
Use the actual returned next_cursor as cursor with the same query and fixed fields. Keep a null total as unavailable count context, not zero. limit remains 1–10.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
This implementation is billed per result. Check its current price, quantity and rounding rules in the pricing area before sending the request.

## Available implementations
- crustdata: https://openany.si/crustdata/crustdata-company-search-by-text/b466c740-5acd-48e3-96ad-4bfa5f0f7af5/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
