| name | prospeo-search-api |
| description | This skill should be used when searching for people/leads using the Prospeo Search Person API. It provides the correct API format, filter types, rate limiting patterns, and state-by-state crawling techniques to overcome the 25K result limit. Use when building lead lists, searching by job title/industry/location, or integrating with Prospeo. |
Prospeo Search Person API
This skill documents how to use the Prospeo Search Person API for finding leads with filters.
When to Use
Use this skill when:
- Searching for people/leads by job title, industry, location, company size, etc.
- Building lead lists from Prospeo's database
- Running large US-wide searches that need state-by-state crawling
API Overview
Endpoint: POST https://api.prospeo.io/search-person
Authentication: X-KEY header with API key
Rate Limits:
- 2-2.5 requests/second (120-150 req/min)
- Token bucket implementation recommended
Result Limits:
- 25 results per page
- 1000 pages max = 25,000 results per search
- 1 credit per search request that returns at least 1 result
Request Format
POST /search-person
Headers: {
'Content-Type': 'application/json',
'X-KEY': process.env.PROSPEO_API_KEY
}
Body: {
page: number,
filters: ProspeoSearchFilters
}
Filter Types
interface ProspeoSearchFilters {
person_location_search?: {
include?: string[];
exclude?: string[];
};
person_job_title?: {
include?: string[];
exclude?: string[];
match_only_exact_job_titles?: boolean;
};
company_headcount_custom?: {
min?: number;
max?: number;
};
company_industry?: {
include?: string[];
exclude?: string[];
};
company_technology?: {
include?: string[];
exclude?: string[];
};
person_contact_details?: {
email?: string[];
mobile?: string[];
operator?: string;
};
person_duplicate_control?: {
hide_people_from_all_my_lists?: boolean;
hide_people_already_exported_before?: boolean;
};
company_funding?: {
funding_date?: 90 | 180 | 270 | 365 | null;
last_funding?: { min?: string; max?: string } | null;
total_funding?: { min?: string; max?: string };
stage?: string[];
};
company_name?: { include?: string[]; exclude?: string[] };
company_domain?: { include?: string[]; exclude?: string[] };
company_revenue_custom?: { min?: number; max?: number };
company_founding_year?: { min?: number; max?: number };
}
Response Format
interface ProspeoSearchApiResponse {
error: boolean;
message?: string;
results?: ProspeoSearchResult[];
pagination?: {
current_page: number;
total_page: number;
total_count: number;
per_page: number;
};
}
interface ProspeoSearchResult {
person: {
person_id: string;
first_name?: string;
last_name?: string;
full_name?: string;
current_job_title?: string;
linkedin_url?: string;
email?: string;
email_status?: string;
phone?: string;
location?: {
city?: string;
state?: string;
country?: string;
};
job_history?: Array<{
title?: string;
company_name?: string;
current?: boolean;
}>;
};
company?: {
company_id?: string;
name?: string;
domain?: string;
linkedin_url?: string;
industry?: string;
headcount?: number;
headcount_range?: string;
technologies?: string[];
location?: { city?: string; state?: string; country?: string };
};
}
State-by-State Crawling Pattern
For US-wide searches exceeding 25K results, split by state:
const US_STATES_BY_SIZE = [
'California', 'Texas', 'Florida', 'New York', 'Illinois', 'Pennsylvania',
'Ohio', 'Georgia', 'North Carolina', 'Michigan', 'New Jersey', 'Virginia',
'Washington', 'Arizona', 'Massachusetts', 'Tennessee', 'Indiana', 'Missouri',
'Maryland', 'Wisconsin', 'Colorado', 'Minnesota', 'South Carolina', 'Alabama',
'Louisiana', 'Kentucky', 'Oregon', 'Oklahoma', 'Connecticut', 'Utah', 'Iowa',
'Nevada', 'Arkansas', 'Mississippi', 'Kansas', 'New Mexico', 'Nebraska',
'Idaho', 'West Virginia', 'Hawaii', 'New Hampshire', 'Maine', 'Montana',
'Rhode Island', 'Delaware', 'South Dakota', 'North Dakota', 'Alaska',
'Vermont', 'Wyoming'
];
function formatStateLocation(state: string): string {
return `${state}, United States #US`;
}
function createStateFilters(baseFilters, state) {
const stateFilters = JSON.parse(JSON.stringify(baseFilters));
stateFilters.person_location_search.include =
stateFilters.person_location_search.include.map(loc =>
loc === 'United States #US' ? formatStateLocation(state) : loc
);
return stateFilters;
}
Rate Limiting Implementation
class TokenBucket {
private tokens: number;
private lastRefill: number;
private maxTokens = 5;
private refillRate = 2.0;
async acquire(): Promise<void> {
this.refill();
if (this.tokens >= 1) {
this.tokens -= 1;
return;
}
const waitMs = Math.ceil(((1 - this.tokens) / this.refillRate) * 1000);
await this.sleep(Math.max(waitMs, 500));
this.refill();
this.tokens -= 1;
}
}
Error Handling
if (status === 429 && retryCount < 5) {
const backoffMs = Math.min(2000 * Math.pow(2, retryCount), 60000);
await sleep(backoffMs);
return searchPeople(filters, page, retryCount + 1);
}
Example: Search for Tech Executives
const filters: ProspeoSearchFilters = {
person_location_search: {
include: ['United States #US']
},
person_job_title: {
include: ['CEO', 'CTO', 'VP Engineering', 'Head of Engineering'],
match_only_exact_job_titles: false
},
company_headcount_custom: {
min: 11,
max: 500
},
company_industry: {
include: ['Information Technology', 'Software']
},
person_contact_details: {
email: ['VERIFIED']
}
};
const service = new ProspeoSearchService();
const { results, summary } = await service.searchWithStateSplitting(filters, {
maxTotalContacts: 10000,
maxContactsPerState: 5000
});
Example: Recently Raised Series A
Target marketing leaders at US software companies (50–200 employees) that raised
Series A in the last 180 days:
const filters: ProspeoSearchFilters = {
person_location_search: { include: ['United States #US'] },
person_job_title: {
include: [
'CMO', 'Chief Marketing Officer',
'VP Marketing', 'Vice President Marketing',
'Head Marketing', 'Director Marketing',
'Growth', 'VP Growth', 'Head Growth'
]
},
company_headcount_custom: { min: 50, max: 200 },
company_industry: {
include: ['Software Development', 'Computer Software', 'Information Technology & Services']
},
company_funding: {
funding_date: 180,
stage: ['Series A']
},
person_contact_details: { email: ['VERIFIED'] }
};
Set funding_date to 90 / 180 / 270 / 365 for tighter or looser recency windows.
Use null (or omit) to ignore recency and match any company currently at the given stage.
Existing Implementation
The codebase has a full implementation at:
- Service:
Desktop/Cursor Testing/src/services/prospeoSearch.ts
- Types:
Desktop/Cursor Testing/src/types/prospeoSearch.ts
- CLI:
Desktop/Cursor Testing/src/scripts/prospeoSearch.ts
Environment Variables
PROSPEO_API_KEY=your_api_key_here
What to do next
This is a reference skill — no direct next step. Used by /prospeo-full-export and /auto-research-public to build the actual search.
Return to the skill that sent you here.
Related skills
/prospeo-full-export — the main consumer of this reference
/auto-research-public — also uses Prospeo search via phase-prospeo.ts