{"uid":"cap_q0Y_BvIcX8AQSh-ysvSsG","slug":"api-lastlookdata-com-aeee577d","name":"LastLook Data FX Date Rate","description":"LastLook Data — exchange rate for a G10 currency pair on a specific date. Use ?pair=EURUSD&d=YYYY-MM-DD.","url":"https://api.lastlookdata.com/api/fx/date","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["pair","d"],"properties":{"d":{"type":"string","description":"Date in YYYY-MM-DD format"},"pair":{"enum":["EURUSD","GBPUSD","USDJPY","USDCHF","USDCAD","AUDUSD","NZDUSD","USDSEK","USDNOK"],"type":"string","description":"G10 currency pair"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"d":"2024-03-15","pair":"EURUSD"}}},"response":{"base":"EUR","date":"2024-03-15","note":"Source: Frankfurter (European Central Bank)","pair":"EURUSD","rate":1.0892,"label":"Euro / US Dollar","quote":"USD","service":"LastLook Data"}},"exampleRequest":{"d":"2024-03-15","pair":"EURUSD"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xyhONLPFzjLRV9X3NNnRc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the exchange rate for a G10 currency pair on a specific historical date","exampleAgentPrompt":"What was the EURUSD exchange rate on March 15, 2024?","exampleUseCases":[{"title":"Reconcile foreign invoice payment","prompt":"I need to reconcile a payment we made to a supplier in euros last quarter — what was the EUR/USD rate on October 3, 2023?"},{"title":"Backtest currency trading strategy","prompt":"I'm backtesting a trading strategy and need the GBP/USD exchange rate on January 10, 2022 — can you look that up for me?"},{"title":"Convert historical yen expense report","prompt":"We have an expense report from a business trip to Japan in August 2023 — what was the USD/JPY rate on August 22, 2023 so I can convert the amounts?"}],"resultDescription":"A JSON object containing the exchange rate value for the specified G10 currency pair on the given date, sourced from ECB or equivalent historical FX data.","failureModes":["Invalid or unsupported currency pair returns an error — only EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD, USDSEK, USDNOK are supported","Date outside available historical range returns no data or an error","Malformed date format (not YYYY-MM-DD) causes a bad request","Weekend or market holiday date may return no rate or the prior close","Missing required query parameters (pair or d) returns a validation error","Payment failure via x402 protocol returns 402 status"],"whenToPreferThis":"Use this endpoint when you need the exchange rate for a specific G10 currency pair on a single past date — ideal for historical reconciliation, accounting, backtesting, or answering point-in-time FX questions. Prefer over the current-rate endpoint when the date is not today, and over the historical-series endpoint when you only need one specific date rather than a range.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:46.052Z","isFirstParty":false}