ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
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.
This skill documents how to use the Prospeo Search Person API for finding leads with filters.
Use this skill when:
Endpoint: POST https://api.prospeo.io/search-person
Authentication: X-KEY header with API key
Rate Limits:
Result Limits:
POST /search-person
Headers: {
'Content-Type': 'application/json',
'X-KEY': process.env.PROSPEO_API_KEY
}
Body: {
page: number, // 1-1000
filters: ProspeoSearchFilters
}
interface ProspeoSearchFilters {
// Location (use "State, United States #US" format)
person_location_search?: {
include?: string[]; // e.g., ["California, United States #US"]
exclude?: string[];
};
// Job titles
person_job_title?: {
include?: string[]; // e.g., ["CEO", "Founder"]
exclude?: string[];
match_only_exact_job_titles?: boolean;
};
// Company size
company_headcount_custom?: {
min?: number; // e.g., 11
max?: number; // e.g., 500
};
// Industry
company_industry?: {
include?: string[]; // e.g., ["Information Technology"]
exclude?: string[];
};
// Technology stack
company_technology?: {
include?: string[]; // e.g., ["Salesforce", "HubSpot"]
exclude?: string[];
};
// Contact requirements
person_contact_details?: {
email?: string[]; // ["VERIFIED"] for verified emails only
mobile?: string[];
operator?: string;
};
// Duplicate control
person_duplicate_control?: {
hide_people_from_all_my_lists?: boolean;
hide_people_already_exported_before?: boolean;
};
// Funding (use this for "recently raised Series X" targeting)
company_funding?: {
// Days since last funding round. Valid values: 90, 180, 270, 365, or null (None).
// Maps to UI dropdown "Select last funding round date".
funding_date?: 90 | 180 | 270 | 365 | null;
// Last funding round amount (bucketed enum range).
// Valid bucket values: "<100K", "100K-500K", "500K-1M", "1M-5M", "5M-10M",
// "10M-25M", "25M-50M", "50M-100M", "100M-500M", "500M+", "Max"
last_funding?: { min?: string; max?: string } | null;
// Total funding raised across all rounds (same bucketed enum range as last_funding).
total_funding?: { min?: string; max?: string };
// Funding stage checkboxes. Valid values:
// "Pre seed", "Seed", "Series unknown", "Series A", "Series B",
// "Series C", "Series D", "Series E-J",
// "Grant", "Angel", "Private equity", "Debt financing",
// "Non equity assistance", "Post IPO equity", "Undisclosed",
// "Post IPO debt", "Product crowdfunding", "Equity crowdfunding",
// "Corporate round", "Convertible note", "Secondary market",
// "Initial coin offering", "Post IPO secondary"
stage?: string[];
};
// Company filters
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 };
}
interface ProspeoSearchApiResponse {
error: boolean;
message?: string;
results?: ProspeoSearchResult[];
pagination?: {
current_page: number;
total_page: number;
total_count: number;
per_page: number; // Always 25
};
}
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 };
};
}
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'
];
// Format for location filter
function formatStateLocation(state: string): string {
return `${state}, United States #US`;
}
// Replace "United States #US" with state-specific location
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;
}
// Token bucket rate limiter
class TokenBucket {
private tokens: number;
private lastRefill: number;
private maxTokens = 5;
private refillRate = 2.0; // tokens per second
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;
}
}
// Retry on 429 with exponential backoff
if (status === 429 && retryCount < 5) {
const backoffMs = Math.min(2000 * Math.pow(2, retryCount), 60000);
await sleep(backoffMs);
return searchPeople(filters, page, retryCount + 1);
}
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
});
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.
/prospeo-full-export — the search + paginated export scripts built on these filters/list-expander scripts/pull.ts — the same filters, used for wide TAM pulls/list-builder — orchestrates both as one lane of a larger list buildPROSPEO_API_KEY=your_api_key_here
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.
/prospeo-full-export — the main consumer of this reference/auto-research-public — also uses Prospeo search via phase-prospeo.tsMAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days