apify-cost-tuning

Featured

Optimize Apify platform costs through memory tuning, compute unit management, and proxy budgeting. Use when analyzing Apify billing, reducing Actor run costs, or implementing usage monitoring and budget alerts. Trigger: "apify cost", "apify billing", "reduce apify costs", "apify pricing", "apify expensive", "apify budget", "compute units".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apify Cost Tuning ## Overview Apify charges based on compute units (CU), proxy traffic (GB), and storage. One CU = 1 GB memory running for 1 hour. This skill covers how to analyze, reduce, and monitor costs across all three dimensions. ## Pricing Model ### Compute Units (CU) ``` CU = (Memory in GB) x (Duration in hours) Example: 2048 MB (2 GB) running for 30 minutes = 2 x 0.5 = 1 CU ``` | Plan | CU Price | Included CUs | |------|----------|-------------| | Free | N/A | Limited trial | | Starter | $0.30/CU | Varies by plan | | Scale | $0.25/CU | Volume discounts | | Enterprise | Custom | Negotiated | ### Proxy Costs | Proxy Type | Cost | Use Case | |-----------|------|----------| | Datacenter | Included in plan | Non-blocking sites | | Residential | ~$12/GB | Sites that block datacenters | | Google SERP | ~$3.50/1000 queries | Google search results | ### Storage Named datasets and KV stores persist indefinitely but count against storage quota. Unnamed (default run) storage expires after 7 days. ## Instructions ### Step 1: Analyze Current Costs ```typescript import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); async function analyzeActorCosts(actorId: string, days = 30) { const { items: runs } = await client.actor(actorId).runs().list({ limit: 1000, desc: true, }); const cutoff = new Date(Date.now() - days * 86400_000); const recentRuns = runs.filter(r => new Date(r.startedAt) > cutoff...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category