Use this skill when the user wants to interact with the Instaparser API to parse articles, PDFs, or generate summaries.
https://www.instaparser.com/api/. The user must grant network access when prompted.INSTAPARSER_API_KEY environment variable.Go to https://www.instaparser.com and create an account.
After signing in, navigate to the API section of your dashboard to generate an API key.
Set the key in your environment: bash
export INSTAPARSER_API_KEY="your_api_key_here"
The free Trial plan includes a limited number of monthly credits. Paid plans are available for higher usage.
All API requests require a Bearer token. The API key should be provided via the INSTAPARSER_API_KEY environment variable, or the user can provide it directly.
text
Authorization: Bearer $INSTAPARSER_API_KEY
POST https://www.instaparser.com/api/1/article
Parse an article from a URL and extract its title, author, body content, images, and more. Uses 1 credit per call.
Request body (JSON):
ParameterTypeRequiredDescriptionurlstringYesURL of the article to parsecontentstringNoRaw HTML content to parse instead of fetching from url``outputstringNo"html" (default) or "text"``use_cacheboolNoWhether to use cache. Defaults to true
Example:
bash
curl -X POST https://www.instaparser.com/api/1/article \
-H "Authorization: Bearer $INSTAPARSER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/article", "output": "text"}'
Response fields:
FieldDescriptionurlCanonical URLtitleArticle titlesite_nameWebsite nameauthorAuthor namedatePublished date (UNIX timestamp)descriptionArticle descriptionthumbnailThumbnail image URLhtmlHTML body (when output is "html")textPlain text body (when output is "text")wordsWord countis_rtl``true if Arabic or HebrewimagesArray of image URLsvideosArray of video URLs
Parse PDFs from a URL (GET) or by uploading a file (POST). Uses 5 credits per page.
GET https://www.instaparser.com/api/1/pdf
ParameterTypeRequiredDescriptionurlstringYesURL of the PDF to parseoutputstringNo"html" (default) or "text"``use_cacheboolNoWhether to use cache. Defaults to truebash
curl "https://www.instaparser.com/api/1/pdf?url=https://example.com/report.pdf&output=text" \
-H "Authorization: Bearer $INSTAPARSER_API_KEY"
POST https://www.instaparser.com/api/1/pdf
Send as multipart form-data with a file field.
bash
curl -X POST https://www.instaparser.com/api/1/pdf \
-H "Authorization: Bearer $INSTAPARSER_API_KEY" \
-F "file=@report.pdf" \
-F "output=text"
Response fields: Same as Article API.
POST https://www.instaparser.com/api/1/summary
Generate an AI-powered summary with key sentences. Uses 10 credits per call.
Request body (JSON):
ParameterTypeRequiredDescriptionurlstringYesURL of the article to summarizecontentstringNoHTML content to parse instead of fetching from URLuse_cacheboolNoWhether to use cache. Defaults to true``streamboolNoStream the response. Defaults to falsebash
curl -X POST https://www.instaparser.com/api/1/summary \
-H "Authorization: Bearer $INSTAPARSER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/article"}'
Response fields:
FieldDescriptionkey_sentencesArray of key sentences extracted from the articlesummaryConcise summary of the article
CodeReason200Success400Parameter missing or malformed401API key is invalid403Account suspended (payment error)409Exceeded monthly credits (Trial plan only)412Upstream parsing error429Rate limit exceeded
Python:
python
from instaparser import InstaparserClient
client = InstaparserClient(api_key="YOUR_API_KEY")
# Article
article = client.Article(url="https://example.com/article", output="text")
# PDF
pdf = client.PDF(url="https://example.com/report.pdf")
# Summary
summary = client.Summary(url="https://example.com/article")
JavaScript:
javascript
import { InstaparserClient } from 'instaparser-api';
const client = new InstaparserClient({ apiKey: 'YOUR_API_KEY' });
// Article
const article = await client.article({ url: 'https://example.com/article', output: 'text' });
// PDF
const pdf = await client.pdf({ url: 'https://example.com/report.pdf' });
// Summary
const summary = await client.summary({ url: 'https://example.com/article' });
When the user asks to parse an article, PDF, or generate a summary:
INSTAPARSER_API_KEY is set in the environment. If not, ask the user for their API key.curl via the Bash tool to make the API request.output: "text" unless the user specifically wants HTML.