Skip to content

Latest commit

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

LeadIQ API Samples

Ready-to-run code samples showing how to use the LeadIQ API. Each language folder is self-contained — pick the one that fits your setup and follow its README.


Languages

FolderLanguageRequirementsHow to run
bash/Bashcurl — pre-installed on most systemsbash graphql/01_check_usage.sh
python/Python 3.10+pip install -r requirements.txtpython graphql/01_check_usage.py
typescript/Node.js 24+npm installnpm run 01

Samples

The scripts are numbered and build on each other. Run them in order, or use full_pipeline to run all six steps at once and produce a single CSV.

GraphQL API (graphql/)

#ScriptWhat it doesCredits
01check_usageVerify your API key and view your credit balanceNone
02advanced_searchSearch for people by role, seniority, and location — saves their IDs1 per page
03enrich_profilesEnrich each person with their work email and direct phone1 per person
07find_job_changesFind people who recently changed jobs or were promoted — prints the previous → current transition (standalone, not part of the pipeline)1 per page

Prospector REST API (rest/)

#ScriptWhat it doesCredits
04create_prospector_listCreate a Prospector list named "Sales Leaders in New Hampshire"None
05add_prospects_to_listAdd the enriched profiles to the list as prospectsNone
06export_list_to_csvFetch all prospects from the list and save to output/prospects.csvNone

Full pipeline

ScriptWhat it does
full_pipelineRuns all six steps end-to-end in memory — the only output is output/pipeline_prospects.csv

API key

All samples authenticate with a Secret Base64 API key. Find yours in LeadIQ under Settings → API Keys.

  • Python / TypeScript — add the key to a .env file (see the folder README)
  • Bash — export it in your terminal: export LEADIQ_API_KEY=your_key

API overview

  • GraphQL APIhttps://api.leadiq.com/graphql — used by samples 01–03
  • Prospector REST APIhttps://prospector.leadiq.com — used by samples 04–06

Docker

Prefer not to install anything locally? A Docker setup in _docker/ covers all three languages. You only need Docker Desktop.


Questions or issues?

Contact the LeadIQ API team at api@leadiq.com.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages