Tools
Tinq\Tools
Official Tinq.ai PHP SDK.
All URIs are relative to https://tinq.ai/api/v2, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
extractTextFromFile | POST /extract-text | Extract text from file |
extractUrl | POST /extract-article | Extract URL |
extractTextFromFile()
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
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | [optional] | |
accept | string | [optional] | |
input_file | \SplFileObject**\SplFileObject** | [optional] |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type:
multipart/form-data
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
extractUrl()
Extract URL
Article Extractor endpoint. Please use the newer scraper/extract-article for more flexibility.
Example
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | [optional] | |
accept | string | [optional] | |
extract_url | string | [optional] |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type:
multipart/form-data
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]