Using Ingest
Ingest has one tool. You ask your client to read a page, your client calls the tool, and the page comes back as something you can use.
The ingest_url tool
The tool is called ingest_url. It has two inputs:
-
url— required. A public http or https link to the page you want to read. -
format— optional.markdownis the default;jsonis the other choice.
Your client calls it when you ask it to read a page. You never call it yourself, and you cannot pass a render profile to it.
ingest_url(url="https://example.com", format="markdown")
What you get back
With markdown, the page comes back as clean text: the
words a person would read, without the navigation and ads around them.
With json, the page comes back as Capture JSON: the same
content as structured data, for code to read.
Only the content is returned. Nothing else comes with it.
Render profiles
A render profile shapes the output — for example, whether it carries frontmatter. It is not a tool input.
The Free plan sets it for you. On other plans, you choose it in Preferences on your Account page. The anonymous trial uses its own.
Limits
Ingest limits every caller, in four ways:
- A rate limit: how many calls you can make in a short time.
- A daily limit: how much you can use in one day. It resets at midnight UTC.
- One call at a time: a call must finish before the next one starts.
- A shared service limit: when Ingest is busy, your call is refused. Retry shortly.
Your own values are on your Account page. The anonymous trial has smaller limits; sign in for the Free plan.
Errors
When a call is refused, your client shows a code. The codes you can see:
rate_limited- You made calls too fast. Wait a moment and try again.
quota_exceeded- You reached your daily limit. It resets at midnight UTC.
concurrency_exceeded- You already have a call running. Wait for it to finish.
capacity_exceeded- Ingest is busy. Retry shortly.
no_active_subscription- Your plan is not active. Check your Account page.
account_suspended- Your Account was switched off. Your Account page shows who to contact.
account_deleted- Your Account was deleted. Sign in again for a new Free Account, then reconnect your client.
ingest_not_allowed- Your Account cannot use Ingest. Check your plan on your Account page.
tool_disabled- The tool is switched off. Try again later.
A link can also be refused before any call is made:
- It is not an http or https link.
- It contains a username or password.
- It is not a public address.
- Its host does not resolve.
Privacy
What Ingest keeps, and how to have it deleted, is on the privacy page.