getanyapi 0.175.6__tar.gz → 0.176.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {getanyapi-0.175.6 → getanyapi-0.176.0}/PKG-INFO +1 -1
- {getanyapi-0.175.6 → getanyapi-0.176.0}/pyproject.toml +1 -1
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/__init__.py +1 -1
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/__init__.py +1 -0
- getanyapi-0.176.0/src/getanyapi/platforms/cards.py +626 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/twitter.py +2 -2
- {getanyapi-0.175.6 → getanyapi-0.176.0}/.gitignore +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/README.md +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_account.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_async_client.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_client.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_errors.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_idempotency.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_pagination.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/_transport.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/discovery_types.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/ahrefs.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/airbnb.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/alibaba.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/aliexpress.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/amazon.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/appstore.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/asos.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/bestbuy.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/bing.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/bluesky.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/booking.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/brave.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/capterra.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/chatgpt.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/coinmarketcap.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/company_enrichment.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/company_identify.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/company_search.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/congress.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/contact_enrichment.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/douyin.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/duckduckgo.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/ebay.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/email.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/email_finding.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/email_verification.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/etsy.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/facebook.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/fiverr.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/g2.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/gemini.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/github.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/glassdoor.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/google.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/google_ads.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/google_finance.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/google_flights.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/google_hotels.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/google_shopping.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/hackernews.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/ikea.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/indeed.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/instagram.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/job_search.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/levels.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/linkedin.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/linktree.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/maps.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/mercari.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/mobile_phone.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/naver.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/nextdoor.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/people_search.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/perplexity.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/person.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/person_enrichment.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/pexels.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/pinterest.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/playstore.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/polymarket.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/property_records.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/realtor.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/reddit.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/redfin.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/rednote.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/samsclub.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/sec.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/semrush.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/seo.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/shopify.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/similarweb.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/slickdeals.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/snapchat.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/social.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/spotify.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/substack.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/target.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/technographics.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/telegram.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/threads.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/tiktok.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/tiktok_shop.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/tripadvisor.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/trustpilot.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/truthsocial.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/unsplash.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/upwork.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/vrbo.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/walmart.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/web.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/weibo.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/yahoo_finance.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/yelp.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/youtube.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/zhihu.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/platforms/zillow.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/py.typed +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/src/getanyapi/types.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/conftest.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_account.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_client.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_durable_requests.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_envelope.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_errors.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_fixture_roundtrip.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_fixture_sweep.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_not_found_reason.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_pagination.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/tests/test_transport.py +0 -0
- {getanyapi-0.175.6 → getanyapi-0.176.0}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: getanyapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.176.0
|
|
4
4
|
Summary: Official typed Python SDK for AnyAPI: any API, one wallet, USD, no subscriptions.
|
|
5
5
|
Project-URL: Homepage, https://getanyapi.com
|
|
6
6
|
Project-URL: Documentation, https://getanyapi.com/docs
|
|
@@ -22,6 +22,7 @@ REGISTRY: dict[str, tuple[str, str, str]] = {
|
|
|
22
22
|
"booking": ("booking", "BookingNamespace", "AsyncBookingNamespace"),
|
|
23
23
|
"brave": ("brave", "BraveNamespace", "AsyncBraveNamespace"),
|
|
24
24
|
"capterra": ("capterra", "CapterraNamespace", "AsyncCapterraNamespace"),
|
|
25
|
+
"cards": ("cards", "CardsNamespace", "AsyncCardsNamespace"),
|
|
25
26
|
"chatgpt": ("chatgpt", "ChatgptNamespace", "AsyncChatgptNamespace"),
|
|
26
27
|
"coinmarketcap": (
|
|
27
28
|
"coinmarketcap",
|
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
# Generated - do not edit. Regenerate with: pnpm generate
|
|
2
|
+
"""Generated namespace module for the cards platform."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
from typing import Literal, TYPE_CHECKING
|
|
7
|
+
|
|
8
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
9
|
+
from typing_extensions import NotRequired, Required, TypedDict, Unpack
|
|
10
|
+
|
|
11
|
+
from ..types import RequestOptions, RunResult
|
|
12
|
+
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from .._async_client import AsyncAnyAPI
|
|
15
|
+
from .._client import AnyAPI
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CardsGradedCertInput(TypedDict, total=False):
|
|
19
|
+
"""Input for Graded Card Cert Lookup."""
|
|
20
|
+
|
|
21
|
+
allowFallbacks: NotRequired[bool]
|
|
22
|
+
"""Optional, default true. We recommend leaving it out. Setting it to false is experimental (its behavior may change) and ties the request to the sources listed in `source`: only they may serve, the request is refused with no charge if none of them can, and no other source rescues it when they fail. To control cost, set `max_cost_usd` instead: the REST query parameter or MCP `run_api` argument, on requests paid from your AnyAPI wallet. When true, the listed sources are tried first and any other source may serve after them, at the normal price. Default: true."""
|
|
23
|
+
certNumber: Required[str]
|
|
24
|
+
"""Certificate number printed on the slab label, digits only, e.g. 171634124. Keep any leading zeros: BGS numbers start with 00 (0011562845)."""
|
|
25
|
+
gradingCompany: Required[Literal["PSA", "BGS", "SGC", "CGC"]]
|
|
26
|
+
"""The company that graded the slab. Required because the same number can exist at two graders (4272318 is both a PSA and an SGC cert)."""
|
|
27
|
+
ignoreSources: NotRequired[list[str]]
|
|
28
|
+
"""Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way."""
|
|
29
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
30
|
+
"""Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted. Minimum: 1."""
|
|
31
|
+
source: NotRequired[list[str]]
|
|
32
|
+
"""Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`."""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class CardsPopulationInput(TypedDict, total=False):
|
|
36
|
+
"""Input for Graded Card Population."""
|
|
37
|
+
|
|
38
|
+
allowFallbacks: NotRequired[bool]
|
|
39
|
+
"""Optional, default true. We recommend leaving it out. Setting it to false is experimental (its behavior may change) and ties the request to the sources listed in `source`: only they may serve, the request is refused with no charge if none of them can, and no other source rescues it when they fail. To control cost, set `max_cost_usd` instead: the REST query parameter or MCP `run_api` argument, on requests paid from your AnyAPI wallet. When true, the listed sources are tried first and any other source may serve after them, at the normal price. Default: true."""
|
|
40
|
+
cardId: Required[str]
|
|
41
|
+
"""Card ID from Graded Card Population Search (cards.population_search), 40 hex characters, e.g. ffb8699bb7f435eff4e9761f8e29358e351d777e. Each variant (base, 1st edition, shadowless, refractor...) has its own ID."""
|
|
42
|
+
ignoreSources: NotRequired[list[str]]
|
|
43
|
+
"""Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way."""
|
|
44
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
45
|
+
"""Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted. Minimum: 1."""
|
|
46
|
+
source: NotRequired[list[str]]
|
|
47
|
+
"""Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`."""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class CardsPopulationSearchInput(TypedDict, total=False):
|
|
51
|
+
"""Input for Graded Card Population Search."""
|
|
52
|
+
|
|
53
|
+
allowFallbacks: NotRequired[bool]
|
|
54
|
+
"""Optional, default true. We recommend leaving it out. Setting it to false is experimental (its behavior may change) and ties the request to the sources listed in `source`: only they may serve, the request is refused with no charge if none of them can, and no other source rescues it when they fail. To control cost, set `max_cost_usd` instead: the REST query parameter or MCP `run_api` argument, on requests paid from your AnyAPI wallet. When true, the listed sources are tried first and any other source may serve after them, at the normal price. Default: true."""
|
|
55
|
+
ignoreSources: NotRequired[list[str]]
|
|
56
|
+
"""Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way."""
|
|
57
|
+
page: NotRequired[int]
|
|
58
|
+
"""1-based results page of 10 cards, up to 5 pages. Each page is billed as one request. Range: 1 to 5. Default: 1."""
|
|
59
|
+
preferLatencyUnderMs: NotRequired[int]
|
|
60
|
+
"""Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted. Minimum: 1."""
|
|
61
|
+
query: Required[str]
|
|
62
|
+
"""Free text describing the card: year, set, player or character, card number and parallel, e.g. "2018 Topps Chrome Update Shohei Ohtani Refractor"."""
|
|
63
|
+
source: NotRequired[list[str]]
|
|
64
|
+
"""Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`."""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class CardsGradedCertData(BaseModel):
|
|
68
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
69
|
+
|
|
70
|
+
card_name: str | None = Field(
|
|
71
|
+
default=None,
|
|
72
|
+
alias="cardName",
|
|
73
|
+
description='Full card name, e.g. "1999 Pokemon Game Holo Charizard #4". Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.',
|
|
74
|
+
)
|
|
75
|
+
card_number: str | None = Field(
|
|
76
|
+
default=None, alias="cardNumber", description="Card number within the set."
|
|
77
|
+
)
|
|
78
|
+
category: str | None = Field(
|
|
79
|
+
default=None, description="Card category, e.g. pokemon, basketball or football."
|
|
80
|
+
)
|
|
81
|
+
cert_number: str = Field(
|
|
82
|
+
alias="certNumber",
|
|
83
|
+
description="Certificate number of the slab. Populated whenever the provider has data for the entity.",
|
|
84
|
+
)
|
|
85
|
+
cert_url: str | None = Field(
|
|
86
|
+
default=None,
|
|
87
|
+
alias="certUrl",
|
|
88
|
+
description="The grading company's own certificate verification page, when it has one (PSA).",
|
|
89
|
+
)
|
|
90
|
+
grade: float | None = Field(
|
|
91
|
+
default=None,
|
|
92
|
+
description="Numeric grade, e.g. 9.5. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
93
|
+
)
|
|
94
|
+
grade_label: str | None = Field(
|
|
95
|
+
default=None,
|
|
96
|
+
alias="gradeLabel",
|
|
97
|
+
description='Grade as printed with its grader, e.g. "PSA 9" or "BGS 9.5".',
|
|
98
|
+
)
|
|
99
|
+
grading_company: str = Field(
|
|
100
|
+
alias="gradingCompany",
|
|
101
|
+
description="Grading company of the slab: PSA, BGS, SGC or CGC. Populated whenever the provider has data for the entity.",
|
|
102
|
+
)
|
|
103
|
+
image: str | None = Field(
|
|
104
|
+
default=None, description="Card image URL, when one is known."
|
|
105
|
+
)
|
|
106
|
+
last_sale_in_grade: CardsGradedCertLastSaleInGrade | None = Field(
|
|
107
|
+
default=None,
|
|
108
|
+
alias="lastSaleInGrade",
|
|
109
|
+
description="The most recent sale of any copy of this card at this grade. Every member is null when none is recorded.",
|
|
110
|
+
)
|
|
111
|
+
population_in_grade: int | None = Field(
|
|
112
|
+
default=None,
|
|
113
|
+
alias="populationInGrade",
|
|
114
|
+
description="Approximate number of copies of this card graded at this grade by this grader. It tracks the grader's own population report closely (within about 2% for PSA) but is not the official count.",
|
|
115
|
+
)
|
|
116
|
+
qualifier: str | None = Field(
|
|
117
|
+
default=None,
|
|
118
|
+
description="Grade qualifier such as OC (off center) or MK (marks), or null when the grade has none.",
|
|
119
|
+
)
|
|
120
|
+
sales: list[CardsGradedCertSale] | None = Field(
|
|
121
|
+
default=None,
|
|
122
|
+
description="Sales of this exact slab that carry its certificate number, newest first. Sales recorded with the number itself are kept whatever their age; eBay and Fanatics Collect sales are found only from about the last 90 days and only when the seller wrote the number in the title. Empty when no such sale is found, which does not mean the slab never sold.",
|
|
123
|
+
)
|
|
124
|
+
sales_in_grade: int | None = Field(
|
|
125
|
+
default=None,
|
|
126
|
+
alias="salesInGrade",
|
|
127
|
+
description="Number of recorded sales of any copy of this card at this grade.",
|
|
128
|
+
)
|
|
129
|
+
set: str | None = Field(
|
|
130
|
+
default=None, description='Set name, e.g. "Pokemon Game" or "Fleer".'
|
|
131
|
+
)
|
|
132
|
+
subgrades: CardsGradedCertSubgrade | None = Field(
|
|
133
|
+
default=None,
|
|
134
|
+
description="BGS subgrades. Every member is null for graders that do not issue subgrades.",
|
|
135
|
+
)
|
|
136
|
+
subject: str | None = Field(
|
|
137
|
+
default=None, description="Player or character on the card."
|
|
138
|
+
)
|
|
139
|
+
value: float | None = Field(
|
|
140
|
+
default=None,
|
|
141
|
+
description="Estimated market value in USD of this card at this grade, modeled from recent sales.",
|
|
142
|
+
)
|
|
143
|
+
value_confidence: float | None = Field(
|
|
144
|
+
default=None,
|
|
145
|
+
alias="valueConfidence",
|
|
146
|
+
description="Confidence in the estimated value, 0 to 100. Higher means more recent comparable sales.",
|
|
147
|
+
)
|
|
148
|
+
value_high: float | None = Field(
|
|
149
|
+
default=None,
|
|
150
|
+
alias="valueHigh",
|
|
151
|
+
description="High end of the estimated value range in USD.",
|
|
152
|
+
)
|
|
153
|
+
value_low: float | None = Field(
|
|
154
|
+
default=None,
|
|
155
|
+
alias="valueLow",
|
|
156
|
+
description="Low end of the estimated value range in USD.",
|
|
157
|
+
)
|
|
158
|
+
variety: str | None = Field(
|
|
159
|
+
default=None,
|
|
160
|
+
description='Variety or parallel, e.g. "1st Edition Holo" or "Refractor", or null for the base card.',
|
|
161
|
+
)
|
|
162
|
+
year: int | None = Field(default=None, description="Year of the card's set.")
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class CardsGradedCertLastSaleInGrade(BaseModel):
|
|
166
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
167
|
+
|
|
168
|
+
marketplace: str | None = Field(
|
|
169
|
+
default=None,
|
|
170
|
+
description="Where it sold, as a lowercase marketplace id, e.g. ebay, fanatics (Fanatics Collect, including former PWCC venues), goldin or heritage.",
|
|
171
|
+
)
|
|
172
|
+
price: float | None = Field(default=None, description="Sale price in USD.")
|
|
173
|
+
sale_type: str | None = Field(
|
|
174
|
+
default=None,
|
|
175
|
+
alias="saleType",
|
|
176
|
+
description="How it sold: AUCTION, BUY_IT_NOW or BEST_OFFER.",
|
|
177
|
+
)
|
|
178
|
+
sold_utc: float | None = Field(
|
|
179
|
+
default=None,
|
|
180
|
+
alias="soldUtc",
|
|
181
|
+
description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.",
|
|
182
|
+
)
|
|
183
|
+
url: str | None = Field(default=None, description="Link to the sold listing.")
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
class CardsGradedCertSale(BaseModel):
|
|
187
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
188
|
+
|
|
189
|
+
grade: str | None = Field(
|
|
190
|
+
default=None, description='Grade as listed, e.g. "PSA 6".'
|
|
191
|
+
)
|
|
192
|
+
image: str | None = Field(default=None, description="Listing photo URL.")
|
|
193
|
+
marketplace: str | None = Field(
|
|
194
|
+
default=None,
|
|
195
|
+
description="Where it sold, as a lowercase marketplace id, e.g. ebay, fanatics (Fanatics Collect, including former PWCC venues), goldin or heritage.",
|
|
196
|
+
)
|
|
197
|
+
matched_by: str | None = Field(
|
|
198
|
+
default=None,
|
|
199
|
+
alias="matchedBy",
|
|
200
|
+
description="How the sale was tied to this slab: cert_field (the sale record carries the certificate number) or title (the seller wrote the number in the listing title).",
|
|
201
|
+
)
|
|
202
|
+
price: float | None = Field(default=None, description="Sale price in USD.")
|
|
203
|
+
sale_id: str = Field(alias="saleId", description="Identifier of the sale record.")
|
|
204
|
+
sale_type: str | None = Field(
|
|
205
|
+
default=None,
|
|
206
|
+
alias="saleType",
|
|
207
|
+
description="How it sold: AUCTION, BUY_IT_NOW or BEST_OFFER.",
|
|
208
|
+
)
|
|
209
|
+
shipping_price: float | None = Field(
|
|
210
|
+
default=None,
|
|
211
|
+
alias="shippingPrice",
|
|
212
|
+
description="Shipping charged in USD, when known.",
|
|
213
|
+
)
|
|
214
|
+
sold_utc: float | None = Field(
|
|
215
|
+
default=None,
|
|
216
|
+
alias="soldUtc",
|
|
217
|
+
description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.",
|
|
218
|
+
)
|
|
219
|
+
title: str | None = Field(default=None, description="Listing title.")
|
|
220
|
+
url: str | None = Field(default=None, description="Link to the sold listing.")
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class CardsGradedCertSubgrade(BaseModel):
|
|
224
|
+
model_config = ConfigDict(extra="allow")
|
|
225
|
+
|
|
226
|
+
centering: float | None = Field(default=None, description="Centering subgrade.")
|
|
227
|
+
corners: float | None = Field(default=None, description="Corners subgrade.")
|
|
228
|
+
edges: float | None = Field(default=None, description="Edges subgrade.")
|
|
229
|
+
surfaces: float | None = Field(default=None, description="Surface subgrade.")
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
class CardsPopulationData(BaseModel):
|
|
233
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
234
|
+
|
|
235
|
+
by_grader: list[CardsPopulationByGrader] | None = Field(
|
|
236
|
+
default=None,
|
|
237
|
+
alias="byGrader",
|
|
238
|
+
description="Population per grading company. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
239
|
+
)
|
|
240
|
+
card_id: str = Field(
|
|
241
|
+
alias="cardId",
|
|
242
|
+
description="Card ID. Populated whenever the provider has data for the entity.",
|
|
243
|
+
)
|
|
244
|
+
card_number: str | None = Field(
|
|
245
|
+
default=None, alias="cardNumber", description="Card number within the set."
|
|
246
|
+
)
|
|
247
|
+
category: str | None = Field(
|
|
248
|
+
default=None, description="Card category, e.g. tcg-cards or baseball-cards."
|
|
249
|
+
)
|
|
250
|
+
description: str | None = Field(
|
|
251
|
+
default=None,
|
|
252
|
+
description='Full card description, e.g. "1999 Pokemon Game Charizard-Holo Base 4". Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.',
|
|
253
|
+
)
|
|
254
|
+
gem_rate_percent: float | None = Field(
|
|
255
|
+
default=None,
|
|
256
|
+
alias="gemRatePercent",
|
|
257
|
+
description="Share of graded copies that are gem mint or better, in percent.",
|
|
258
|
+
)
|
|
259
|
+
gems: int | None = Field(
|
|
260
|
+
default=None,
|
|
261
|
+
description="Copies graded gem mint or better across all included graders.",
|
|
262
|
+
)
|
|
263
|
+
graders: list[str] | None = Field(
|
|
264
|
+
default=None,
|
|
265
|
+
description='Graders whose counts are included, e.g. ["psa", "bgs", "sgc", "cgc"].',
|
|
266
|
+
)
|
|
267
|
+
image: str | None = Field(default=None, description="Front image URL.")
|
|
268
|
+
image_back: str | None = Field(
|
|
269
|
+
default=None, alias="imageBack", description="Back image URL."
|
|
270
|
+
)
|
|
271
|
+
name: str | None = Field(
|
|
272
|
+
default=None, description="Card name: player or character."
|
|
273
|
+
)
|
|
274
|
+
parallel: str | None = Field(
|
|
275
|
+
default=None,
|
|
276
|
+
description='Variant or parallel name, e.g. "1st Edition" or "Refractor".',
|
|
277
|
+
)
|
|
278
|
+
population_changed_utc: float | None = Field(
|
|
279
|
+
default=None,
|
|
280
|
+
alias="populationChangedUtc",
|
|
281
|
+
description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.",
|
|
282
|
+
)
|
|
283
|
+
qualified_grades: list[CardsPopulationQualifiedGrade] | None = Field(
|
|
284
|
+
default=None,
|
|
285
|
+
alias="qualifiedGrades",
|
|
286
|
+
description="PSA copies with a qualified grade (OC, MK, ST and the like) at each numeric grade, counted apart from the plain grades.",
|
|
287
|
+
)
|
|
288
|
+
set: str | None = Field(default=None, description="Set name.")
|
|
289
|
+
total_population: int | None = Field(
|
|
290
|
+
default=None,
|
|
291
|
+
alias="totalPopulation",
|
|
292
|
+
description="Total copies graded across all included graders. Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.",
|
|
293
|
+
)
|
|
294
|
+
universal_grades: list[CardsPopulationUniversalGrade] | None = Field(
|
|
295
|
+
default=None,
|
|
296
|
+
alias="universalGrades",
|
|
297
|
+
description="Count at every grade on a common scale that lines up the graders (Perfect, Pristine, Gem Mint, Mint+, 9 down to 1, Authentic), highest first.",
|
|
298
|
+
)
|
|
299
|
+
updated_utc: float | None = Field(
|
|
300
|
+
default=None,
|
|
301
|
+
alias="updatedUtc",
|
|
302
|
+
description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.",
|
|
303
|
+
)
|
|
304
|
+
year: int | None = Field(default=None, description="Year of the card's set.")
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
class CardsPopulationByGrader(BaseModel):
|
|
308
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
309
|
+
|
|
310
|
+
gem_rate_percent: float | None = Field(
|
|
311
|
+
default=None,
|
|
312
|
+
alias="gemRatePercent",
|
|
313
|
+
description="Share of this grader's copies that are gem mint or better, in percent.",
|
|
314
|
+
)
|
|
315
|
+
gems: int | None = Field(
|
|
316
|
+
default=None, description="Copies this grader graded gem mint or better."
|
|
317
|
+
)
|
|
318
|
+
grader: str = Field(description="Grader code: psa, bgs, sgc or cgc.")
|
|
319
|
+
grader_card_name: str | None = Field(
|
|
320
|
+
default=None,
|
|
321
|
+
alias="graderCardName",
|
|
322
|
+
description="The card as this grader lists it, which can differ from the combined description.",
|
|
323
|
+
)
|
|
324
|
+
grader_name: str | None = Field(
|
|
325
|
+
default=None,
|
|
326
|
+
alias="graderName",
|
|
327
|
+
description='Grader display name, e.g. "Beckett (BGS)".',
|
|
328
|
+
)
|
|
329
|
+
grades: list[CardsPopulationGrade] | None = Field(
|
|
330
|
+
default=None,
|
|
331
|
+
description='Count at each of this grader\'s grades, highest first, including half grades and labels such as "10 Pristine", "10 Black Label" and "Auth". Qualified copies are not in these counts.',
|
|
332
|
+
)
|
|
333
|
+
pop_report_url: str | None = Field(
|
|
334
|
+
default=None,
|
|
335
|
+
alias="popReportUrl",
|
|
336
|
+
description="The grader's own population report page for this card or set.",
|
|
337
|
+
)
|
|
338
|
+
population_changed_utc: float | None = Field(
|
|
339
|
+
default=None,
|
|
340
|
+
alias="populationChangedUtc",
|
|
341
|
+
description="UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.",
|
|
342
|
+
)
|
|
343
|
+
qualified_grades: list[CardsPopulationQualifiedGrade] | None = Field(
|
|
344
|
+
default=None,
|
|
345
|
+
alias="qualifiedGrades",
|
|
346
|
+
description="Copies with a qualified grade (OC, MK and the like) at each numeric grade. To count copies graded higher than a grade the way the grader's own report does, add the qualified copies above it to the plain counts above it. Empty for graders that do not issue qualifiers.",
|
|
347
|
+
)
|
|
348
|
+
qualified_total: int | None = Field(
|
|
349
|
+
default=None,
|
|
350
|
+
alias="qualifiedTotal",
|
|
351
|
+
description="Total qualified copies, or null when the grader issues none.",
|
|
352
|
+
)
|
|
353
|
+
total_graded: int | None = Field(
|
|
354
|
+
default=None,
|
|
355
|
+
alias="totalGraded",
|
|
356
|
+
description="Copies this grader has graded, qualified grades included.",
|
|
357
|
+
)
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
class CardsPopulationGrade(BaseModel):
|
|
361
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
362
|
+
|
|
363
|
+
count: int | None = Field(default=None, description="Copies at this grade.")
|
|
364
|
+
grade: str = Field(
|
|
365
|
+
description='Grade as the grader names it, e.g. "10", "9.5" or "10 Pristine".'
|
|
366
|
+
)
|
|
367
|
+
is_gem: bool | None = Field(
|
|
368
|
+
default=None,
|
|
369
|
+
alias="isGem",
|
|
370
|
+
description="True when this grade counts as gem mint or better.",
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
class CardsPopulationQualifiedGrade(BaseModel):
|
|
375
|
+
model_config = ConfigDict(extra="allow")
|
|
376
|
+
|
|
377
|
+
count: int | None = Field(
|
|
378
|
+
default=None, description="Qualified copies at this grade."
|
|
379
|
+
)
|
|
380
|
+
grade: str = Field(description="Numeric grade the qualifier applies to.")
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
class CardsPopulationUniversalGrade(BaseModel):
|
|
384
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
385
|
+
|
|
386
|
+
count: int | None = Field(
|
|
387
|
+
default=None, description="Copies at this grade across all included graders."
|
|
388
|
+
)
|
|
389
|
+
grade: str = Field(
|
|
390
|
+
description='Grade on the common scale, e.g. "Gem Mint" or "8.5".'
|
|
391
|
+
)
|
|
392
|
+
percent_graded_higher: float | None = Field(
|
|
393
|
+
default=None,
|
|
394
|
+
alias="percentGradedHigher",
|
|
395
|
+
description="Share of all graded copies graded above this grade, in percent.",
|
|
396
|
+
)
|
|
397
|
+
percent_of_total: float | None = Field(
|
|
398
|
+
default=None,
|
|
399
|
+
alias="percentOfTotal",
|
|
400
|
+
description="Share of all graded copies at this grade, in percent.",
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
class CardsPopulationSearchData(BaseModel):
|
|
405
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
406
|
+
|
|
407
|
+
has_more: bool | None = Field(
|
|
408
|
+
default=None,
|
|
409
|
+
alias="hasMore",
|
|
410
|
+
description="True when another page of matches exists.",
|
|
411
|
+
)
|
|
412
|
+
items: list[CardsPopulationSearchItem] = Field(
|
|
413
|
+
description="Matching card variants, best match first. Each variant (base, 1st edition, shadowless, refractor...) is its own row. Populated whenever the provider has data for the entity."
|
|
414
|
+
)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
class CardsPopulationSearchItem(BaseModel):
|
|
418
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
419
|
+
|
|
420
|
+
card_id: str = Field(
|
|
421
|
+
alias="cardId",
|
|
422
|
+
description="Card ID. Pass it as cardId to Graded Card Population (cards.population) for the count at every grade. Populated whenever the provider has data for the entity.",
|
|
423
|
+
)
|
|
424
|
+
card_number: str | None = Field(
|
|
425
|
+
default=None, alias="cardNumber", description="Card number within the set."
|
|
426
|
+
)
|
|
427
|
+
category: str | None = Field(
|
|
428
|
+
default=None, description="Card category, e.g. tcg-cards or baseball-cards."
|
|
429
|
+
)
|
|
430
|
+
description: str | None = Field(
|
|
431
|
+
default=None,
|
|
432
|
+
description='Full card description, e.g. "1999 Pokemon Game Charizard-Holo Base 4". Populated whenever the provider has data for the entity. Present whenever the upstream returns this record.',
|
|
433
|
+
)
|
|
434
|
+
gem_rate_percent: float | None = Field(
|
|
435
|
+
default=None,
|
|
436
|
+
alias="gemRatePercent",
|
|
437
|
+
description="Share of graded copies that are gem mint or better, in percent.",
|
|
438
|
+
)
|
|
439
|
+
gems: int | None = Field(
|
|
440
|
+
default=None, description="Copies graded gem mint or better."
|
|
441
|
+
)
|
|
442
|
+
graders: list[str] | None = Field(
|
|
443
|
+
default=None,
|
|
444
|
+
description='Graders whose counts are included, e.g. ["psa", "bgs", "sgc", "cgc"].',
|
|
445
|
+
)
|
|
446
|
+
image: str | None = Field(default=None, description="Card image URL.")
|
|
447
|
+
name: str | None = Field(
|
|
448
|
+
default=None, description="Card name: player or character."
|
|
449
|
+
)
|
|
450
|
+
parallel: str | None = Field(
|
|
451
|
+
default=None,
|
|
452
|
+
description='Variant or parallel name, e.g. "1st Edition", "Shadowless" or "Refractor".',
|
|
453
|
+
)
|
|
454
|
+
set: str | None = Field(default=None, description="Set name.")
|
|
455
|
+
total_population: int | None = Field(
|
|
456
|
+
default=None,
|
|
457
|
+
alias="totalPopulation",
|
|
458
|
+
description="Total copies graded across the graders listed in graders.",
|
|
459
|
+
)
|
|
460
|
+
year: int | None = Field(default=None, description="Year of the card's set.")
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
class CardsNamespace:
|
|
464
|
+
"""Typed methods for this platform. Attached lazily to the client."""
|
|
465
|
+
|
|
466
|
+
def __init__(self, client: "AnyAPI") -> None:
|
|
467
|
+
self._client = client
|
|
468
|
+
|
|
469
|
+
def graded_cert(
|
|
470
|
+
self,
|
|
471
|
+
*,
|
|
472
|
+
options: RequestOptions | None = None,
|
|
473
|
+
**input: Unpack[CardsGradedCertInput],
|
|
474
|
+
) -> RunResult[CardsGradedCertData]:
|
|
475
|
+
"""Graded Card Cert Lookup
|
|
476
|
+
|
|
477
|
+
Look up one graded trading card slab by its PSA, BGS, SGC or CGC certificate
|
|
478
|
+
number and get the card (year, set, number, player or character, variety),
|
|
479
|
+
its grade with BGS subgrades, the approximate population in that grade, the
|
|
480
|
+
estimated market value with its low and high range, the last sale of any
|
|
481
|
+
copy in that grade, and the sales of this exact slab that carry its
|
|
482
|
+
certificate number (eBay and Fanatics Collect sales only from about the last
|
|
483
|
+
90 days, when the seller put the number in the title), in one normalized
|
|
484
|
+
response. Sports cards, Pokemon and other trading card games.
|
|
485
|
+
|
|
486
|
+
Price: $0.00338 per request.
|
|
487
|
+
|
|
488
|
+
Example:
|
|
489
|
+
res = client.cards.graded_cert(certNumber="0011562845", gradingCompany="BGS")
|
|
490
|
+
"""
|
|
491
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
492
|
+
"cards.graded_cert", dict(input), options
|
|
493
|
+
)
|
|
494
|
+
return RunResult[CardsGradedCertData].model_validate(raw)
|
|
495
|
+
|
|
496
|
+
def population(
|
|
497
|
+
self,
|
|
498
|
+
*,
|
|
499
|
+
options: RequestOptions | None = None,
|
|
500
|
+
**input: Unpack[CardsPopulationInput],
|
|
501
|
+
) -> RunResult[CardsPopulationData]:
|
|
502
|
+
"""Graded Card Population
|
|
503
|
+
|
|
504
|
+
Get one graded trading card's population report across PSA, BGS, SGC and CGC
|
|
505
|
+
by card ID (from Graded Card Population Search): total graded, gem count and
|
|
506
|
+
gem rate, the count at every grade on a common scale with the share graded
|
|
507
|
+
higher, and per grader the count at every grade including half grades and
|
|
508
|
+
qualified grades (OC, MK and the like), with the date the population last
|
|
509
|
+
changed. Sports cards, Pokemon and other trading card games.
|
|
510
|
+
|
|
511
|
+
Price: $0.00338 per request.
|
|
512
|
+
|
|
513
|
+
Example:
|
|
514
|
+
res = client.cards.population(cardId="ffb8699bb7f435eff4e9761f8e29358e351d777e")
|
|
515
|
+
"""
|
|
516
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
517
|
+
"cards.population", dict(input), options
|
|
518
|
+
)
|
|
519
|
+
return RunResult[CardsPopulationData].model_validate(raw)
|
|
520
|
+
|
|
521
|
+
def population_search(
|
|
522
|
+
self,
|
|
523
|
+
*,
|
|
524
|
+
options: RequestOptions | None = None,
|
|
525
|
+
**input: Unpack[CardsPopulationSearchInput],
|
|
526
|
+
) -> RunResult[CardsPopulationSearchData]:
|
|
527
|
+
"""Graded Card Population Search
|
|
528
|
+
|
|
529
|
+
Search graded trading cards across PSA, BGS, SGC and CGC by free text (year,
|
|
530
|
+
set, player or character, card number, parallel) and get each matching card
|
|
531
|
+
variant with its card ID, year, set, number, parallel, total graded
|
|
532
|
+
population, gem count and gem rate. Pass the card ID to Graded Card
|
|
533
|
+
Population for the count at every grade.
|
|
534
|
+
|
|
535
|
+
Price: $0.00225 per request.
|
|
536
|
+
|
|
537
|
+
Example:
|
|
538
|
+
res = client.cards.population_search(query="1999 Pokemon Base Charizard")
|
|
539
|
+
"""
|
|
540
|
+
raw = self._client._run_raw( # pyright: ignore[reportPrivateUsage]
|
|
541
|
+
"cards.population_search", dict(input), options
|
|
542
|
+
)
|
|
543
|
+
return RunResult[CardsPopulationSearchData].model_validate(raw)
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
class AsyncCardsNamespace:
|
|
547
|
+
"""Typed methods for this platform. Attached lazily to the client."""
|
|
548
|
+
|
|
549
|
+
def __init__(self, client: "AsyncAnyAPI") -> None:
|
|
550
|
+
self._client = client
|
|
551
|
+
|
|
552
|
+
async def graded_cert(
|
|
553
|
+
self,
|
|
554
|
+
*,
|
|
555
|
+
options: RequestOptions | None = None,
|
|
556
|
+
**input: Unpack[CardsGradedCertInput],
|
|
557
|
+
) -> RunResult[CardsGradedCertData]:
|
|
558
|
+
"""Graded Card Cert Lookup
|
|
559
|
+
|
|
560
|
+
Look up one graded trading card slab by its PSA, BGS, SGC or CGC certificate
|
|
561
|
+
number and get the card (year, set, number, player or character, variety),
|
|
562
|
+
its grade with BGS subgrades, the approximate population in that grade, the
|
|
563
|
+
estimated market value with its low and high range, the last sale of any
|
|
564
|
+
copy in that grade, and the sales of this exact slab that carry its
|
|
565
|
+
certificate number (eBay and Fanatics Collect sales only from about the last
|
|
566
|
+
90 days, when the seller put the number in the title), in one normalized
|
|
567
|
+
response. Sports cards, Pokemon and other trading card games.
|
|
568
|
+
|
|
569
|
+
Price: $0.00338 per request.
|
|
570
|
+
|
|
571
|
+
Example:
|
|
572
|
+
res = client.cards.graded_cert(certNumber="0011562845", gradingCompany="BGS")
|
|
573
|
+
"""
|
|
574
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
575
|
+
"cards.graded_cert", dict(input), options
|
|
576
|
+
)
|
|
577
|
+
return RunResult[CardsGradedCertData].model_validate(raw)
|
|
578
|
+
|
|
579
|
+
async def population(
|
|
580
|
+
self,
|
|
581
|
+
*,
|
|
582
|
+
options: RequestOptions | None = None,
|
|
583
|
+
**input: Unpack[CardsPopulationInput],
|
|
584
|
+
) -> RunResult[CardsPopulationData]:
|
|
585
|
+
"""Graded Card Population
|
|
586
|
+
|
|
587
|
+
Get one graded trading card's population report across PSA, BGS, SGC and CGC
|
|
588
|
+
by card ID (from Graded Card Population Search): total graded, gem count and
|
|
589
|
+
gem rate, the count at every grade on a common scale with the share graded
|
|
590
|
+
higher, and per grader the count at every grade including half grades and
|
|
591
|
+
qualified grades (OC, MK and the like), with the date the population last
|
|
592
|
+
changed. Sports cards, Pokemon and other trading card games.
|
|
593
|
+
|
|
594
|
+
Price: $0.00338 per request.
|
|
595
|
+
|
|
596
|
+
Example:
|
|
597
|
+
res = client.cards.population(cardId="ffb8699bb7f435eff4e9761f8e29358e351d777e")
|
|
598
|
+
"""
|
|
599
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
600
|
+
"cards.population", dict(input), options
|
|
601
|
+
)
|
|
602
|
+
return RunResult[CardsPopulationData].model_validate(raw)
|
|
603
|
+
|
|
604
|
+
async def population_search(
|
|
605
|
+
self,
|
|
606
|
+
*,
|
|
607
|
+
options: RequestOptions | None = None,
|
|
608
|
+
**input: Unpack[CardsPopulationSearchInput],
|
|
609
|
+
) -> RunResult[CardsPopulationSearchData]:
|
|
610
|
+
"""Graded Card Population Search
|
|
611
|
+
|
|
612
|
+
Search graded trading cards across PSA, BGS, SGC and CGC by free text (year,
|
|
613
|
+
set, player or character, card number, parallel) and get each matching card
|
|
614
|
+
variant with its card ID, year, set, number, parallel, total graded
|
|
615
|
+
population, gem count and gem rate. Pass the card ID to Graded Card
|
|
616
|
+
Population for the count at every grade.
|
|
617
|
+
|
|
618
|
+
Price: $0.00225 per request.
|
|
619
|
+
|
|
620
|
+
Example:
|
|
621
|
+
res = client.cards.population_search(query="1999 Pokemon Base Charizard")
|
|
622
|
+
"""
|
|
623
|
+
raw = await self._client._arun_raw( # pyright: ignore[reportPrivateUsage]
|
|
624
|
+
"cards.population_search", dict(input), options
|
|
625
|
+
)
|
|
626
|
+
return RunResult[CardsPopulationSearchData].model_validate(raw)
|
|
@@ -1704,7 +1704,7 @@ class TwitterNamespace:
|
|
|
1704
1704
|
per-page maximum; native pages contain approximately 20 tweets unless
|
|
1705
1705
|
requireSinglePage selects a bulk lane.
|
|
1706
1706
|
|
|
1707
|
-
Price: $0.
|
|
1707
|
+
Price: $0.00049 per request.
|
|
1708
1708
|
|
|
1709
1709
|
Example:
|
|
1710
1710
|
res = client.twitter.search(query="openai")
|
|
@@ -2243,7 +2243,7 @@ class AsyncTwitterNamespace:
|
|
|
2243
2243
|
per-page maximum; native pages contain approximately 20 tweets unless
|
|
2244
2244
|
requireSinglePage selects a bulk lane.
|
|
2245
2245
|
|
|
2246
|
-
Price: $0.
|
|
2246
|
+
Price: $0.00049 per request.
|
|
2247
2247
|
|
|
2248
2248
|
Example:
|
|
2249
2249
|
res = client.twitter.search(query="openai")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|