blob: 9a574b605602eaf606f0c5d5d731779ee1adeb50 [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-03/schema",
"$license": [
"http://www.apache.org/licenses/LICENSE-2.0"
],
"id": "#",
"javaType" : "org.apache.streams.twitter.api.SevenDaySearchRequest",
"javaInterfaces": ["java.io.Serializable"],
"description": "https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html",
"properties": {
"q": {
"description": "A UTF-8, URL-encoded search query of 500 characters maximum, including operators. Queries may additionally be limited by complexity.",
"required": true,
"type": "string"
},
"geocode": {
"description": "Returns tweets by users located within a given radius of the given latitude/longitude. The location is preferentially taking from the Geotagging API, but will fall back to their Twitter profile. The parameter value is specified by ” latitude,longitude,radius ”, where radius units must be specified as either \" mi \" (miles) or \" km \" (kilometers). Note that you cannot use the near operator via the API to geocode arbitrary locations; however you can use this geocode parameter to search near geocodes directly. A maximum of 1,000 distinct \"sub-regions\" will be considered when using the radius modifier.",
"required": false,
"type": "string"
},
"lang": {
"description": "Restricts tweets to the given language, given by an ISO 639-1 code. Language detection is best-effort.",
"required": false,
"type": "string"
},
"locale": {
"description": "Specify the language of the query you are sending (only ja is currently effective). This is intended for language-specific consumers and the default should work in the majority of cases.",
"required": false,
"type": "string"
},
"result_type": {
"description": "Optional. Specifies what type of search results you would prefer to receive.",
"required": false,
"type": "string"
},
"count": {
"description": "The number of tweets to return per page, up to a maximum of 100. Defaults to 15.",
"required": false,
"type": "integer"
},
"until": {
"description": "Returns tweets created before the given date. Date should be formatted as YYYY-MM-DD. Keep in mind that the search index has a 7-day limit. In other words, no tweets will be found for a date older than one week.",
"required": false,
"type": "integer"
},
"since_id": {
"description": "Returns results with an ID greater than (that is, more recent than) the specified ID. There are limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occured since the since_id, the since_id will be forced to the oldest ID available.",
"required": false,
"type": "string"
},
"max_id": {
"description": "Returns results with an ID less than (that is, older than) or equal to the specified ID.",
"required": false,
"type": "string"
},
"include_entities": {
"description": "The entities node will not be included when set to false.",
"required": false,
"type": "string"
}
}
}