Skip to main content
POST
/
sources
/
urls
/
content
Get URL Content
curl --request POST \
  --url https://api.peec.ai/customer/v1/sources/urls/content \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "url": "https://example.com/blog/page1",
  "project_id": "or_f45b94ba-5e35-4982-93ed-285e72ee14eb",
  "max_length": 100000
}
'
{
  "data": {
    "url": "https://example.com/blog/page1",
    "title": "<string>",
    "domain": "example.com",
    "channel_title": "<string>",
    "classification": "CORPORATE",
    "url_classification": "HOMEPAGE",
    "content": "<string>",
    "content_length": 123,
    "truncated": true,
    "content_updated_at": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

Query Parameters

project_id
string

Required if using a company api key

Example:

"or_f45b94ba-5e35-4982-93ed-285e72ee14eb"

Body

url
string<uri>
required
Example:

"https://example.com/blog/page1"

project_id
string

Required if using a company api key

Example:

"or_f45b94ba-5e35-4982-93ed-285e72ee14eb"

max_length
integer
default:100000

Maximum number of characters of content to return. Defaults to 100,000. If the stored content is longer, the response will be truncated and truncated=true.

Required range: 1 <= x <= 20000000
Example:

100000

Response

Success

Success

data
object
required