6.0.0 • Published 5 years ago
@datafire/import_data v6.0.0
@datafire/import_data
Client library for import.io
Installation and Usage
npm install --save @datafire/import_data
let import_data = require('@datafire/import_data').create({
api_key: ""
});
.then(data => {
console.log(data);
});
Description
Actions
extractor.extractorId.csv.latest.get
Get the latest crawl run results as a csv
import_data.extractor.extractorId.csv.latest.get({
"extractorId": ""
}, context)
Input
- input
object
- extractorId required
string
: the id of the extractor to start get the latest crawl run data
- extractorId required
Output
- output
object
extractor.extractorId.json.latest.get
Get the latest crawl run results as json
import_data.extractor.extractorId.json.latest.get({
"extractorId": ""
}, context)
Input
- input
object
- extractorId required
string
: The id of the extractor to start get the latest crawl run data
- extractorId required
Output
- output
object
Definitions
APIError
- APIError
object
- code
integer
: Internal error code - error
string
: (deprecated) A message containing a brief description of the error - message
string
: A message containing a brief description of the error
- code
CrawlRun
- CrawlRun
object
- extractorId
string
- failedUrlCount
integer
- guid
string
- rowCount
integer
- runtimeConfigId
string
- startedAt
integer
- state
string
- stoppedAt
integer
- successUrlCount
integer
- totalUrlCount
integer
- urlListId
string
- extractorId
Inputs
- Inputs
object
- Example Input
string
- _url required
string
- Example Input
ObjectStoreSearchResult
- ObjectStoreSearchResult
object
- hits
object
- hits
array
- items
object
- _id
string
- _score
integer
- _type
string
- fields CrawlRun
- _id
- items
- total
integer
- hits
- timed_out
boolean
- took
integer
- hits
QueryResponse
- QueryResponse
object
- error
string
- exceptionType
string
- extractorData
object
- pageData
object
- runtimeConfigId
string
- sequenceNumber
integer
- timestamp
integer
- url
string
- error
Report
- Report
object
- configId
string
- guid
string
- name
string
- published
boolean
- reportId
string
- status
string
- summary
object
- type
string
- configId
ReportRun
- ReportRun
object
- autoPublish
boolean
- guid
string
- latestConfigId
string
- name
string
- type
string
- autoPublish
Schedule
- Schedule
object
- extractorId
string
- interval
string
- intervalData
object
- minutes
string
- time
string
- type
string
- minutes
- nextRunAt
integer
- ownerId
string
- startTimestamp
integer
- extractorId
ScheduleRequest
- ScheduleRequest
object
- extractorId required
string
- interval required
string
- startTimestamp
integer
- extractorId required