GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — feat(huntapi): add HuntAPI integration by josselinlbe · Pull Request #9835 · simstudioai/sim ConversationSummaryAdds a HuntAPI integration: tools, block, icon and generated docs page. I work on HuntAPI, so this PR comes from the HuntAPI team. Start a download of a public video in a chosen quality and format, or extract its audio track, then check the job to get a link to the file with the video's title, duration, channel and view counts. Operations:
Credentials are a HuntAPI API key on the block ( Product update (if relevant)Teams that work with video can transcribe, archive and analyze public videos from a workflow. The block appears in the integrations catalog with 7 templates and grounded skills; the docs page is Type of Change
Testing
Checklist
Screenshots/Videos
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Add a HuntAPI block for video and audio downloads: - Start downloading a public video in a chosen quality and format - Start extracting a video's audio track as MP3, M4A or WAV - Get a download job's status and, once complete, the file link with the video's title, duration, uploader and view counts Outputs follow the documented OpenAPI schemas and were checked against live responses. Credentials are a HuntAPI key sent in the x-api-key header.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
[Medium impact] The changes affect workflows that choose to use HuntAPI. The single-consumer helper must move into Findings
SummaryAdds HuntAPI video downloads, audio extraction, and job lookup.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import type { HuntApiMediaMetadata } from '@/tools/huntapi/types' | ||
|
|
||
| /** Reads a `HuntApiMediaMetadata` from an untyped HuntAPI API payload. */ | ||
| export function mapHuntApiMediaMetadata(value: unknown): HuntApiMediaMetadata | null { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
mapHuntApiMediaMetadata has only one caller, in get_job.ts. The repository guide requires helpers with one consumer to stay inline and reserves shared utility files for multiple consumers. Move this helper into get_job.ts before merging to meet that requirement and avoid an extra file and import.
Context Used: CLAUDE.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3816a2f. mapHuntApiMediaMetadata now lives in get_job.ts, its only caller, and tools/huntapi/utils.ts is gone.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- Keep the media metadata mapper in get_job.ts, its only caller - Document the HuntApiIcon export - Read the operation from the mapper context so agent tools coerce Max Duration too
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.