Skip to content

Docs / All tools / Loop II: Acquisition

icp.export_results

Export completed ICP search results as CSV, JSON, or Markdown.

0 credits. Free: reads a finished result.

Example prompt

Send this to your AI app when Heelo is connected:

Export my ICP search results to CSV

Input fields

FieldTypeDescription
job_idRequiredstringThe job_id returned by icp.search
formatstringcsv, json, or markdown
limitintegerMaximum companies to include
inlinebooleanInclude the full file content in the response. Left unset, a small export returns its content and a large one does not, which is almost always what is wanted. Set false to always suppress it, true to force it up to 200 rows.

Output fields

The fields in data when status is success.

FieldType
job_idstring
formatstring
pathstring
download_urlstring
row_countinteger
columnsarray of string
previewstring
contentstring
answerstring

Code

The call with the input fields that the tool needs. Replace each word in capitals, such as JOB_ID. Set HEELO_API_KEY to your API key.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/icp.export_results/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "job_id": "JOB_ID",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())