Waste To Diy Analyzer avatar
Waste To Diy Analyzer

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Waste To Diy Analyzer

Waste To Diy Analyzer

Waste To DIY Analyzer uses AI vision to analyze images and identify reusable waste materials, then suggests creative DIY art, craft, and utility ideas. It also finds relevant YouTube tutorials to help turn discarded items into useful, sustainable products.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

Aadhithya

Aadhithya

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

18 days ago

Last modified

Share

A production-ready Apify Actor that analyzes an image to identify waste or discarded raw materials (e.g., plastic bottles, cardboard, metal cans, fabric scraps, glass, wood) and suggests creative DIY art, craft, or useful product ideas. It then uses the official YouTube Data API v3 to find 3 relevant tutorial videos showing how those materials can be reused.

Features

  • Image Analysis: Uses OpenAI Vision to detect waste materials in images
  • Material Identification: Identifies specific materials like plastic, paper, metal, fabric, glass, wood
  • DIY Suggestions: Provides creative reuse ideas like art projects, crafts, home utilities, storage solutions
  • YouTube Integration: Finds relevant tutorial videos using the official YouTube Data API v3
  • Test Mode: Includes test mode for validation without API calls

Input Schema

FieldTypeRequiredDescription
imageUrlStringYesPublic URL of the image to analyze for waste materials
openaiApiKeyStringYesYour OpenAI API key for AI analysis (stored as secret)
modelStringNoVision-capable OpenAI model (default: "gpt-4o-mini")
languageStringNoPreferred language for YouTube videos (default: "en")
testModeBooleanNoEnable test mode (default: false)

imageUrl must be provided (except in testMode).

Output Schema

The actor outputs a structured object containing:

{
"isWasteMaterial": true,
"materialsIdentified": ["plastic bottle", "cardboard"],
"reuseIdeas": ["planter", "desk organizer", "wall decor"],
"youtubeTutorials": [
{
"videoTitle": "...",
"channelName": "...",
"videoUrl": "https://www.youtube.com/watch?v=..."
}
],
"disclaimer": "This analysis is for creative and educational purposes only."
}

Requirements

  • OpenAI API key with vision capabilities
  • YouTube Data API v3 key (set as ACTOR_YOUTUBE_API_KEY environment variable in Apify)
  • Publicly accessible image URL

Architecture

  1. Image Analysis: OpenAI Vision analyzes the provided image to identify waste materials
  2. Material Processing: Identifies specific materials and suggests reuse ideas
  3. YouTube Search: Searches for relevant DIY tutorial videos based on materials and ideas
  4. Output Generation: Formats and outputs the complete analysis

Test Mode

When testMode is enabled, the actor skips API calls and returns mock data with sample materials, reuse ideas, and YouTube links.

Error Handling

  • Validates image input requirements
  • Fails fast if OpenAI or YouTube API keys are missing
  • Handles API errors gracefully
  • Includes timeout protection (5 minutes max)

Deployment

Deploy as an Apify Actor with the provided configuration files. Ensure the YouTube API key is set in the actor environment variables.