Skip to main content
GET
/
v1
/
twitter
/
geo
/
search
Search places
curl --request GET \
  --url https://scrapebadger.com/v1/twitter/geo/search \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "id": "5a110d312052166f",
      "name": "San Francisco",
      "full_name": "San Francisco, CA",
      "country": "United States",
      "country_code": "US",
      "place_type": "city",
      "url": "<string>",
      "bounding_box": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              123
            ]
          ]
        ]
      },
      "attributes": {}
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your ScrapeBadger API key. You can find this in your dashboard at https://scrapebadger.com/dashboard/api-keys.

Query Parameters

query
string

Free-form text search for place names.

Example:

"San Francisco"

lat
number<double>

Latitude coordinate for location-based search.

Example:

37.7749

long
number<double>

Longitude coordinate for location-based search.

Example:

-122.4194

Response

Successfully retrieved places.

List of geographic places.

data
object[] | null

Array of place objects.