You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=67&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 18502 results for "api"(1324ms)
222. Note your Val's URL (you'll need this for the Neynar webhook setup)
2324### Step 2: Create Twitter Developer Account & API Keys
25261. Go to [Twitter Developer Portal](https://developer.x.com/en/portal/dashboard)
364. Save the settings
3738#### Generate API Keys
39After setting up authentication with read/write permissions:
40411. Go to "Keys and Tokens" tab
422. Generate/copy these credentials:
43- **API Key** (`TWITTER_API_KEY`)
44- **API Secret** (`TWITTER_API_SECRET`)
45- **Access Token** (`TWITTER_ACCESS_TOKEN`)
46- **Access Token Secret** (`TWITTER_ACCESS_TOKEN_SECRET`)
5152In your Val Town script, add these environment variables:
53- `TWITTER_API_KEY`
54- `TWITTER_API_SECRET`
55- `TWITTER_ACCESS_TOKEN`
56- `TWITTER_ACCESS_TOKEN_SECRET`
70Check the Val Town logs if posts aren't appearing on Twitter:
71- Verify all environment variables are set
72- Ensure Twitter API keys have read/write permissions
73- Check that webhook URL is correctly configured in Neynar
74- Verify your Neynar webhook is active and properly filtered
18<meta name="google" content="notranslate" />
1920<link rel="preconnect" href="https://fonts.googleapis.com" />
21<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
22<link
23href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fira+Code:wght@300..700&family=Recursive:wght@300..1000&display=swap"
24rel="stylesheet"
25/>