Official Tinq.ai python SDK.
Method | HTTP request | Description |
---|---|---|
extract_text_from_file | POST /extract-text | Extract text from file |
extract_url | POST /extract-article | Extract URL |
extract_text_from_file(content_type=content_type, accept=accept, input_file=input_file)Extract text from file This API endpoint allows users to upload a document file in one of the supported formats. The file can be sent either as
input_file
. The endpoint accepts various document types such as Word, PowerPoint, and PDF, and enforces a file size limit of 10 MB, and returns the text extracted from the document with no formatting.
Name | Type | Description | Notes |
---|---|---|---|
content_type | str | [optional] | |
accept | str | [optional] | |
input_file | bytearray | [optional] |
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
extract_url(content_type=content_type, accept=accept, extract_url=extract_url)Extract URL Article Extractor endpoint. Please use the newer scraper/extract-article for more flexibility.
Name | Type | Description | Notes |
---|---|---|---|
content_type | str | [optional] | |
accept | str | [optional] | |
extract_url | str | [optional] |
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |