Using Importly with Zapier
Integrate Importly's media import API into your Zapier workflows to automate video and audio processing. This guide shows you how to set up Importly in Zapier using webhooks and HTTP requests.
What You Can Build
- Automated Content Processing: Download videos from URLs posted in Slack/Discord
- Social Media Automation: Import media from new YouTube videos to your content library
- Media Archiving: Automatically back up videos from RSS feeds
- Multi-Platform Workflows: Combine Importly with 5,000+ apps in Zapier
Prerequisites
- A Zapier account (free or paid)
- An Importly account with an API key
- Basic understanding of Zapier workflows
Setup Overview
Importly works with Zapier in two ways:
- Import Request - Start a media import job
- Webhook Handler - Receive notifications when the import completes
Method 1: Using Webhooks by Zapier (Recommended)
This is the most reliable approach as it uses webhooks to notify you when imports complete.
Step 1: Create a Catch Hook Trigger
- Create a new Zap in Zapier
- For the Trigger, search for "Webhooks by Zapier"
- Choose Catch Hook as the event
- Copy the provided webhook URL (you'll use this as your webhook URL)
- Click Continue
Step 2: Start Import with HTTP Request
- Add an Action step
- Search for "Webhooks by Zapier"
- Choose POST as the event
- Configure the request:
URL:
https://api.importly.io/import
Payload Type: json
Data:
json1{2 "url": "YOUR_VIDEO_URL",3 "includeVideo": true,4 "includeAudio": true,5 "videoQuality": "1080p",6 "audioQuality": "medium",7 "webhookUrl": "YOUR_CATCH_HOOK_URL_FROM_STEP_1"8}
Headers:
Authorization: Bearer YOUR_IMPORTLY_API_KEY
Content-Type: application/json
- Click Test to verify the request works
- You should receive a response with a
jobId
Step 3: Handle the Webhook Response
- Go back to your Catch Hook trigger from Step 1
- Test it by running your workflow
- Once the import completes (this may take a few minutes), Importly will send data to your catch hook
- You can now add additional actions to process the completed media
The webhook payload will include:
json1{2 "type": "import.completed",3 "data": {4 "jobId": "abc-123",5 "status": "completed",6 "result": {7 "mediaUrl": "https://storage.importly.io/...",8 "duration": 180.5,9 "fileSize": 25600000,10 "creditsUsed": 0.76811 }12 }13}
Step 4: Process the Media
Add more actions to your Zap:
- Upload to Google Drive
- Send to Dropbox
- Post to Slack with the download link
- Store URL in Airtable/Notion
- Trigger another workflow
Method 2: Polling with Delays (Alternative)
If you prefer not to use webhooks, you can poll for job status with delays.
Step 1: Start Import
Same as Method 1, Step 2, but omit the webhookUrl field.
Step 2: Extract Job ID
- Add a Formatter by Zapier step
- Choose Text → Extract Pattern
- Extract the
jobIdfrom the response
Step 3: Add Delay
- Add Delay by Zapier step
- Choose Delay For
- Set delay to 2-5 minutes (depends on typical video length)
Step 4: Check Status
- Add Webhooks by Zapier → GET
- URL:
https://api.importly.io/import/status?id=JOB_ID(use jobId from Step 2) - Headers:
Authorization: Bearer YOUR_IMPORTLY_API_KEY
Step 5: Check Status and Continue
- Add a Filter step to check if
statusequalscompleted - If successful, continue with your workflow
- If not completed yet, you can loop back with another delay (advanced)
Example Zap: YouTube to Google Drive
Here's a complete example that monitors a YouTube channel and imports new videos to Google Drive:
Trigger: RSS by Zapier → New Item in Feed
- Feed URL:
https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID
Action: Webhooks by Zapier → POST
- URL:
https://api.importly.io/import - Send video URL from RSS feed with webhook
Trigger: Webhooks by Zapier → Catch Hook
- Receives completion notification
Action: HTTP by Zapier → GET
- Download media from
mediaUrl
Action: Google Drive → Upload File
- Upload the downloaded media
Common Use Cases
1. Slack → Media Archive
When someone posts a video URL in Slack:
- Trigger on new Slack message containing URL
- Extract URL using Formatter
- Send to Importly
- Upload result to S3 or Google Drive
2. Social Media Monitor
Monitor multiple platforms and archive content:
- RSS feed or social media trigger
- Send media URLs to Importly
- Store in Airtable with metadata
- Back up to cloud storage
3. Content Library Builder
Build a searchable content library:
- New row in Google Sheets with video URL
- Import via Importly
- Update sheet with download link
- Send notification when ready
Handling Metadata Requests
To get video information without downloading:
URL: https://api.importly.io/metadata?url=VIDEO_URL
Method: GET
Headers:
Authorization: Bearer YOUR_IMPORTLY_API_KEY
Optional Query Parameters:
webhookUrl- Get notified when metadata is ready
Error Handling
Add error handling to your Zaps:
- After the import request, add a Filter step
- Check if
successfield istrue - If false, send error notification or log to sheet
Common errors:
401: Invalid API key402: Insufficient credits429: Rate limit exceeded400: Invalid URL or parameters
Best Practices
- Use Webhooks: They're faster and more reliable than polling
- Store Job IDs: Save job IDs to a spreadsheet for tracking
- Handle Timeouts: Large videos may take 5-10 minutes
- Check Credits: Monitor your credit usage in the Importly dashboard
- Test with Short Videos: Test your Zap with short videos first
- Use Filters: Add filters to prevent unnecessary API calls
- Rate Limiting: Space out bulk imports to avoid rate limits
Pricing Considerations
- Zapier calls count toward your Zapier task limit
- Importly charges based on data downloaded (MB)
- Use metadata endpoint to check file size before importing
- Webhook triggers don't count as tasks in Zapier
Troubleshooting
Webhook Not Firing
- Ensure webhook URL is correct and publicly accessible
- Check that your Zap is turned ON
- Verify the Catch Hook is set up before starting import
Import Taking Too Long
- Large videos (>500MB) can take 5-10+ minutes
- Check job status manually:
GET /import/status?id=JOB_ID - Consider increasing delay time in polling method
Invalid API Key
- Double-check your API key from dashboard
- Ensure no extra spaces in the Authorization header
- Format:
Bearer YOUR_API_KEY(with space after Bearer)
Rate Limit Errors
- Zapier free tier: 5 tasks/hour limit
- Importly rate limits: Check your plan on the billing page
- Add delays between bulk operations
Advanced: Multi-Step Workflows
Combine multiple Importly features:
- GET
/metadatato check video duration - Filter to only import videos under certain length
- POST
/importif conditions met - Catch Hook for completion
- Process media based on your needs
Resources
Need Help?
- Check out complete API reference
- Review authentication guide
- Contact support at [email protected]