Skip to content

Instantly share code, notes, and snippets.

@vnugent
Created April 9, 2022 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vnugent/175718139b5bb55881c465d1f1a64805 to your computer and use it in GitHub Desktop.
Save vnugent/175718139b5bb55881c465d1f1a64805 to your computer and use it in GitHub Desktop.
US climbing destinations

Connect to OpenBeta graphql

Go to https://graphiql-online.com/graphiql

Endpoint: https://api.openbeta.io

query MyQuery {
  areas(filter: {field_compare: [{num: 0.5, field: density, comparison: gt}, {num: 400, field: totalClimbs, comparison: gt}], path_tokens: {tokens: "California"}}, sort: {density: -1}) {
    area_name
    pathTokens
    totalClimbs
    density
  }
}

** Suggested params ** density > 0.5 totalCimbs > 400

seem to be the sweet spot for getting "destinations"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment