Skip to main content
POST
/
api
/
eventbrite
/
events
/
search
/eventbrite/events/search
curl --request POST \
  --url https://api.anysite.io/api/eventbrite/events/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "location": "<string>",
  "count": 2,
  "timeout": 300,
  "domain": "eventbrite.com",
  "keyword": "<string>",
  "date_from": "<string>",
  "date_to": "<string>"
}
'
import requests

url = "https://api.anysite.io/api/eventbrite/events/search"

payload = {
"location": "<string>",
"count": 2,
"timeout": 300,
"domain": "eventbrite.com",
"keyword": "<string>",
"date_from": "<string>",
"date_to": "<string>"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
location: '<string>',
count: 2,
timeout: 300,
domain: 'eventbrite.com',
keyword: '<string>',
date_from: '<string>',
date_to: '<string>'
})
};

fetch('https://api.anysite.io/api/eventbrite/events/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/eventbrite/events/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'location' => '<string>',
'count' => 2,
'timeout' => 300,
'domain' => 'eventbrite.com',
'keyword' => '<string>',
'date_from' => '<string>',
'date_to' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/eventbrite/events/search"

payload := strings.NewReader("{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"domain\": \"eventbrite.com\",\n \"keyword\": \"<string>\",\n \"date_from\": \"<string>\",\n \"date_to\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/eventbrite/events/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"domain\": \"eventbrite.com\",\n \"keyword\": \"<string>\",\n \"date_from\": \"<string>\",\n \"date_to\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/eventbrite/events/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"location\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"domain\": \"eventbrite.com\",\n \"keyword\": \"<string>\",\n \"date_from\": \"<string>\",\n \"date_to\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "name": "<string>",
    "url": "<string>",
    "@type": "EventbriteSearchEvent",
    "summary": "<string>",
    "image": "<string>",
    "images": [],
    "start_at": 123,
    "end_at": 123,
    "start_local": "<string>",
    "end_local": "<string>",
    "timezone": "<string>",
    "is_online": true,
    "category": "<string>",
    "subcategory": "<string>",
    "format": "<string>",
    "tags": [],
    "sales_status": "<string>",
    "venue": {
      "@type": "EventbriteVenue",
      "id": "<string>",
      "name": "<string>",
      "address": "<string>",
      "city": "<string>",
      "region": "<string>",
      "country": "<string>",
      "postal_code": "<string>",
      "latitude": 123,
      "longitude": 123
    },
    "organizer": {
      "@type": "EventbriteOrganizerRef",
      "id": "<string>",
      "name": "<string>",
      "url": "<string>",
      "image": "<string>",
      "summary": "<string>",
      "follower_count": 123,
      "twitter": "<string>",
      "facebook": "<string>",
      "website": "<string>"
    },
    "price": {
      "@type": "EventbritePrice",
      "min_price": 123,
      "max_price": 123,
      "currency": "<string>",
      "is_free": true
    }
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
location
string
required
Minimum string length: 1
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
domain
enum<string>
default:eventbrite.com
Available options:
eventbrite.com,
eventbrite.com.ar,
eventbrite.com.au,
eventbrite.at,
eventbrite.be,
eventbrite.com.br,
eventbrite.ca,
eventbrite.cl,
eventbrite.co,
eventbrite.dk,
eventbrite.fi,
eventbrite.fr,
eventbrite.de,
eventbrite.hk,
eventbrite.ie,
eventbrite.it,
eventbrite.com.mx,
eventbrite.nl,
eventbrite.co.nz,
eventbrite.com.pe,
eventbrite.pt,
eventbrite.sg,
eventbrite.es,
eventbrite.se,
eventbrite.ch,
eventbrite.co.uk
keyword
string | null
category
enum<string> | null
Available options:
music,
business,
food-and-drink,
community,
performing-and-visual-arts,
film-and-media,
sports-and-fitness,
health,
science-and-tech,
travel-and-outdoor,
charity-and-causes,
spirituality,
family-and-education,
holiday,
government,
fashion,
home-and-lifestyle,
auto-boat-and-air,
hobbies,
school-activities,
other
price
enum<string> | null
Available options:
free,
paid
date
enum<string> | null
Available options:
today,
tomorrow,
this_weekend
language
enum<string> | null
Available options:
en,
de,
es,
fr,
it,
nl,
pt,
sv
currency
enum<string> | null
Available options:
USD,
CAD,
EUR,
GBP,
JPY,
AUD,
NZD,
CHF,
HKD,
SGD,
SEK,
DKK,
PLN,
NOK,
HUF,
CZK,
MXN,
ILS,
ARS,
BRL,
CLP,
MYR,
PHP,
TWD,
THB,
TRY
date_from
string | null
date_to
string | null

Response

Successful Response

id
string
required
name
string
required
url
string
required
@type
string
default:EventbriteSearchEvent
summary
string | null
image
string | null
images
string[]
start_at
integer | null
end_at
integer | null
start_local
string | null
end_local
string | null
timezone
string | null
is_online
boolean | null
category
string | null
subcategory
string | null
format
string | null
tags
string[]
sales_status
string | null
venue
object | null
organizer
object | null
price
object | null