Request an action on one or more companies
These actions are particularly powerful for automating processes within your product using our API.
They enable you to not only enrich companies that aren't yet in our database but also to perform more detailed enrichment on existing ones if needed (such as extracting products for an e-commerce website).
As actions are a new feature in our product, please feel free to reach out with any ideas for additional ones. We’d be happy to discuss them with you.
Signup to access all our API features
Get your 500 free credits and start enriching and searching companies.
No credit card required
The domains that need to be processed. If you pass more than 100K domains, the request will be split into multiple actions.
["pearson.com","united.com"]
Indicates whether you are requesting a price estimate.
Possible values
The type of task to be performed.
Possible values
The ID of the list to be processed.
42
The actions that have been triggered by the request.
Indicates whether you are requesting a price estimate.
import createClient from '@thecompaniesapi/sdk'
const tca = createClient({ apiToken: 'YOUR_API_TOKEN' })
const response = await tca.requestAction({
domains: ['microsoft.com', 'apple.com'],
job: 'enrich-companies',
estimate: false
})
const actions = response.data.actions // Track this via fetchActions
const meta = response.data.meta // Meta information