Skip to content

Conversation

@VinciGit00
Copy link
Contributor

This PR adds geotargeting support to the SearchScraper endpoint by adding the location_geo_code parameter.

Changes

  • Added location_geo_code field to SearchScraperRequest model (optional string)
  • Added location_geo_code parameter to sync searchscraper method in client.py
  • Added location_geo_code parameter to async searchscraper method in async_client.py
  • Added logging for location_geo_code when provided

Related

Aligns with API changes in sgai-api PR #384

Usage Example

from scrapegraph_py import Client

client = Client(api_key="your-key")
response = client.searchscraper(
    user_prompt="Find restaurants near me",
    location_geo_code="us"  # Geo code for location-based search
)

- Add location_geo_code field to SearchScraperRequest model
- Add location_geo_code parameter to sync and async searchscraper methods
- Add logging for location_geo_code when provided
- Aligns with API changes in sgai-api PR #384
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@VinciGit00 VinciGit00 merged commit 6ba97bb into main Jan 27, 2026
5 of 9 checks passed
@VinciGit00 VinciGit00 deleted the feat/add-geotargeting-searchscraper branch January 27, 2026 14:07
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.

2 participants