Tools
Official Tinq.ai python SDK.
All URIs are relative to https://tinq.ai/api/v2
If you are an enterprise customer, check your account for your custom endpoint.
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
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.
Example
- Bearer Authentication (bearerAuth):
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content_type | str | [optional] | |
accept | str | [optional] | |
input_file | bytearray | [optional] |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
extract_url
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.
Example
- Bearer Authentication (bearerAuth):
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content_type | str | [optional] | |
accept | str | [optional] | |
extract_url | str | [optional] |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |