Extraction PDF Instaparser

Extraire le texte d'un document PDF via l'API Instaparser. Supporte les URLs et fichiers locaux.

Spar Skills Guide Bot
Data & IAIntermédiaire
1023/07/2026
Claude CodeCursorWindsurf
#instaparser#pdf#text-extraction#api#curl

Recommandé pour


name: instaparser:pdf description: Extract text content from a PDF using the Instaparser PDF API. Use when the user wants to parse or extract text from a PDF URL or file. user_invocable: true arguments:

  • name: source description: A URL or local file path of the PDF to parse required: true

Instaparser PDF Extraction

Extract text content from a PDF document using the Instaparser PDF API.

Instructions

  1. Determine whether the source is a URL or a local file path, then make the appropriate API request using curl via the Bash tool.

For a PDF URL, use the GET method:

curl -s -G "https://www.instaparser.com/api/1/pdf" \
  -H "Authorization: Bearer ${user_config.INSTAPARSER_API_KEY}" \
  --data-urlencode "url=<URL>"

For a local file, use the POST method with multipart form-data:

curl -s -X POST "https://www.instaparser.com/api/1/pdf" \
  -H "Authorization: Bearer ${user_config.INSTAPARSER_API_KEY}" \
  -F "file=@/path/to/file.pdf"

Before uploading a local file, verify it exists. Only include the output parameter if the user explicitly requests a format. Valid values are text, html, or markdown.

  1. Present the results clearly:
    • Show the title and word count as metadata
    • Display the extracted body text

The PDF API uses 5 credits per page.

Skills similaires