API Reference
Search YC Companies
WSS
Messages
Search YC Companies
This endpoint provides real-time search functionality for YC companies using WebSocket. It allows you to search through YC companies with natural language queries and receive results in real-time.
WebSocket Connection
Connect to the WebSocket endpoint:
Request Format
Send a JSON message with the following structure:
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
query | string | Yes | The natural language search query |
limit | integer | No | Maximum number of results to return (default: 30, max: 100) |
acceptance_threshold | number | No | Acceptance score threshold (0-100) for matches (default: 85) |
api_key | string | Yes | Your API key for authentication |
Response Format
The server will respond with a JSON message containing the search results:
Response Fields
Field | Type | Description |
---|---|---|
results | array | List of matching YC companies |
total | integer | Total number of results returned |
query | string | The original search query |
error | string | Error message if the search encountered an issue |
Company Object Fields
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the company |
company_id | string | Company’s internal ID |
company_name | string | Name of the company |
company_website | string | Company’s website URL |
linkedin_company_description | string | Company description from LinkedIn |
linkedin_industry | string | Industry classification from LinkedIn |
linkedin_speciality | string | Company specialties from LinkedIn |
linkedin_headcount | integer | Company size from LinkedIn |
criteria | object | Company matching criteria |
yc_description | string | Company description from YC |
batch | string | YC batch information |
status | string | Company status |
Error Handling
The server may respond with an error message in the following format:
Common error messages:
- “API key is required”
- “Invalid or expired API key”
- “Insufficient credits for X results”
- “Maximum limit is 100 results”
- “Limit cannot be negative”
Example Usage
Messages