The Harvest API lets you manually trigger harvests, rather than waiting for internal processes to decide the best time for harvesting to take place.
Through the same API, you are able to harvest an individual item, or all items inside a specific container.
To initiate a harvest of a single item, make the following request:
POST /api/control/harvest
{
"location_id": "{location_id}",
"item_id": "{item_id}",
"extractors": ["{extractor1}", "{extractor2}"],
"profile_id": "{profile_id}",
"override_extractors": {bool},
"new_extractors_only": {bool},
"force": {bool},
"priority": {priority}
}
location_id
- (string) ID of the Location of the itemitem_id
- (string) The ID for the item to harvest. (For more information, see the Item Object documentation and the Stow Project Homepage)extractors
- (array of strings) of the extractor(s) to run. See list below.
NOTE: If you are calling extractors to run, you must first configure them on the Extractors page in the UI.profile_id
- (string) ID of the Extractor Profile being used for analysis. If omitted Extractor Profile set on container will be used.override_extractors
- (bool) If true
the requested extractors will run whether or not the extractor is enabled. If false
the requested extractors will only run if enabled in the UI.new_extractors_only
- (bool) If true
only extractors enabled since the item/container was last harvested will run - previously run extractors will not run again.force
- (bool) Whether to force the harvesting or not. If true
harvesting will happen regardless of the etag
field, otherwise the item will only be harvested if it has changed since the last harvest.priority
- (int 1 to 10). The priority of the harvest. 1=highest priority, 10=lowest priority. Harvest requests without a priority specified will be assigned a priority of 5. Any values <= 0 will be assigned a priority of 5. Any values > 10 will be set to 10.To initiate a harvest of all items inside a container, make the following request:
POST /api/control/harvest
{
"location_id": "{location_id}",
"container_id": "{container_id}",
"extractors": ["{extractor1}", "{extractor2}"],
"profile_id": "{profile_id}",
"override_extractors": {bool},
"new_extractors_only": {bool},
"force": {bool},
"ignore_recently_walked": {bool},
"priority": {priority}
}
location_id
- (string) ID of the Location of the containercontainer_id
- (string) ID of the container to harvestextractors
- (array of strings) of the extractor(s) to run. See list below.
NOTE: If you are calling extractors to run, you must first configure them on the Extractors page in the UI.profile_id
- (string) ID of the Extractor Profile being used for analysis. If omitted Extractor Profile set on container will be used.override_extractors
- (bool) If true
the requested extractors will run whether or not the extractor is enabled. If false
the requested extractors will only run if enabled in the UI.new_extractors_only
- (bool) If true
only extractors enabled since the item/container was last harvested will run - previously run extractors will not run again.force
- (bool) Whether to force the harvesting or not. If true
harvesting will happen regardless of the etag
field, otherwise the items will only be harvested if they have changed since the last harvest.ignore_recently_walked
- (bool) If true
it will ignore if the container has been recently walked or not.priority
- (int 1 to 10). The priority of the harvest. 1=highest priority, 10=lowest priority. Harvest requests without a priority specified will be assigned a priority of 5. Any values <= 0 will be assigned a priority of 5. Any values > 10 will be set to 10.Use the API Name when specifying which extractors to run.
Display Name | API Name |
---|---|
Archives | archive |
Audio Info | audioinfo |
Audio Previews | audio_previews |
Audiopeak | audiopeak |
Black Frames | black_scenes |
CSV | csv |
Caption Files | caption_files |
Captions V2 | captionsv2 |
Clapperboard | slates |
Color Bars | gm_color_bars |
Credits | credits |
Custom Tags - Amazon | customtagsrekog |
DBF | dbf |
DPX | dpx |
DRM | drm |
Digital Slates | gm_digital_slates |
Documents | document_pages |
EXIV2 | exiv2 |
Embedded Captions | captions |
FDX | fdx |
Geocoding | geocoding |
GrayMeta Audio Classification | gm_audio_classification |
GrayMeta Facial Recognition | gm_faces |
HTML | html |
Hashes | hashes |
JSON | json |
Language Detection - Google Translate | googlelanguage |
Language Detection - GrayMeta | gmlanguage |
Language ID - Apptek | languageid_apptek |
M2TS | m2ts |
MIME Type | mime_type |
MediaInfo | mediainfo |
NLP - Amazon | nlp_aws |
OCR | tesseract |
OfficeX | officex |
Silence | gm_silence |
Speech To Text - Amazon | amazon_transcribe |
Speech To Text - Apptek | apptek |
Speech To Text - Google | speech_to_text_google |
Speech To Text - VoiceBase | voicebase |
Speech To Text - Watson | speech_to_text_watson |
Speech to Text - Microsoft | speech_to_text_microsoft |
Speech to Text - Speechmatics | speech_to_text_speechmatic |
Sport Event Detection | gmsports |
Start & End Times | gm_start_end |
Stow Data Extractor | stow |
Texted Material | gm_texted |
Textless Material | gm_textless |
Thumbnails | thumbnailer |
Tokens | tokens |
Valossa API | valossa |
Video Main Frames | video_main_frames |
Video Previews | video_previews |
Vision - Amazon Rekognition | amazonrekog |
Vision - Amazon Rekognition Video | amazonrekogvideo |
Vision - Google | google_vision |
Vision - Microsoft | azure |
Vision - PicPurify | picpurify |
Visua | logograb |
Volume Detect | volumedetect |
Weather | weather |
XML | xml |
This documentation is generated from the latest version of GrayMeta Platform. For documentation relevant to your own deployed version, please use the documentation inside the application.
© 2021 GrayMeta, Inc.