Skip to main content
POST
/
api
/
ticketmaster
/
venues
/ticketmaster/venues
curl --request POST \
  --url https://api.anysite.io/api/ticketmaster/venues \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "venue": "<string>",
  "timeout": 300,
  "domain": "ticketmaster.com"
}
'
import requests

url = "https://api.anysite.io/api/ticketmaster/venues"

payload = {
    "venue": "<string>",
    "timeout": 300,
    "domain": "ticketmaster.com"
}
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({venue: '<string>', timeout: 300, domain: 'ticketmaster.com'})
};

fetch('https://api.anysite.io/api/ticketmaster/venues', 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/ticketmaster/venues",
  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([
    'venue' => '<string>',
    'timeout' => 300,
    'domain' => 'ticketmaster.com'
  ]),
  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/ticketmaster/venues"

	payload := strings.NewReader("{\n  \"venue\": \"<string>\",\n  \"timeout\": 300,\n  \"domain\": \"ticketmaster.com\"\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/ticketmaster/venues")
  .header("access-token", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"venue\": \"<string>\",\n  \"timeout\": 300,\n  \"domain\": \"ticketmaster.com\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/ticketmaster/venues")

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  \"venue\": \"<string>\",\n  \"timeout\": 300,\n  \"domain\": \"ticketmaster.com\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "name": "<string>",
    "@type": "TicketmasterVenue",
    "url": "<string>",
    "image": "<string>",
    "timezone": "<string>",
    "discovery_id": "<string>",
    "references": {},
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>",
    "country": "<string>",
    "latitude": 123,
    "longitude": 123,
    "general_info": {},
    "city_categories": [],
    "related_links": [],
    "seat_maps": [],
    "upcoming_event_count": 123
  }
]
{
  "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
venue
string
required
Minimum string length: 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
domain
enum<string>
default:ticketmaster.com
Available options:
ticketmaster.com,
ticketmaster.co.uk,
ticketmaster.com.au,
ticketmaster.co.nz,
ticketmaster.ca,
ticketmaster.com.mx,
ticketmaster.com.br,
ticketmaster.cl,
ticketmaster.ie,
ticketmaster.de,
ticketmaster.at,
ticketmaster.ch,
ticketmaster.nl,
ticketmaster.be,
ticketmaster.fr,
ticketmaster.es,
ticketmaster.it,
ticketmaster.pl,
ticketmaster.cz,
ticketmaster.dk,
ticketmaster.no,
ticketmaster.se,
ticketmaster.fi,
ticketmaster.ae,
ticketmaster.co.za,
ticketmaster.co.il,
ticketmaster.sg

Response

Successful Response

id
string
required
name
string
required
@type
string
default:TicketmasterVenue
url
string | null
image
string | null
timezone
string | null
discovery_id
string | null
references
object
address
string | null
city
string | null
state
string | null
postal_code
string | null
country
string | null
latitude
number | null
longitude
number | null
general_info
object
city_categories
object[]
seat_maps
object[]
upcoming_event_count
integer | null