Provided by PredictLeads
Search Companies by Country or State (PredictLeads)
Search the PredictLeads universe of companies by location and get one row per company with its domain, name and profile fields. Location is the only filter this Endpoint accepts — a country name, or a state name or abbreviation; a city name is rejected. Supply the location and a row limit. Pay per row returned, capped, with no plan.
How to run it
Step 1Set up
Once: paste this into your agent's chat. The Skill installs the CLI and logs in by itself. For an agent that cannot use a shell, connect it over MCP instead.
set up https://glasser.ai/SKILL.md
Show me how to use the PredictLeads endpoint /discover/companies on Glasser.glasser run -p predictleads -e '/discover/companies' -i '{"limit":10,"location":"United States"}' --endpoint-version 1Uses endpoint version 1. Inspect the current price before running. Install and log in first on Get Started.
Once per Run:
IDEMPOTENCY_KEY=$(uuidgen)Run it, and copy this same block to send it again:
curl -X POST https://api.glasser.ai/v1/runs \
-H "Authorization: Bearer gl_..." \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"provider":"predictleads","endpoint":"/discover/companies","input":{"limit":10,"location":"United States"},"endpoint_version":1}'Reuse the same Idempotency-Key to send it again: the second send is a read of the first Run. A new key is a new Run and a new Charge. Uses endpoint version 1; inspect the current price before running.
Step 2Try a specific example task
When you need to qualify potential customers, you might compare company information with your ideal-customer criteria to decide which accounts to research next.
Copy this prompt into your agent to review companies against your ideal-customer criteria.
Use predictleads:/discover/companies on Glasser.
Check the returned company data against my ideal-customer criteria.Endpoint structure
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"location"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 25,
"minimum": 1
},
"location": {
"type": "string",
"maxLength": 100,
"minLength": 1
}
},
"additionalProperties": false
}{
"limit": 10,
"location": "United States"
}This Endpoint publishes no output schema. You get the Provider's own response body, unchanged — we do not warrant a shape we cannot guarantee.
How pricing works
| Per result returned | Charged for each result returned. No charge when no data is returned. | $0.04 |
|---|---|---|
| Maximum per Run | The total charge will not exceed this amount. | $1.25 |
| Provider error | The Provider failed to answer. | $0.00 |
| Timed out | The Run exceeded its time limit. | $0.00 |
| Internal failure | An internal error prevented completion. | $0.00 |