npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/lotadata

v6.0.0

Published

DataFire integration for LotaData

Downloads

2

Readme

@datafire/lotadata

Client library for LotaData

Installation and Usage

npm install --save @datafire/lotadata
let lotadata = require('@datafire/lotadata').create({
  api_key: ""
});

.then(data => {
  console.log(data);
});

Description

Access the most exhaustive, accurate and up-to-date collection of global and hyper-local geocoded events and activities across a wide range of categories and genres

Actions

events.get

Find event occurrences in the area. Returns results at specific place and time, event groups are expanded for every occurrence.

lotadata.events.get({
  "fieldset": ""
}, context)

Input

  • input object
    • category array: List of required EventCategory ids (Tier 1)
    • activity string: List of required activity type ids (compliment to category)
    • ambience string: List of required ambience ids
    • genre string: List of required genre ids
    • name string: Matching on event and place names
    • q string: Text query matching titles, description, various text, tags, category
    • from_day string: Start on or after date specified (2015-10-16)
    • to_day string: Start on or before date specified (2015-10-16)
    • capacity_min number: Min capacity at location
    • capacity_max number: Min capacity at location
    • center string: latitude,longitude of the origin point
    • radius integer: Distance from origin in meters
    • bbox array: Corner of a bounding box (lat,lng). Requires 0 or 2 pairs
    • polygon array: Closed custom polygon. Ordered list of lat,lng pairs
    • within string: Search within specified geopolitical place id
    • offset integer: Return results starting at specified offset
    • limit integer: Max results to return
    • fieldset required string (values: summary, detail, context, minicontext): Return results starting at specified offset (summary, context, detail)

Output

events.id.get

Get Specific event details.

lotadata.events.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: event @id
    • fieldset string (values: summary, detail, context, minicontext)

Output

places.get

Venues, landmarks, regions, these are all places to search.

lotadata.places.get({
  "fieldset": ""
}, context)

Input

  • input object
    • category array: List of required PlaceCategory ids (Tier 1)
    • function array: List of required PlaceFunction ids (Tier 2)
    • ambience array: List of required ambience ids
    • tag array: List of required tags
    • type string: Specific PlaceType to return
    • name string: Match on place names
    • exact boolean: Require an exact name match
    • capacity_min number: Min capacity at location
    • capacity_max number: Min capacity at location
    • street string: Address of the place or street component of the address
    • locality string: city, town, or neighborhood of the place
    • region string: region or state
    • postal_code string: Postal or zip code
    • country string: country component of the address
    • center string: latitude,longitude of the origin point
    • radius integer: Distance from origin in meters
    • bbox array: Corner of a bounding box (lat,lng). Requires 0 or 2 pairs
    • polygon array: Closed custom polygon. Ordered list of lat,lng pairs
    • within string: Search within specified geopolitical place id
    • offset integer: Return results starting at specified offset
    • limit integer: Max results to return
    • fieldset required string (values: summary, detail, context): Return results starting at specified offset (summary, context, detail)

Output

places.id.get

Get specific place details

lotadata.places.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: place @id
    • fieldset string (values: summary, detail, context, minicontext)

Output

Definitions

Address

  • Address object: Physical world addresss
    • country string
    • formatted string: Address formatted for display as a single string
    • locality string: City or town
    • postalCode string
    • region string
    • street string: Street portion of the address, may sometimes be a common name of the place
    • unit string

ContactDetail

  • ContactDetail object
    • displayPhone string
    • email string
    • facebookUrl string
    • instagramName string
    • lastfmUrl string
    • soundcloudUrl string
    • spotifyUrl string
    • twitterName string
    • url string
    • youtubeUrl string

Error

  • Error object
    • cause object
      • expected string
      • path string
      • rule string
      • value string
    • message string
    • status integer
    • tracking object
      • id string
      • session string

EventOccurenceDetail

  • EventOccurenceDetail object: Event Occurrence Detail limited to requested fieldset.
    • @id string: Unique event id
    • @type string (values: Organized, Screening, Environmental, Virtual): Type of occurrence. You will usually see Organized as the type for most events. While Virtual events will get their own Virtual type.
    • activity array: Associated ActivityType entries
    • ambience array: expected mood and feel of the event
    • at PlaceReference
    • awayTeam FeatureReference
    • category array: Associated EventCategory. May be multiple, such as Charity Music event
    • contactPoint ContactDetail
    • description string: Full description in plain text
    • doorTime string: Time when the admission starts
    • duration string: Duration of the event in ISO-8601 format (PT45M) - 45 minutes
    • endApprox boolean: endDate is approximated based on historical data
    • endDate string: Time when the event ends, if known
    • extTaxonomy array: extended taxonomy such as IAB and Google AdWords
    • genre array: applicable Genres. (Tier 2 taxonomy). May include related genres from categories, not deemed as primary
    • headline string: Optional short description in plain text
    • homeTeam FeatureReference
    • htmlDescription string: Full description with HTML formatting, where available
    • image ImageMeta
    • inLanguage FeatureReference
    • name string: Name of the event in plain text
    • noTime boolean: Specific time of the event is unknown. (shown only when true)
    • offers array: Ticketing options
    • onDemand boolean: This event can start at any time during specified window
    • performer array: List of Personas significant for this event
    • photo array: Primary image
    • startDate string: Time when the event starts
    • superEvent OccurrenceReference
    • updated string: Timestamp of last modification (UTC)
    • url string: Primary url for published event
    • workPerformed array: Subject matter of the event

EventsQuery

  • EventsQuery object: Specific filters understood and executed for this query. If your parameter is not visible here, then consult the documentation for correct usage.
    • activity array: required activity types
      • items string
    • category array: required categories
      • items string
    • limit integer: maximum number of matches to return

EventsSearchResponse

FeatureReference

  • FeatureReference object: Identifier for a Feature
    • @id string: Feature id
    • @type string: Type of specific feature or Taxonomy node such as EventCategory, SportsTeam, Persona.
    • name string: Display name of the feature

GeoJsonObject

GeoPt

  • GeoPt object
    • lat number
    • lon number

ImageMeta

  • ImageMeta object: Image meta data
    • @id string
    • caption string
    • height integer
    • url string
    • width integer

OccurrenceReference

  • OccurrenceReference object
    • @id string
    • name string
    • startDate string: Time when the event starts

PlaceDetail

  • PlaceDetail object
    • ambience array: expected mood and feel of the event
    • category array: Associated PlaceCategory. May be multiple (Tier 1)
    • contact ContactDetail
    • function array: PlaceFunction. (Tier 2 taxonomy)
    • openingHours array
    • photo array
    • @id string
    • @type string (values: Place, LocalBusiness, AdministrativeArea, TouristAttraction, Landform, LandmarksOrHistoricalBuildings, Residence, Virtual): Type of place where Place is a physical address, LocalBusiness is any type of comercial property, AdministrativeArea is a political or colloquial area, and Virtual is out of this world
    • address Address
    • geo GeoPt
    • geometry GeoJsonObject
    • location VirtualLocation
    • logo ImageMeta
    • name string
    • tag array

PlaceReference

  • PlaceReference object: Unique Location
    • @id string
    • @type string (values: Place, LocalBusiness, AdministrativeArea, TouristAttraction, Landform, LandmarksOrHistoricalBuildings, Residence, Virtual): Type of place where Place is a physical address, LocalBusiness is any type of comercial property, AdministrativeArea is a political or colloquial area, and Virtual is out of this world
    • address Address
    • geo GeoPt
    • geometry GeoJsonObject
    • location VirtualLocation
    • logo ImageMeta
    • name string
    • tag array

PlacesQuery

  • PlacesQuery object: Specific filters understood and executed for this query. If your parameter is not visible here, then consult the documentation for correct usage.
    • address Address
    • category array: required categories
      • items string
    • limit integer: maximum number of matches to return

PlacesSearchResponse

SearchStatsMetaResult

  • SearchStatsMetaResult object: Shows invocation details about the query. Running query again, could produce different results
    • count integer: Total matches for the query
    • fieldset string: Specific fields returned by this query
    • runtime integer: Server side run time in msec for this request

TicketOffer

  • TicketOffer object
    • availability string (values: Discontinued, InStock, InStoreOnly, LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut)
    • category string (values: primary, secondary, presale, member, premium, unknown)
    • donation boolean
    • fee number
    • highPrice number
    • inventory object
      • available integer
      • total integer
    • name string
    • price number
    • priceCurrency string
    • priceUnknown boolean
    • url string

Timeframe

  • Timeframe object
    • closes string: Close time for all days mentioned in the dayOfWeek. If close time is less than open, then it is following day.
    • dayOfWeek array: ISO day of the week. 1- Monday, 7- Sunday
      • items integer
    • open247 boolean: Open around the clock
    • opens string: Open time for all days mentioned in the dayOfWeek

VirtualLocation

  • VirtualLocation object: Virtual Address
    • domain string
    • platform string
    • url string