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
| Field | Type | Description |
|---|---|---|
job_idRequired | string | The job_id returned by icp.search |
format | string | csv, json, or markdown |
limit | integer | Maximum companies to include |
inline | boolean | Include 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.
| Field | Type |
|---|---|
job_id | string |
format | string |
path | string |
download_url | string |
row_count | integer |
columns | array of string |
preview | string |
content | string |
answer | string |
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())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/icp.export_results/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"job_id": "JOB_ID"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());