curl --request POST \
--url https://api.trieve.ai/api/file/html_page \
--header 'Content-Type: application/json' \
--data '{
"data": {
"extract": "<string>",
"html": "<string>",
"links": [
"<string>"
],
"markdown": "<string>",
"metadata": {
"articleSection": "<string>",
"articleTag": "<string>",
"dcDate": "<string>",
"dcDateCreated": "<string>",
"dcDescription": "<string>",
"dcSubject": "<string>",
"dcTermsAudience": "<string>",
"dcTermsCreated": "<string>",
"dcTermsKeywords": "<string>",
"dcTermsSubject": "<string>",
"dcTermsType": "<string>",
"dcType": "<string>",
"description": "<string>",
"error": "<string>",
"keywords": "<string>",
"language": "<string>",
"modifiedTime": "<string>",
"ogAudio": "<string>",
"ogDescription": "<string>",
"ogDeterminer": "<string>",
"ogImage": "<string>",
"ogLocale": "<string>",
"ogLocaleAlternate": [
"<string>"
],
"ogSiteName": "<string>",
"ogTitle": "<string>",
"ogUrl": "<string>",
"ogVideo": "<string>",
"publishedTime": "<string>",
"robots": "<string>",
"site_map": {
"changefreq": "<string>"
},
"sourceURL": "<string>",
"statusCode": 1,
"title": "<string>"
},
"rawHtml": "<string>",
"screenshot": "<string>"
},
"metadata": "<any>",
"scrapeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
This response does not have an example.
Chunk HTML by headings and queue for indexing into the specified dataset.
curl --request POST \
--url https://api.trieve.ai/api/file/html_page \
--header 'Content-Type: application/json' \
--data '{
"data": {
"extract": "<string>",
"html": "<string>",
"links": [
"<string>"
],
"markdown": "<string>",
"metadata": {
"articleSection": "<string>",
"articleTag": "<string>",
"dcDate": "<string>",
"dcDateCreated": "<string>",
"dcDescription": "<string>",
"dcSubject": "<string>",
"dcTermsAudience": "<string>",
"dcTermsCreated": "<string>",
"dcTermsKeywords": "<string>",
"dcTermsSubject": "<string>",
"dcTermsType": "<string>",
"dcType": "<string>",
"description": "<string>",
"error": "<string>",
"keywords": "<string>",
"language": "<string>",
"modifiedTime": "<string>",
"ogAudio": "<string>",
"ogDescription": "<string>",
"ogDeterminer": "<string>",
"ogImage": "<string>",
"ogLocale": "<string>",
"ogLocaleAlternate": [
"<string>"
],
"ogSiteName": "<string>",
"ogTitle": "<string>",
"ogUrl": "<string>",
"ogVideo": "<string>",
"publishedTime": "<string>",
"robots": "<string>",
"site_map": {
"changefreq": "<string>"
},
"sourceURL": "<string>",
"statusCode": 1,
"title": "<string>"
},
"rawHtml": "<string>",
"screenshot": "<string>"
},
"metadata": "<any>",
"scrapeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
This response does not have an example.
JSON request payload to upload a file
The body is of type object
.
Confirmation that html is being processed
Was this page helpful?