Skip to main content
POST
Convert Webpage URL to PDF

Request contract

  • Method and path: POST /apis/v1/pdf-co/pdf-from-url
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/pdf-co/pdf-from-url
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0103 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

Public webpage URL to convert to PDF.

DoNotWaitFullLoad
boolean

Whether to begin conversion after minimal loading instead of waiting for the full page load.

expiration
integer

Number of minutes before the temporary output link expires.

HTML inserted in the footer of every output page.

header
string

HTML inserted in the header of every output page.

legacyRendition
boolean

Whether to render with PDF.co's legacy Chromium version.

margins
string

Page margins as one value or as top, right, bottom, and left values using px, mm, cm, or in units.

mediaType
enum<string>

CSS media type used to render the webpage.

Available options:
print,
screen,
none
name
string

File name for the generated PDF.

orientation
enum<string>

Portrait or landscape page orientation.

Available options:
Portrait,
Landscape
paperSize
string

Standard paper size such as Letter or A4, or a custom width and height such as '200mm 300mm'.

printBackground
boolean

Whether to include webpage background colors and images.

profiles
string

Advanced PDF.co conversion settings as a JSON-formatted string.

renderTimeout
integer

Maximum webpage rendering time in milliseconds, up to 177000.

Required range: x <= 177000

Response

Tool result data

error
boolean
required
status
required
credits
integer
duration
integer
name
string
pageCount
integer
remainingCredits
integer
url
string