Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/image-url.jpg%20%22Optional%20title%22?q=api&page=68&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 17539 results for "api"(2416ms)

myApi1 file match

@morten_holm•Updated 1 year ago

myApi1 file match

@nickgehring•Updated 1 year ago

heapify1 file match

@aeschylus•Updated 1 year ago

myApi1 file match

@dabeeeenster•Updated 1 year ago

API_BASE_URL1 file match

@mangadex•Updated 1 year ago

myApi1 file match

@carlvonblixen•Updated 1 year ago

myApi1 file match

@qaispalekar•Updated 1 year ago

myApi2 file matches

@mluccone•Updated 1 year ago

myApi1 file match

@jacob_kettle•Updated 1 year ago

postHogAPICapture1 file match

@ianvph•Updated 1 year ago

twitterCompetitorMonitoringREADME.md1 match

@jamiedubs•Updated 52 mins ago
14- Automatic color generation for multiple competitors
15- Error handling for data loading failures
16- Real-time data fetching from the API
17
18## Chart Types

twitterCompetitorMonitoringREADME.md5 matches

@jamiedubs•Updated 52 mins ago
7```
8├── main.tsx (cron) # Hourly cron job to collect tweet data
9├── api.ts (http) # HTTP API and static file server
10├── db.ts # Database operations and schema
11├── utils/
20### Required
21
22- **`TWITTER_BEARER_TOKEN`**: Your Twitter API bearer token for searching tweets
23
24### Optional
421. **Cron Job** (`main.tsx`): Runs hourly to search Twitter for mentions of competitor URLs and stores the results in a database.
432. **Database** (`db.ts`): Uses SQLite to store tweet data and provides functions to query the data.
443. **Web Interface** (`api.ts`): Serves the HTML page and provides API endpoints for chart data.
454. **Views** (`views/`): Contains the HTML template and JavaScript for rendering charts.
46
47## How to Use
48
491. Set up the `TWITTER_BEARER_TOKEN` environment variable with your Twitter API bearer token.
502. Optionally set the `COMPETITORS` environment variable with your list of competitors to track.
513. The cron job will automatically run every hour to collect data.
59- Visualizes data in daily trend charts and total count charts
60- Automatically updates as new data is collected
61- Separated HTML/CSS/JS from API logic for better maintainability
Kapil01
apiv1