Skip to content

feat: add locationGeoCode option to searchScraper for geo-targeted search#1

Merged
VinciGit00 merged 1 commit intomainfrom
feat/add-location-geo-code-to-searchscraper
Jan 27, 2026
Merged

feat: add locationGeoCode option to searchScraper for geo-targeted search#1
VinciGit00 merged 1 commit intomainfrom
feat/add-location-geo-code-to-searchscraper

Conversation

@VinciGit00
Copy link
Copy Markdown
Member

Summary

  • Add optional locationGeoCode parameter to the searchScraper function
  • Enables targeting search results from a specific geographic location (e.g., "us", "gb", "de")
  • Implements the SDK changes required by ScrapeGraphAI/sgai-api#384

Changes

  • src/searchScraper.js: Added locationGeoCode to options destructuring and payload
  • README.md: Added parameter documentation and geo-targeted search example

Test plan

  • Test searchScraper without locationGeoCode (should work as before)
  • Test searchScraper with locationGeoCode set to "us"
  • Verify API payload includes location_geo_code when option is provided

🤖 Generated with Claude Code

…arch

Add optional locationGeoCode parameter to the searchScraper function that
allows targeting search results from a specific geographic location. This
implements the API changes from ScrapeGraphAI/sgai-api#384.

- Add locationGeoCode to options destructuring
- Add location_geo_code to API payload when provided
- Update JSDoc documentation
- Update README with parameter documentation and usage example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@VinciGit00 VinciGit00 merged commit 9142766 into main Jan 27, 2026
1 check passed
@VinciGit00 VinciGit00 deleted the feat/add-location-geo-code-to-searchscraper branch April 10, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant