# CheckFeature

> Detect whether a company’s site has a given feature, technology, or capability.

- **Endpoint:** `POST https://api.nyne.ai/company/checkfeature`
- **Group:** Company APIs (https://api.nyne.ai/documentation/company.md)
- **Auth:** `X-API-Key` + `X-API-Secret` headers
- **Mode:** Asynchronous - submit returns a `request_id` (normally with `202 Accepted`); poll `GET /company/checkfeature?request_id=<request_id>` with the same auth headers until the endpoint reports a terminal response. Where supported, a `callback_url` can notify you when queued work finishes; follow this endpoint's retrieval notes.
- **HTML version:** https://api.nyne.ai/documentation/company/checkfeature

Check whether a company has a specific feature, technology, or capability - JavaScript libraries, security/compliance badges, technology stacks, integrations, and more. Both `company` (note: this field is named `company`, not `company_name`) and `feature` are required. The request is queued asynchronously and returns a `request_id`; poll or supply a `callback_url`. The completed result carries `has_feature`, a confidence level, and supporting evidence. A credit is charged only when a result is produced.

## Authentication

All `/person/*` and `/company/*` endpoints authenticate with an API key and secret sent as HTTP headers on every request: `X-API-Key` and `X-API-Secret`. Create keys from your Nyne.ai dashboard and keep the secret server-side. Rate limits: 100 requests/minute, 1,000 requests/hour. Full guide: https://api.nyne.ai/documentation/authentication.md

## Parameters

| Name | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `company` | string | **yes** | Company name or domain to check. Use the field name `company`, not `company_name`. Max 255 chars. | "stripe.com" |
| `feature` | string | **yes** | Feature to detect, e.g. “jQuery library”, “SOC 2 badge”, “uses Cloudflare”. Max 500 chars. | "React" |
| `callback_url` | string | no | http(s) URL on an allowed host that receives the completed payload automatically. | "https://example.com/webhooks/checkfeature" |

## Polling for the result

A newly queued submit normally returns `202 Accepted` with a `request_id`. Poll the same path until `status` is `completed` (results stay available afterwards). Where supported, pass a `callback_url` on the submit to receive a webhook when queued work finishes; keep the documented GET as a recovery and retrieval path:

```bash
curl "https://api.nyne.ai/company/checkfeature?request_id=<request_id>" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET"
```

## Credit usage

| Item | Credits | Condition |
| --- | --- | --- |
| CheckFeature | - | Charged once when a result (found/not_found) is produced |
| No data | 0 | No result / failure never burns credits |

## Responses

| Code | Meaning |
| --- | --- |
| `202` | Feature check queued - poll the status endpoint with the returned request_id |
| `400` | missing_parameters / invalid_parameters / invalid_callback_url |
| `401` | Missing or invalid API credentials |
| `403` | subscription_required or ip_not_allowed |
| `404` | no checkfeature data found (no credit charged) |
| `429` | rate_limit_exceeded / monthly_limit_exceeded |
| `503` | service_unavailable - the API is temporarily unavailable |

## Example request

### cURL

```bash
curl -X POST https://api.nyne.ai/company/checkfeature \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "company": "stripe.com",
    "feature": "React",
    "callback_url": "https://example.com/webhooks/checkfeature"
  }'
```

### Python

```python
import requests

resp = requests.post(
    "https://api.nyne.ai/company/checkfeature",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "X-API-Secret": "YOUR_API_SECRET",
    },
    json={
        "company": "stripe.com",
        "feature": "React",
        "callback_url": "https://example.com/webhooks/checkfeature",
    },
)
data = resp.json()
print(data)
```

### Node

```javascript
const resp = await fetch("https://api.nyne.ai/company/checkfeature", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "X-API-Secret": "YOUR_API_SECRET",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    company: "stripe.com",
    feature: "React",
    callback_url: "https://example.com/webhooks/checkfeature",
  }),
});
const data = await resp.json();
console.log(data);
```

### PHP

```php
<?php
$ch = curl_init("https://api.nyne.ai/company/checkfeature");
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "X-API-Key: YOUR_API_KEY",
    "X-API-Secret: YOUR_API_SECRET",
    "Content-Type: application/json",
  ],
  CURLOPT_POSTFIELDS => json_encode([
    "company" => "stripe.com",
    "feature" => "React",
    "callback_url" => "https://example.com/webhooks/checkfeature",
  ]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);
```

## Example response

```json
{
  "request_id": "64f2d8e4cf1f065a9b4e7fbc3df6aabb_1700000123_4410",
  "status": "completed",
  "completed": true,
  "result": {
    "company": "stripe.com",
    "feature": "React",
    "has_feature": true,
    "confidence": "high",
    "evidence": "React 18 detected in the site's bundled JavaScript."
  },
  "completed_on": "2026-01-15T10:35:00Z"
}
```

---

All documentation pages are available as Markdown by appending `.md` to their URL. Index: https://api.nyne.ai/llms.txt
