Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/apify-deploy-integration

@820dfc8
Run it yourself

Deploy Apify Actors and integrate scraping into external applications. Use when deploying an Actor to the platform, integrating Actor results into a web app (Next.js, Express), wiring webhooks, or scheduling scraping pipelines. Trigger with "deploy apify actor", "apify Vercel integration", "apify production deploy", "integrate apify results", "apify API endpoint".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/apify-deploy-integration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈564 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Apify Deploy & Integration — Worked Examples

Three end-to-end scenarios that combine the patterns in implementation.md. Each shows the deploy step, the integration wiring, and the expected result.

Example 1: Ship an Actor and call it synchronously from a script

Goal: deploy a scraper and get results back in one blocking call — good for CLI tools, batch jobs, and small request volumes.

# 1. Deploy the Actor
apify push username/product-scraper
// 2. Call it and use the typed results (see scrapeProducts in implementation.md)
import { scrapeProducts } from './services/apify';

const products = await scrapeProducts([
  'https://store.example.com/p/1',
  'https://store.example.com/p/2',
]);
console.log(`Got ${products.length} products, first: ${products[0].title}`);

Expected: the call blocks until the run reaches SUCCEEDED, then resolves to a typed ScrapeResult[]. A non-success status throws with the platform's statusMessage.

Example 2: Non-blocking scrape behind a Next.js API

Goal: a web app kicks off a long scrape without holding the HTTP request open, then polls for completion — avoids serverless function timeouts.

POST /api/scrape        → { runId, status: "READY", statusUrl: "/api/scrape/<id>" }
GET  /api/scrape/<id>   → { status: "RUNNING" }        (poll)
GET  /api/scrape/<id>   → { status: "SUCCEEDED", items: [...] }

Full route handlers are in implementation.md (§ Next.js API Route Integration). The client polls statusUrl every few seconds until status === 'SUCCEEDED'.

Example 3: Scheduled daily pipeline with CSV export + archive

Goal: run unattended on a schedule, export a CSV artifact, and keep a date-stamped historical copy in a named dataset.

# Register a webhook so failures page the team, then schedule the run
#   Apify Console → Actor → Webhooks → ACTOR.RUN.FAILED → your Express receiver

The dailyScrapeAndExport function (implementation.md § Scheduled Pipeline) runs the Actor, writes exports/products-<timestamp>.csv, and appends each item — tagged with scrapedDate — to the product-archive dataset. A failed run throws before export so a downstream cron reports non-zero.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a comprehensive and safe framework for deploying Apify Actors and integrating their outputs into applications. It follows secure coding practices, such as recommending environment variables for secrets and avoiding hardcoded credentials. No malicious code or risky external operations were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 820dfc8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files Runs commands
version
1.5.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "scraping",
  "automation",
  "apify"
]
All 7 allowed tools
ReadWriteEditBash(apify:*)Bash(npm:*)Bash(vercel:*)Bash(gcloud:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/apify-deploy-integration