Skip to main content

This is a Geoguessr API client written in Python. It allows you to interact with the Geoguessr API, such as getting information about users, challenges, maps, and scores.

To install the package, run the following command:

pip install geoguessr-api

Once the package is installed, you can create a client object by passing your NCFA cookie to the constructor:

from geoguessr_async import Geoguessr

client = Geoguessr("your_ncfa_cookie")

To get your NCFA cookie, login to geoguessr, open your dev tools (Ctrl+Shift+I), go to Storage/Cookies and copy the value of _ncfa.

You can then use the client object to get information about users, challenges, maps, and scores. For example, to get information about an user with his ID, you can use the following code:

user = client.get_user_infos(userId)

The Profile object will contain information such as your username, country, and number of games played.

To get information about a challenge, you can use the following code:

challenge = client.get_challenge_infos("https://geoguessr.com/challenge/xxxx")

The Challenge object will contain information such as the challenge name, description, and time limit.

To get information about a map, you can use the following code:

map = client.get_map_infos("https://geoguessr.com/maps/xxxx")

The Map object will contain information such as the map name, size, and location.

To get information about a score, you can use the following code:

score = client.get_challenge_score("https://geoguessr.com/challenge/xxxx")

The Score object will contain information such as the players' name, score, and time. When getting the score of a challenge, it automatically plays it, pinging (0, 0) each round.

Example: Get results of a challenge as a list of dictionnaries

score = client.get_challenge_score("https://geoguessr.com/challenge/xxxx")
scores = []
for s in score:
    d_player = {
        "userId": s.userId,
        "userName":s.playerName,
        "total": s.totalScore,
        "roundPoints": s.gamePlayerGuessesRoundScoreInPoints,
        "roundTimes": s.gamePlayerGuessesTime
    }
    scores.append(d_player)
print(scores)

I hope you find this package useful! Please let me know if you have any questions or feedback.

Metadata

Release files for api-geoguessr 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for api-geoguessr 1.0.0
File Size Uploaded Provenance Actions
api_geoguessr-1.0.0.tar.gz 10.2 kB Without provenance Details for api_geoguessr-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for api-geoguessr 1.0.0
File Interpreter ABI Platform Actions
api_geoguessr-1.0.0-py3-none-any.whl Python 3 none any Details for api_geoguessr-1.0.0-py3-none-any.whl

Total release size: 19.6 kB

Release files / api_geoguessr-1.0.0.tar.gz

Download URL api_geoguessr-1.0.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a29751c2bdb0f089886373a2cf9b6ec73bd4c57a15229fe258fd30ca77b923e
BLAKE2b-256 checksum
How to use checksums
a4b462cc2b1bbe693e097d052271eb61304eb737da7aeefce505d6a0740325ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / api_geoguessr-1.0.0-py3-none-any.whl

Download URL api_geoguessr-1.0.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d87f4ab4ce4105c580b18fe205deb1eebcad0f666f22049f4e38b66b4d1347b7
BLAKE2b-256 checksum
How to use checksums
c28a69169e79f8262c806366753874274ea9957babf39a717a82d36d7d6b1372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Security for api-geoguessr 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page