1# Fetch data from the val town api
2
3## Usage
7```javascript
8const valtownApi = (path: string, options?: RequestInit) =>
9 @pomdtr.fetchValTownAPI(
10 @me.secrets.apiToken,
11 path,
1Migrated from folder: Figma/fetchFigmaFile
1Migrated from folder: summarize/fetchFile
1Fetches the 20 active posts in a community from a specific Lemmy instance.
2
3Migrated from folder: Lemmy/getLemmyPosts
1Fetches all videos for a Youtube channel, by using its RSS feed.
2
3Migrated from folder: Youtube/youtubeFeed
1This is an RSS parser val, similar to @stevekrouse.fetchRSS, but uses an NPM parsing library
2so it can support multiple RSS feed types easily.
3
4Migrated from folder: Other/fetchRss
1returns the last 100 featured glifs on [Glif](https://glif.app) but with a simplified response shape; I use this in other glifs with the WebFetcher block
2
3use like: https://jamiedubs-glifs.web.val.run/
4
5to fetch info for a single glif, try [@jamiedubs/glifJson](https://www.val.town/v/jamiedubs/glifJson)
6
7#glif #glifs
1Migrated from folder: rss/fetchRssParser
9
10
11It would be awesome if it knew how to use other APIs and make `fetch` calls to them, but it has been [failing at that](https://chat.openai.com/share/428183eb-8e6d-4008-b295-f3b0ef2bedd2).
12
13## Limitations
1Migrated from folder: JavaScript_Weekly_Email/fetchJavascriptWeeklyIssues