Skip to main content
GET
/
contents
/
{id}
Python
from qaip import Qaip

client = Qaip(
    api_key="My API Key",
)
content = client.content(
    "id",
)
print(content.id)
{
  "id": "<string>",
  "text": "<string>",
  "url": "<string>",
  "title": "<string>",
  "timestamp": 123,
  "file_type": "html",
  "page_number": 0,
  "source_type": "crawl",
  "keywords": [
    "<string>"
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

id
string
required

Response

Successful get content

id
string
required

Content ID

text
string
required

Content chunk from the source

url
string
required

Source URL of the content

title
string
required

Title of the content or document

timestamp
integer
required

Unix timestamp when the content was indexed

file_type
enum<string>
required

The type of the source file

Available options:
html,
pdf,
ppt,
pptx,
pptm,
doc,
docx,
docm,
xls,
xlsx,
xlsm,
md,
txt,
notion_page
page_number
integer
default:0
required

Page number for paginated documents like PDFs. Set to 0 for sources without page numbers

source_type
enum<string>
required

The type of the source

Available options:
crawl,
local_file,
google_drive,
github,
notion
keywords
string[]